On Tue, May 4, 2021 at 6:12 PM Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote: > Similar code for validating the host->max_busy_timeout towards the current > command's busy timeout, exists in mmc_do_erase(), mmc_sleep() and > __mmc_switch(). Let's move the common code into a helper function. > > Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> This is a really nice refactoring in its own right. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij