mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 22:31:15 +00:00
hw/sd/sdcard: Remove noise from sd_acmd_name()
These ACMD names weren't really useful, "UNKNOWN_ACMD" is simpler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au> Tested-by: Cédric Le Goater <clg@redhat.com> Message-Id: <20240628070216.92609-77-philmd@linaro.org>
This commit is contained in:
parent
69372c7e33
commit
e84e0c4df5
12
hw/sd/sd.c
12
hw/sd/sd.c
@ -257,23 +257,13 @@ static const char *sd_cmd_name(SDState *sd, uint8_t cmd)
|
|||||||
|
|
||||||
static const char *sd_acmd_name(SDState *sd, uint8_t cmd)
|
static const char *sd_acmd_name(SDState *sd, uint8_t cmd)
|
||||||
{
|
{
|
||||||
static const char *acmd_abbrev[SDMMC_CMD_MAX] = {
|
|
||||||
[14] = "DPS_spec", [15] = "DPS_spec",
|
|
||||||
[16] = "DPS_spec",
|
|
||||||
[18] = "SECU_spec",
|
|
||||||
[52] = "SECU_spec", [53] = "SECU_spec",
|
|
||||||
[54] = "SECU_spec",
|
|
||||||
[56] = "SECU_spec", [57] = "SECU_spec",
|
|
||||||
[58] = "SECU_spec", [59] = "SECU_spec",
|
|
||||||
};
|
|
||||||
const SDProto *sdp = sd->proto;
|
const SDProto *sdp = sd->proto;
|
||||||
|
|
||||||
if (sdp->acmd[cmd].handler) {
|
if (sdp->acmd[cmd].handler) {
|
||||||
assert(!acmd_abbrev[cmd]);
|
|
||||||
return sdp->acmd[cmd].name;
|
return sdp->acmd[cmd].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acmd_abbrev[cmd] ? acmd_abbrev[cmd] : "UNKNOWN_ACMD";
|
return "UNKNOWN_ACMD";
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t sd_get_dat_lines(SDState *sd)
|
static uint8_t sd_get_dat_lines(SDState *sd)
|
||||||
|
Loading…
Reference in New Issue
Block a user