summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mmc/sdhci.txt
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-10-25 12:06:06 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2016-11-29 11:00:47 +0300
commit49adc0cacbe8553333883059ae183d0274d4ea17 (patch)
tree3ca3e8083ecd5106febbe5cf8bcc6066509e4d92 /Documentation/devicetree/bindings/mmc/sdhci.txt
parent5db3eee7b914b8629b88bbad5a9ea196ce8de0cd (diff)
downloadlinux-49adc0cacbe8553333883059ae183d0274d4ea17.tar.xz
mmc: mmci: refactor ST Micro busy detection
The ST Micro-specific busy detection was made after the assumption that only this variant supports busy detection. So when doing busy detection, the host immediately tries to use some ST-specific register bits. Since the qualcomm variant also supports some busy detection schemes, encapsulate the variant flags better in the variant struct and prepare to add more variants by just providing some bitmasks to the logic. Put the entire busy detection logic within an if()-clause in the mmci_cmd_irq() function so the code is only executed when busy detection is enabled, and so that it is kept in (almost) one place, and add comments describing what is going on so the code can be understood. Tested on the Ux500 by introducing some prints in the busy detection path and noticing how the IRQ is enabled, used and disabled successfully. Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mmc/sdhci.txt')
0 files changed, 0 insertions, 0 deletions