OSDN Git Service

cxlflash: Fix to double the delay each time
authorManoj Kumar <manoj@linux.vnet.ibm.com>
Wed, 21 Oct 2015 20:15:30 +0000 (15:15 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 30 Oct 2015 08:19:35 +0000 (17:19 +0900)
commitb22b4037a013e9ce77cec79d95fdcdc9bece0955
treec85f1ede1c4f352b4d38101e47c041f75e9a3d84
parent11f43ae7735a04994ef3c33295d386ef4e5529b7
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>
drivers/scsi/cxlflash/main.c