]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Use __mmc_send_status() and drop get_card_status()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 22 May 2017 08:23:58 +0000 (10:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:27 +0000 (10:30 +0200)
commitb9737b44871df0876c75f7b02d14f0b0fc6e3a1f
treefedf4bac2821cda0002cefae3fa5e67c583fe941
parent3bf9f9c301edc69cfba7f8baf35d9490eedab0e7
mmc: block: Use __mmc_send_status() and drop get_card_status()

The only reason to why the mmc block device driver needs to implements its
own version of how to get the status of the card, is that it needs to
specify a different amount of retries.

Therefore add a new exported function which allows the caller to specify
the number of retries and convert everybody to use it, as this simplifies
the code.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h