hw/arm/aspeed: Do not create and attach empty SD cards by default
commit756f739b1682bf131994ec96dad7fbdf8b54493a
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 13 Jul 2020 13:36:12 +0000 (13 14:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jul 2020 13:36:12 +0000 (13 14:36 +0100)
tree5fd2ae411557b99697ca46f2a46d6fd7f21de3b0
parentad938fc1d53c99b264ecfc81291a4814204ff3dd
hw/arm/aspeed: Do not create and attach empty SD cards by default

Since added in commit 2bea128c3d, each SDHCI is wired with a SD
card, using empty card when no block drive provided. This is not
the desired behavior. The SDHCI exposes a SD bus to plug cards
on, if no card available, it is fine to have an unplugged bus.

Avoid creating unnecessary SD card device when no block drive
provided.

Fixes: 2bea128c3d ("hw/sd/aspeed_sdhci: New device")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200705173402.15620-1-f4bug@amsat.org
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/aspeed.c