hw/sd/sdcard: Use READY_FOR_DATA definition instead of magic value
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-10-philmd@linaro.org>
This commit is contained in:
parent
7028187bd0
commit
854f5bc655
@ -559,7 +559,7 @@ FIELD(CSR, OUT_OF_RANGE, 31, 1)
|
|||||||
|
|
||||||
static void sd_set_cardstatus(SDState *sd)
|
static void sd_set_cardstatus(SDState *sd)
|
||||||
{
|
{
|
||||||
sd->card_status = 0x00000100;
|
sd->card_status = READY_FOR_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sd_set_sdstatus(SDState *sd)
|
static void sd_set_sdstatus(SDState *sd)
|
||||||
|
Loading…
Reference in New Issue
Block a user