Commit b22b4037 authored by Manoj Kumar's avatar Manoj Kumar Committed by James Bottomley

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: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: default avatarManoj N. Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Reviewed-by: default avatarAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 11f43ae7
...@@ -303,7 +303,7 @@ static void context_reset(struct afu_cmd *cmd) ...@@ -303,7 +303,7 @@ static void context_reset(struct afu_cmd *cmd)
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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment