]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/npcm7xx_sdhci: Access the card using its published address
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 2 Jul 2024 13:06:04 +0000 (15:06 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jul 2024 21:50:12 +0000 (23:50 +0200)
commit3baae281501f6eea879bff2200ca15ee2ff637be
tree5cbb0c095f1c3a88e1f034759327c59b7665f20b
parentf28cfc39d7ed7ef717e49d48e703538692c53238
tests/qtest/npcm7xx_sdhci: Access the card using its published address

Currently setup_sd_card() asks the card its address,
but discard the response and use hardcoded 0x4567.

Set the SDHC_CMD_RESPONSE bit to have the controller
record the bus response, and read the response from
the RSPREG0 register. Then we can select the card with
its real address.

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: <20240702140842.54242-4-philmd@linaro.org>
tests/qtest/libqos/sdhci-cmd.h
tests/qtest/npcm7xx_sdhci-test.c