hw/sd: sd: Skip write protect groups check in sd_erase() for high capacity cards
commit2473dc4022458dcc05ec367ce97edbef29d7e50c
authorBin Meng <bin.meng@windriver.com>
Tue, 16 Feb 2021 15:02:22 +0000 (16 23:02 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 19 Feb 2021 23:17:09 +0000 (20 00:17 +0100)
tree311da47b8f8b76ae71b4ff26dd3dad9f137b6ad4
parentce6ea2efc5fb308ebf11339276f60215fe0ec44c
hw/sd: sd: Skip write protect groups check in sd_erase() for high capacity cards

High capacity cards don't support write protection hence we should
not perform the write protect groups check in sd_erase() for them.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210216150225.27996-6-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/sd.c