]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: omap_hsmmc: Fix incorrect bit operations for disabling a bit
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 21 Sep 2017 14:51:36 +0000 (16:51 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2018 20:49:23 +0000 (15:49 -0500)
commit63c4c5586b5f7aa6618e8f3e187abb5cef73caf6
treece1b492619686b0beec8fcad315bba755fb4a346
parentf31c86cd8cd0e8e5314be48fef88542f8f02cf47
mmc: omap_hsmmc: Fix incorrect bit operations for disabling a bit

omap_hsmmc driver uses "|" in a couple of places for disabling a bit.
While it's okay to use it in "mmc_reg_out" (since mmc_reg_out has a
_mask_ argument to take care of resetting a bit), it's incorrectly used
for resetting flags in "omap_hsmmc_send_cmd".

Fix it here by using "&= ~()" to reset a bit.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/omap_mmc.h
drivers/mmc/omap_hsmmc.c