]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
pci/shpc: convert SHPC hotplug to use hotplug-handler API
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Feb 2014 15:36:50 +0000 (16:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Feb 2014 08:27:00 +0000 (10:27 +0200)
commit5d268704d7c2bc58c38b87d7d94804639ef100ec
treefbe3d39bfd9db9efbac628f563ece30342181e83
parentc24d5e0b91d138f8cc95f5694d4964de36a739d3
pci/shpc: convert SHPC hotplug to use hotplug-handler API

Split shpc_device_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCI_BRIDGE_DEV device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS
"hotplug-handler" property to PCI_BRIDGE_DEV device.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/pci_bridge_dev.c
hw/pci/shpc.c
include/hw/pci/shpc.h