Skip to content

Commit

Permalink
mmc: usdhi6rol0: fix ack register write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rabin Vincent authored and Ulf Hansson committed Aug 27, 2015
1 parent bb08a7d commit 3fe95db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/usdhi6rol0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 3fe95db

Please sign in to comment.