OSDN Git Service

mmc: core: Read performance enhancements registers for SD cards
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 May 2021 16:12:21 +0000 (18:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:36 +0000 (13:57 +0200)
commit4e6306e0b83c6251699c2202e859b55ddf7b8c5f
treee8530ac73b15b0b698a2b7a21b4230136f4e5457
parentc784f92769ae8eafb2eb489408757528ff7525df
mmc: core: Read performance enhancements registers for SD cards

In SD spec v6.x the SD function extension registers for performance
enhancements were introduced. These registers let the SD card announce
supports for various performance related features, like "self-maintenance",
"cache" and "command queuing".

Let's extend the parsing of SD function extension registers and store the
information in the struct mmc_card. This prepares for subsequent changes to
implement the complete support for new the performance enhancement
features.

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