Re: [PATCH for-6.0 7/9] spapr: Do PHB hoplug sanity check at pre-plug

2020-11-22 Thread David Gibson
On Sat, Nov 21, 2020 at 12:42:06AM +0100, Greg Kurz wrote: > We currently detect that a PHB index is already in use at plug time. > But this can be decteted at pre-plug in order to error out earlier. > > This allows to pass _abort to spapr_drc_attach() and to end > up with a plug handler that

[PATCH for-6.0 7/9] spapr: Do PHB hoplug sanity check at pre-plug

2020-11-20 Thread Greg Kurz
We currently detect that a PHB index is already in use at plug time. But this can be decteted at pre-plug in order to error out earlier. This allows to pass _abort to spapr_drc_attach() and to end up with a plug handler that doesn't need to report errors anymore. Signed-off-by: Greg Kurz ---