Re: [PATCH 04/11] mmc: core: Extend re-use of __mmc_poll_for_busy()
From: Linus Walleij <hidden>
Date: 2021-05-06 12:54:03
Also in:
linux-mmc, lkml
From: Linus Walleij <hidden>
Date: 2021-05-06 12:54:03
Also in:
linux-mmc, lkml
On Tue, May 4, 2021 at 6:12 PM Ulf Hansson [off-list ref] wrote:
Via __mmc_poll_for_busy() we end up polling with the ->card_busy() host ops or by sending the CMD13. To allow polling of different types, which is needed to support a few new SD card features, let's rework the code around __mmc_poll_for_busy() to make it more generic. More precisely, let __mmc_poll_for_busy() take a pointer to a callback function as in-parameter, which it calls to poll for busy state completion. Additionally, let's share __mmc_poll_for_busy() to allow it to be re-used outside of mmc_ops.c. Subsequent changes will make use of it. Signed-off-by: Ulf Hansson <redacted>
Reviewed-by: Linus Walleij <redacted> Yours, Linus Walleij