]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Parse the SD SCR register for support of CMD48/49 and CMD58/59
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 May 2021 16:12:19 +0000 (18:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 May 2021 13:12:29 +0000 (15:12 +0200)
commit4ab3e75dbd65da117d691d0e12d5f74e061d5270
tree1f031e40a4e76797fee24f8b3f7edd2b76679153
parentd2355f548cd9ff6e9d99445c1d185c6efd57a169
mmc: core: Parse the SD SCR register for support of CMD48/49 and CMD58/59

In SD spec v4.x the support for CMD48/49 and CMD58/59 were introduced as
optional features. To let the card announce whether it supports the
commands, the SCR register has been extended with corresponding support
bits. Let's parse and store this information for later use.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20210504161222.101536-9-ulf.hansson@linaro.org
drivers/mmc/core/sd.c
include/linux/mmc/card.h