hw/sd/sdcard: Add mmc SWITCH function support (CMD6)
commit8f25b74a32316b718884796459921696cd43f048
authorSai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Wed, 25 May 2022 07:21:22 +0000 (25 09:21 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 16 Jul 2024 18:28:28 +0000 (16 20:28 +0200)
tree6ae531273060e1a1c2755987dfc0f4d996169598
parentc3561ab6249322893273707016b2b2253d0e89c3
hw/sd/sdcard: Add mmc SWITCH function support (CMD6)

switch operation in mmc cards, updated the ext_csd register to
request changes in card operations. Here we implement similar
sequence but requests are mostly dummy and make no change.

Implement SWITCH_ERROR if the write operation offset goes beyond
length of ext_csd.

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[PMD: Convert to SDProto handlers, add trace events]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240712162719.88165-11-philmd@linaro.org>
hw/sd/sd.c
hw/sd/trace-events