cxlflash: Fix to double the delay each time
The operator used to double the master context response delay is incorrect and does not result in delay doubling. To fix, use a left shift instead of the XOR operator. Reported-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
parent
11f43ae773
commit
b22b4037a0
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ write_rrin:
|
||||||
if (rrin != 0x1)
|
if (rrin != 0x1)
|
||||||
break;
|
break;
|
||||||
/* Double delay each time */
|
/* Double delay each time */
|
||||||
udelay(2 ^ nretry);
|
udelay(2 << nretry);
|
||||||
} while (nretry++ < MC_ROOM_RETRY_CNT);
|
} while (nretry++ < MC_ROOM_RETRY_CNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue