hw/sd/sdcard: Implement eMMC sleep state (CMD5)
commitcfde1788dd41cdc9720af7a91feeb4efde000a81
authorLuc Michel <luc.michel@amd.com>
Tue, 20 Feb 2024 11:17:18 +0000 (20 12:17 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 16 Jul 2024 18:27:26 +0000 (16 20:27 +0200)
tree2f8b3fd53e41d1d1d5c3bbe12a3b76128a8a55db
parentb13b29ed3812cf249db61fec8840917966a9d0c9
hw/sd/sdcard: Implement eMMC sleep state (CMD5)

The JEDEC standards specifies a sleep state where the eMMC won't
answer any command appart from RESET and WAKEUP and go to low power
state.  Implement this state and the corresponding command number 5.

Signed-off-by: Luc Michel <luc.michel@amd.com>
Signed-off-by: Francisco Iglesias <francisco.iglesias@amd.com>
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: <20240712162719.88165-8-philmd@linaro.org>
hw/sd/sd.c