mbox series

[0/2] ppc/pnv: Reset handler registration cleanup

Message ID 157841289975.66386.6463139590245180762.stgit@bahia.tlslab.ibm.com (mailing list archive)
Headers show
Series ppc/pnv: Reset handler registration cleanup | expand

Message

Greg Kurz Jan. 7, 2020, 4:32 p.m. UTC
These patches were initially posted in Cedric's "ppc/pnv: remove the use of
qdev_get_machine()" series, which isn't really related to reset handlers
BTW.

The only change is to call device_reset() instead of open-coding the
invocation of DeviceReset::reset() as suggested by David.

--
Greg

---

Greg Kurz (2):
      pnv/psi: Add device reset hook
      pnv/psi: Consolidate some duplicated code in pnv_psi_realize()


 hw/ppc/pnv_psi.c |   30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)