Re: [PATCH 07/26] hw/sd: sdhci: Migrate the Host Control 2 register
Philippe Mathieu-Daudé <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 23/7/26 17:18, Bin Meng wrote:
> The Host Control 2 register has been part of SDHCIState since its
> initial implementation, but it was omitted from sdhci_vmstate.
> Migration therefore resets the register to zero and can change tuning,
> voltage, or DMA behavior.
>
> Migrate nonzero values in an optional subsection. Clear the register
> before loading so older streams retain the reset default without
> changing the main stream version.
>
> Fixes: ea55a221bfc0 ("sdhci: implement the Host Control 2 register (tuning sequence)")
> Signed-off-by: Bin Meng <[email protected]>
> ---
>
> hw/sd/sdhci.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
Cc: [email protected]
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>