Re: [PATCH] mmc: mmc_spi: add spi:mmc-spi-slot alias

From: Andy Shevchenko
Date: Thu Jul 22 2021 - 06:29:28 EST

On Thu, Jul 22, 2021 at 1:03 PM Andreas Schwab <schwab@xxxxxxx> wrote:
> On Jul 21 2021, Andy Shevchenko wrote:
> > Or problem is somewhere else?
> I don't know. Why does the spi subsystem put "spi:mmc-spi-slot" into
> the modalias file, instead of "of:N(null)T(null)Cmmc-spi-slot" or
> similar? The same problem exists with the other spi port on the board,
> which has a jedec,spi-nor instance attached, also not auto loading.

You see, there are two unrelated drivers that share the same issue
(the common denominator is that they are SPI devices). I believe the
issue is somewhere in the SPI core rather than here.

Compare the code of


The culprit is this one:

and in my humble opinion must be reverted.

With Best Regards,
Andy Shevchenko