Skip to content

Commit 2eb4d74

Browse files
goldelicogregkh
authored andcommitted
mmc: core: fix wl1251 sdio quirks
[ Upstream commit 16568b4 ] wl1251 and wl1271 have different vendor id and device id. So we need to handle both with sdio quirks. Fixes: 884f386 ("mmc: core: move some sdio IDs out of quirks file") Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Cc: <stable@vger.kernel.org> # v4.11+ Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f8afdce commit 2eb4d74

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/mmc/core/quirks.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ static const struct mmc_fixup mmc_ext_csd_fixups[] = {
119119
END_FIXUP
120120
};
121121

122+
122123
static const struct mmc_fixup sdio_fixup_methods[] = {
124+
SDIO_FIXUP(SDIO_VENDOR_ID_TI_WL1251, SDIO_DEVICE_ID_TI_WL1251,
125+
add_quirk, MMC_QUIRK_NONSTD_FUNC_IF),
126+
127+
SDIO_FIXUP(SDIO_VENDOR_ID_TI_WL1251, SDIO_DEVICE_ID_TI_WL1251,
128+
add_quirk, MMC_QUIRK_DISABLE_CD),
129+
123130
SDIO_FIXUP(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271,
124131
add_quirk, MMC_QUIRK_NONSTD_FUNC_IF),
125132

0 commit comments

Comments
 (0)