lkml.org 
[lkml]   [2021]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 3/5] mmc: core: provide macro and table to match the device tree to apply quirks
Date
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@goldelico.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@silabs.com>

--
Jérôme Pouiller


\
 
 \ /
  Last update: 2021-11-09 12:21    [W:0.088 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site