]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:11 +0000 (20:03 +0100)
commit19e22f1e68c76adb191aebf17312d2e7d019d03c
tree290ea2ddb3e5dd3dc44165b00e1e34268eb6c0d5
parentc00372e41bf658deab01be55aa83285a599569c0
mmc: core: Adjust ACMD22 to SDUC

[ Upstream commit 449f34a34088d02457fa0f3216747e8a35bc03ae ]

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>
Stable-dep-of: 869d37475788 ("mmc: core: Use GFP_NOIO in ACMD22")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/block.c