On Wed, Oct 7, 2026 at 5:03 PM Bernhard Beschow <[email protected]> wrote:
>
> Since WDT and WDE are write one once bits, their values always
> correspond with their respective locked attributes. Thus, the attributes
> are redundant. Take advantage of this observation to simplify the code.
>
> Note that removing the attributes changes the vmstate structure which
> constitutes a migration break. This is allowed since QEMU does not
> guarantee migration compatibility for i.MX devices between feature
> releases.
>
> Signed-off-by: Bernhard Beschow <[email protected]>
> ---
>  include/hw/watchdog/wdt_imx2.h |  2 --
>  hw/watchdog/wdt_imx2.c         | 20 ++++----------------
>  2 files changed, 4 insertions(+), 18 deletions(-)
>

Reviewed-by: Bin Meng <[email protected]>

Reply via email to