[PATCH V6 0/4] add pvpanic driver framework
From: Peng Hao
Date: Mon Feb 18 2019 - 22:07:26 EST
QEMU community requires additional PCI devices to simulate PVPANIC
devices so that some architectures can not occupy precious less than 4G
of memory space.
Previously, I added PCI driver directly to the original version of the driver,
which made the whole driver file look a bit cluttered. So Andy Shevchenko suggests:
"I would recommend to split it in a way how it's done for ChipIdea USB driver,
for example. (drivers/usb/chipidea if I'm not mistaken)".
v5 ---> v6 : add mutex lock in pvpanic_remove_device.
v4 ---> v5 : Merge some patches to one for avoiding bisectability issues.
Make sure that just one pvpanic device is working.
v3 ---> v4 : add help text info in Konfig.
adjust structure definition position.
v2 ---> v3 : add change infomation.
v1 ---> v2 : add patch 0000 to descript the whole patch series.
modify text infomation.
modify "SPDX-License-Identifier: GPL-2.0-or-later"
to "SPDX-License-Identifier: GPL-2.0+"
Peng Hao (4):
misc/pvpanic: preparing for pvpanic driver framework
misc/pvpanic: Add pvpanic driver framework
misc/pvpanic: Avoid initializing multiple pvpanic devices
misc/pvpanic: add new pvpanic pci driver
drivers/misc/Kconfig | 9 +-
drivers/misc/Makefile | 2 +-
drivers/misc/pvpanic.c | 192 ------------------------------------
drivers/misc/pvpanic/Kconfig | 34 +++++++
drivers/misc/pvpanic/Makefile | 8 ++
drivers/misc/pvpanic/pvpanic-acpi.c | 77 +++++++++++++++
drivers/misc/pvpanic/pvpanic-of.c | 53 ++++++++++
drivers/misc/pvpanic/pvpanic-pci.c | 56 +++++++++++
drivers/misc/pvpanic/pvpanic.c | 140 ++++++++++++++++++++++++++
drivers/misc/pvpanic/pvpanic.h | 15 +++
10 files changed, 385 insertions(+), 201 deletions(-)
delete mode 100644 drivers/misc/pvpanic.c
create mode 100644 drivers/misc/pvpanic/Kconfig
create mode 100644 drivers/misc/pvpanic/Makefile
create mode 100644 drivers/misc/pvpanic/pvpanic-acpi.c
create mode 100644 drivers/misc/pvpanic/pvpanic-of.c
create mode 100644 drivers/misc/pvpanic/pvpanic-pci.c
create mode 100644 drivers/misc/pvpanic/pvpanic.c
create mode 100644 drivers/misc/pvpanic/pvpanic.h
--
1.8.3.1