summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-sh-hspi.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-25 15:55:36 +0400
committerChris Ball <chris@printf.net>2014-05-22 15:26:23 +0400
commit41005003bcaf4ecfc80e02af01247f2670269816 (patch)
tree93f8ccab520f0400ac42bb2cba73ef1e92562e4e /drivers/spi/spi-sh-hspi.c
parentbf3b5ec66bd03d66e9ea729aaca013ea1047a797 (diff)
downloadlinux-41005003bcaf4ecfc80e02af01247f2670269816.tar.xz
mmc: sdhci: clean up interrupt handling
sdhci interrupt handling is a mess; there is a lot of code doing very similar things. Let's clean this up a bit: 1. set's clear down cmd, data and bus power interrupts in one go - we're always going to handle these. 2. use a do { } while () loop for looping while there are pending interrupts. 3. group clearing of bits in intmask into one place. This results in the code becoming simpler and easier to read. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
0 files changed, 0 insertions, 0 deletions