hw/sd: sdhci: Limit block size only when SDHC_BLKSIZE register is writable
commit5cd7aa3451b76bb19c0f6adc2b931f091e5d7fcd
authorBin Meng <bmeng.cn@gmail.com>
Wed, 3 Mar 2021 12:26:38 +0000 (3 20:26 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 22 Mar 2021 15:56:19 +0000 (22 16:56 +0100)
treedb44d2245ab9e6d408baeed8b48d9b498421a3fa
parentbc6f28995ff88f5d82c38afcfd65406f0ae375aa
hw/sd: sdhci: Limit block size only when SDHC_BLKSIZE register is writable

The codes to limit the maximum block size is only necessary when
SDHC_BLKSIZE register is writable.

Tested-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20210303122639.20004-5-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/sdhci.c