]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: sd: report correct speed and capacity of uhs cards
authorArindam Nath <arindam.nath@amd.com>
Thu, 5 May 2011 06:49:03 +0000 (12:19 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:46 +0000 (23:53 -0400)
commit3a3035114307cd55e024662bb295a87b849f0bd4
tree764f881c7a677641abaa211128f27a37c9613d90
parent5371c927bcd06a5c9dd6785bab2d452b87d9abc6
mmc: sd: report correct speed and capacity of uhs cards

Since only UHS-I cards respond with S18A set in response to ACMD41,
we set the card as ultra-high-speed after successfull initialization.
We need to decide whether a card is SDXC based on the C_SIZE field
of CSDv2.0 register. According to Physical Layer spec v3.01, the
minimum value of C_SIZE for SDXC card is 00FFFFh.

Tested by Zhangfei Gao with a Toshiba uhs card and general hs card,
on mmp2 in SDMA mode.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Tested-by: Philip Rakity <prakity@marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/bus.c
drivers/mmc/core/sd.c
include/linux/mmc/card.h