Skip to contentSkip to conversation

PVPANIC PCI driver

DISCUSSION Andy Shevchenko 1 participant 1 message Jan 20, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

+Cc: LKML and Peng

Quoted 12 lines · Mihai Carabas

Hello Andy,

Some time ago you have created a patchset where you have combined ACPI/MMIO into a single driver for pvpanic:

commit f104060813fe79350565b68c1098fcea050a6504

Author: Andy Shevchenko <[email protected]>
Date:   Wed Dec 9 22:36:41 2020 +0200

misc: pvpanic: Combine ACPI and platform drivers

Quoted 8 lines

I also have sent some patches where I created a driver framework for adding a PCI driver. These being said, I want to send again another patchset to add a PVPANIC PCI driver, but I am not sure what is the right approach you would like to see:
- create a totally different driver for pvpanic pci and naming it pvpanic-pci.c with its config PVPANIC_PCI
- create the framework I have sent before but having only two buses (ACPI/MMIO in one file and PCI in another)

Generic approach is to have three files:
- core part
- platform driver
- PCI driver

in this case.

Quoted 4 lines

In qemu they are basically two different devices (one is -device pvpanic and the other is -device pvpanic-pci)

I could not find any precedence in other drivers. Your input is welcome.

Signature · 2 lines
With Best Regards,
Andy Shevchenko