[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 04/13] hw/core: add Resettable support to BusClass and Dev
Re: [PATCH v5 04/13] hw/core: add Resettable support to BusClass and DeviceClass
Mon, 2 Dec 2019 12:38:20 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0
On 11/29/19 7:36 PM, Peter Maydell wrote:
> On Fri, 18 Oct 2019 at 16:07, Damien Hedde <address@hidden> wrote:
>> This commit adds support of Resettable interface to buses and devices:
>> + ResettableState structure is added in the Bus/Device state
>> + Resettable methods are implemented.
>> + device/bus_is_in_reset function defined
>> This commit allows to transition the objects to the new
>> multi-phase interface without changing the reset behavior at all.
>> Object single reset method can be split into the 3 different phases
>> but the 3 phases are still executed in a row for a given object.
>> From the qdev/qbus reset api point of view, nothing is changed.
>> qdev_reset_all() and qbus_reset_all() are not modified as well as
>> Transition of an object must be done from mother class to daughter
> The standard terminology here is "parent class" and "child class".
> I notice you've used mother/daughter in a bunch of other comments
> in various patches -- could you change that to the more usual
> terms, please?
Yes. Sorry for that.
>> Care has been taken to allow the transition of a mother class
>> without requiring the daughter classes to be transitioned at the same
>> time. Note that SysBus and SysBusDevice class do not need any transition
>> because they do not override the legacy reset method.
>> Signed-off-by: Damien Hedde <address@hidden>
> Reviewed-by: Peter Maydell <address@hidden>
> -- PMM
|[Prev in Thread]
||[Next in Thread]|
- Re: [PATCH v5 04/13] hw/core: add Resettable support to BusClass and DeviceClass,
Damien Hedde <=