mmc: core: allow to match the device tree to apply quirks
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Wed, 10 Nov 2021 17:17:07 +0000 (18:17 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Dec 2021 20:35:23 +0000 (21:35 +0100)
commitb360b11026705369f7ea51653f75dbe611322338
tree9a222ef27a284538b59ecbed5936ea3ac037aa32
parentf3abe2e509387907dd36886c1008445559ff4d91
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>
drivers/mmc/core/card.h
drivers/mmc/core/quirks.h