[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 05/11] hw/core/resettable: add support for changing parent
From: |
Richard Henderson |
Subject: |
Re: [PATCH v6 05/11] hw/core/resettable: add support for changing parent |
Date: |
Sun, 29 Dec 2019 10:47:07 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 12/20/19 10:50 PM, Damien Hedde wrote:
> Add a function resettable_change_parent() to do the required
> plumbing when changing the parent a of Resettable object.
>
> We need to make sure that the reset state of the object remains
> coherent with the reset state of the new parent.
>
> We make the 2 following hypothesis:
> + when an object is put in a parent under reset, the object goes in
> reset.
> + when an object is removed from a parent under reset, the object
> leaves reset.
>
> The added function avoids any glitch if both old and new parent are
> already in reset.
>
> Signed-off-by: Damien Hedde <address@hidden>
> ---
> include/hw/resettable.h | 16 +++++++++++
> hw/core/resettable.c | 62 +++++++++++++++++++++++++++++++++++++++--
> hw/core/trace-events | 1 +
> 3 files changed, 77 insertions(+), 2 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v6 00/11] Multi-phase reset mechanism, Damien Hedde, 2019/12/20
- [PATCH v6 02/11] hw/core/qdev: add trace events to help with resettable transition, Damien Hedde, 2019/12/20
- [PATCH v6 01/11] add device_legacy_reset function to prepare for reset api change, Damien Hedde, 2019/12/20
- [PATCH v6 05/11] hw/core/resettable: add support for changing parent, Damien Hedde, 2019/12/20
- Re: [PATCH v6 05/11] hw/core/resettable: add support for changing parent,
Richard Henderson <=
- [PATCH v6 04/11] hw/core: add Resettable support to BusClass and DeviceClass, Damien Hedde, 2019/12/20
- [PATCH v6 06/11] hw/core/qdev: handle parent bus change regarding resettable, Damien Hedde, 2019/12/20
- [PATCH v6 03/11] hw/core: create Resettable QOM interface, Damien Hedde, 2019/12/20
- [PATCH v6 08/11] hw/core: deprecate old reset functions and introduce new ones, Damien Hedde, 2019/12/20
- [PATCH v6 07/11] hw/core/qdev: update hotplug reset regarding resettable, Damien Hedde, 2019/12/20
- [PATCH v6 10/11] vl: replace deprecated qbus_reset_all registration, Damien Hedde, 2019/12/20