From: Rabin Vincent Date: Wed, 19 Aug 2015 13:41:36 +0000 (+0200) Subject: mmc: usdhi6rol0: fix ack register write X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3fe95db19be6a98bcb45d2780c6a90d1e96bfcc9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c index 4188e84ea450..b505cbc25aac 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) &&