Re: [PATCH 09/11] mmc: sdhci-cadence: Add Pensando Elba SoC support

From: Arnd Bergmann
Date: Thu Apr 07 2022 - 16:49:47 EST


On Thu, Apr 7, 2022 at 7:06 PM Brad Larson <brad@xxxxxxxxxxx> wrote:
> On Thu, Apr 7, 2022 at 12:13 AM Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
> >
> > What is the relationship between cadence and pensando elba?
>
> Pensando licensed the cadence controller, its 100% cadence IP. The
> integration issue we ran into was with the accessors where we have the
> workaround. The initial patch added a separate Elba driver file but
> the feedback was the Elba support didn't justify doing that and to add
> to sdhci-cacence.c.

I looked back at the earlier reviews now, I think the main problem with
versions 1 and 2 was that it had the abstraction the wrong way around,
so you added the complexity of having multiple files, without the benefits.

I still think that the cleanest approach would be to have it the way I
suggested in my reply to v1, with an elba specific platform driver
that calls into the generic cadence code, but the generic code knowing
nothing about the front-end.

Then again, it sounds like there was already an agreement about
the approach you took here, so let's stay with that and hope we don't
get any other chips with the same IP block in the future.

Arnd