Re: [PATCH 1/6] spapr: Call spapr_drc_reset() for all DRCs at CAS

2020-12-27 Thread David Gibson
On Fri, Dec 18, 2020 at 11:33:55AM +0100, Greg Kurz wrote: > Non-transient DRCs are either in the empty or the ready state, > which means spapr_drc_reset() doesn't change their state. It > is thus not needed to do any checking. Call spapr_drc_reset() > unconditionally and squash spapr_drc_transient

Re: [PATCH 1/6] spapr: Call spapr_drc_reset() for all DRCs at CAS

2020-12-21 Thread Daniel Henrique Barboza
On 12/18/20 7:33 AM, Greg Kurz wrote: Non-transient DRCs are either in the empty or the ready state, which means spapr_drc_reset() doesn't change their state. It is thus not needed to do any checking. Call spapr_drc_reset() unconditionally and squash spapr_drc_transient() into its only user, s

[PATCH 1/6] spapr: Call spapr_drc_reset() for all DRCs at CAS

2020-12-18 Thread Greg Kurz
Non-transient DRCs are either in the empty or the ready state, which means spapr_drc_reset() doesn't change their state. It is thus not needed to do any checking. Call spapr_drc_reset() unconditionally and squash spapr_drc_transient() into its only user, spapr_drc_needed(). Signed-off-by: Greg Kur