aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/core/card.h
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jerome.pouiller@silabs.com> 2021-11-10 18:17:07 +0100
committerGravatar Ulf Hansson <ulf.hansson@linaro.org> 2021-12-14 21:35:23 +0100
commitb360b11026705369f7ea51653f75dbe611322338 (patch)
tree9a222ef27a284538b59ecbed5936ea3ac037aa32 /drivers/mmc/core/card.h
parentmmc: core: rewrite mmc_fixup_device() (diff)
downloadlinux-b360b11026705369f7ea51653f75dbe611322338.tar.gz
linux-b360b11026705369f7ea51653f75dbe611322338.tar.bz2
linux-b360b11026705369f7ea51653f75dbe611322338.zip
mmc: core: allow to match the device tree to apply quirks
MMC subsystem provides a way to apply quirks when a device match some properties (VID, PID, etc...) Unfortunately, some SDIO devices do not comply with the SDIO specification and does not provide reliable VID/PID (eg. Silabs WF200). So, the drivers for these devices rely on device tree to identify the device. This patch allows the MMC to also rely on the device tree to apply a quirk. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/9e68e3d23e62a78527aabc1281f89e15200c7d09.1636564631.git.hns@goldelico.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/card.h')
-rw-r--r--drivers/mmc/core/card.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/core/card.h b/drivers/mmc/core/card.h
index 7bd392d55cfa..483e7f2f1039 100644
--- a/drivers/mmc/core/card.h
+++ b/drivers/mmc/core/card.h
@@ -59,6 +59,9 @@ struct mmc_fixup {
/* for MMC cards */
unsigned int ext_csd_rev;
+ /* Match against functions declared in device tree */
+ const char *of_compatible;
+
void (*vendor_fixup)(struct mmc_card *card, int data);
int data;
};