summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@axis.com>2015-08-19 15:41:36 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2015-08-27 14:50:55 +0200
commit3fe95db19be6a98bcb45d2780c6a90d1e96bfcc9 (patch)
tree50e83567b90ad560e092b5ae44c0e7a89b3902e8 /drivers/mmc
parentbb08a7d489bd22a9b6e489f8c8449b0bc92594d0 (diff)
downloadop-kernel-dev-3fe95db19be6a98bcb45d2780c6a90d1e96bfcc9.zip
op-kernel-dev-3fe95db19be6a98bcb45d2780c6a90d1e96bfcc9.tar.gz
mmc: usdhi6rol0: fix ack register write
The intent appears to be to clear only the bits which are set in status (by setting them to zero in the ack write), like in the other interrupt handlers, and not to always clear everything (by always writing zero). Use the correct not operator. Signed-off-by: Rabin Vincent <rabin.vincent@axis.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/usdhi6rol0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c
index 4188e84e..b505cbc2 100644
--- a/drivers/mmc/host/usdhi6rol0.c
+++ b/drivers/mmc/host/usdhi6rol0.c
@@ -1611,7 +1611,7 @@ static irqreturn_t usdhi6_cd(int irq, void *dev_id)
return IRQ_NONE;
/* Ack */
- usdhi6_write(host, USDHI6_SD_INFO1, !status);
+ usdhi6_write(host, USDHI6_SD_INFO1, ~status);
if (!work_pending(&mmc->detect.work) &&
(((status & USDHI6_SD_INFO1_CARD_INSERT) &&
OpenPOWER on IntegriCloud