[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2478962.rqbgcO2f2E@pc-42>
Date: Tue, 09 Nov 2021 12:21:22 +0100
From: Jérôme Pouiller <jerome.pouiller@...abs.com>
To: Ulf Hansson <ulf.hansson@...aro.org>,
Avri Altman <avri.altman@....com>,
Shawn Lin <shawn.lin@...k-chips.com>,
Linus Walleij <linus.walleij@...aro.org>,
Tony Lindgren <tony@...mide.com>,
Bean Huo <beanhuo@...ron.com>,
"H. Nikolaus Schaller" <hns@...delico.com>,
Kiwoong Kim <kwmad.kim@...sung.com>,
Tian Tao <tiantao6@...ilicon.com>,
Andreas Kemnade <andreas@...nade.info>,
Yang Li <abaci-bugfix@...ux.alibaba.com>,
"H. Nikolaus Schaller" <hns@...delico.com>
Cc: notasas@...il.com, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org, letux-kernel@...nphoenux.org,
kernel@...a-handheld.com, linux-omap@...r.kernel.org
Subject: Re: [PATCH 3/5] mmc: core: provide macro and table to match the device tree to apply quirks
On Tuesday 9 November 2021 11:59:06 CET H. Nikolaus Schaller wrote:
> This (initially empty) table allows to match quirks early based
> on .compatible of the child node of some mmc/sdio interface.
>
> This allows to add quirks based on device tree instead of having
> card specific code in the host ops.
>
> A new macro SDIO_FIXUP_COMPATIBLE makes the definition readable.
>
> And we call mmc_fixup_device(sdio_card_init_methods) just after
> where host->ops->init_card() can be optionally called.
>
> Signed-off-by: H. Nikolaus Schaller <hns@...delico.com>
> ---
> drivers/mmc/core/card.h | 15 +++++++++++++++
> drivers/mmc/core/quirks.h | 4 ++++
> drivers/mmc/core/sdio.c | 1 +
> 3 files changed, 20 insertions(+)
Reviewed-by: Jérôme Pouiller <jerome.pouiller@...abs.com>
--
Jérôme Pouiller
Powered by blists - more mailing lists