hw/sd/sdcard: Simplify sd_inactive_state handling
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 25 Jun 2024 03:50:16 +0000 (05:50 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 2 Jul 2024 08:08:32 +0000 (10:08 +0200)
commit257e36c9e602b5d10927292d38a9c85c5738683a
treefe7693b276444007c0cf099f773d6afc51b3ca4b
parent26be1ceee5c5d0b01ebadc271807e6fb870670e7
hw/sd/sdcard: Simplify sd_inactive_state handling

Card entering sd_inactive_state powers off, and won't respond
anymore. Handle that once when entering sd_do_command().

Remove condition always true in sd_cmd_GO_IDLE_STATE().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240628070216.92609-12-philmd@linaro.org>
hw/sd/sd.c