]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Adjust ACMD22 to SDUC
authorAvri Altman <avri.altman@wdc.com>
Sun, 6 Oct 2024 05:11:45 +0000 (08:11 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Oct 2024 10:36:50 +0000 (12:36 +0200)
commit449f34a34088d02457fa0f3216747e8a35bc03ae
tree02058c5d43eb93956d1ba93a73b1645104190d0d
parentc2d8d4954ebbd860f4dbab1f3107d24b8b5b5697
mmc: core: Adjust ACMD22 to SDUC

ACMD22 is used to verify the previously write operation.  Normally, it
returns the number of written sectors as u32.  SDUC, however, returns it
as u64.  This is not a superfluous requirement, because SDUC writes may
exceeds 2TB.  For Linux mmc however, the previously write operation
could not be more than the block layer limits, thus we make room for a
u64 and cast the returning value to u32.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20241006051148.160278-8-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[Stephen Rothwell: Fix build error when moving to new rc from Linus's tree]
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
drivers/mmc/core/block.c