mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
mmc: core: don't try to switch block size for dual rate mode
Per spec, block size should always be 512 bytes for dual rate mode, so any attempts to switch the block size under dual rate mode should be neglected. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
3794c54264
commit
1712c9373f
@ -2576,7 +2576,8 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen)
|
||||
{
|
||||
struct mmc_command cmd = {0};
|
||||
|
||||
if (mmc_card_blockaddr(card) || mmc_card_ddr52(card))
|
||||
if (mmc_card_blockaddr(card) || mmc_card_ddr52(card) ||
|
||||
mmc_card_hs400(card) || mmc_card_hs400es(card))
|
||||
return 0;
|
||||
|
||||
cmd.opcode = MMC_SET_BLOCKLEN;
|
||||
|
Loading…
Reference in New Issue
Block a user