Havard Skinnemoen writes:
> On Wed, Nov 17, 2021 at 8:34 AM Markus Armbruster wrote:
>>
>> drive_get_next() is basically a bad idea. It returns the "next" block
>> backend of a certain interface type. "Next" means bus=0,unit=N, where
>> subsequent calls count N up from zero, per interface
Yes, there's SD and MMC buses. It looks like the current code only supports
mmc ("soc->mmc.sdhci") but not the sd ("soc->sd.sdhci").
It's probably good to make the bus number a parameter as well and use them
to distinguish. We might need a separate patch to do that.
On Wed, Nov 17, 2021 at 8:54
On Wed, Nov 17, 2021 at 8:34 AM Markus Armbruster wrote:
>
> drive_get_next() is basically a bad idea. It returns the "next" block
> backend of a certain interface type. "Next" means bus=0,unit=N, where
> subsequent calls count N up from zero, per interface type.
>
> This lets you define unit