Re: [PATCH 01/13] mmc: mmci: Only call busy_complete if callback defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 6, 2023 at 11:31 AM Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:

> All variants that have the .busy_detect flags set, need to assign the
> ->busy_complete() callback too.
>
> To me it seems a bit silly, to check for a mandatory callback,
> although if you prefer it, then I suggest we do it during ->probe()
> instead.

Nah I drop it.

It's just a bit redundant, what you say is that instead of

if (host->variant->busy_detect) { ... }

it would suffice to everywhere just check if we have
the callback:

if (host->ops->busy_complete) {...}

and we can drop .busy_detect altogether.

But I can deal with that another time.

Yours,
Linus Walleij




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux