diff options
author | Eberhard S. Amann <esa@linux.vnet.ibm.com> | 2014-09-10 10:37:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 02:15:47 -0400 |
commit | 08e4906cc29d092ae2da0ff089efe1488e584d3c (patch) | |
tree | 85c495b48f209fc636109c895fccefa398f8af7e | |
parent | d9c11d45b33c9226abd50a50c87e19bfa7c7a2cb (diff) |
GenWQE: Fix problem when reading HSI and Retc
This patch fixes a problem we found during debug on PPC64 when
reading HSI status and Retc.
Signed-off-by: Eberhard S. Amann <esa@linux.vnet.ibm.com>
Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/genwqe/card_ddcb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_ddcb.c b/drivers/misc/genwqe/card_ddcb.c index f10575000180..51480e4f8054 100644 --- a/drivers/misc/genwqe/card_ddcb.c +++ b/drivers/misc/genwqe/card_ddcb.c | |||
@@ -390,8 +390,9 @@ static int genwqe_check_ddcb_queue(struct genwqe_dev *cd, | |||
390 | 0x00000000) | 390 | 0x00000000) |
391 | goto go_home; /* not completed, continue waiting */ | 391 | goto go_home; /* not completed, continue waiting */ |
392 | 392 | ||
393 | /* Note: DDCB could be purged */ | 393 | wmb(); /* Add sync to decouple prev. read operations */ |
394 | 394 | ||
395 | /* Note: DDCB could be purged */ | ||
395 | req = queue->ddcb_req[queue->ddcb_act]; | 396 | req = queue->ddcb_req[queue->ddcb_act]; |
396 | if (req == NULL) { | 397 | if (req == NULL) { |
397 | /* this occurs if DDCB is purged, not an error */ | 398 | /* this occurs if DDCB is purged, not an error */ |