[PATCH v2 0/2] Reuse TYPE_GPIO_PWR in ppce500 machine

Bernhard Beschow posted 2 patches 2 weeks, 3 days ago
MAINTAINERS    |  1 +
hw/ppc/e500.c  | 16 ++++------------
hw/ppc/Kconfig |  1 +
3 files changed, 6 insertions(+), 12 deletions(-)
[PATCH v2 0/2] Reuse TYPE_GPIO_PWR in ppce500 machine
Posted by Bernhard Beschow 2 weeks, 3 days ago
Just like the ARM virt machine, the ppce500 machine implements a
"gpio-poweroff"-compatible device tree node. So far, the implementations
aren't shared, and in addition, the ppce500 machine uses qemu_allocate_irq()
which leaks memory. This series fixes both by reusing TYPE_GPIO_PWR.

Testing done:
* Build qemu_ppc64_e5500_defconfig in Buildroot, run it in the ppce500 machine
  and issue the `poweroff` command. Observe that QEMU is shut down cleanly.

[1] https://github.com/shentok/qemu/tree/e500-fdt

Supersedes: 20240923101554.12900-1-shentey@gmail.com

Bernhard Beschow (2):
  MAINTAINERS: Add hw/gpio/gpio_pwr.c
  hw/ppc/e500: Reuse TYPE_GPIO_PWR

 MAINTAINERS    |  1 +
 hw/ppc/e500.c  | 16 ++++------------
 hw/ppc/Kconfig |  1 +
 3 files changed, 6 insertions(+), 12 deletions(-)

-- 
2.46.2