hw/sd/sdcard: Only call sd_req_get_rca() where RCA is used
commit4a829730c85a8e44f142aeca6c95b8b07742c96b
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 19 Jun 2024 20:12:35 +0000 (19 22:12 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 24 Jun 2024 08:41:42 +0000 (24 10:41 +0200)
tree43368a34cef41c2d7d8feadb482b82a1b5001760
parent0ab318ca3c0b370ff82e9fabf80633cc93d0574e
hw/sd/sdcard: Only call sd_req_get_rca() where RCA is used

It will be useful later to assert only AC commands
(Addressed point-to-point Commands, defined as the
'sd_ac' enum) extract the RCA value from the command
argument.

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