misc/pvpanic: Export module FDT device table
PATCH 1/1 misc/pvpanic: Export module FDT device table
Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device.
--- drivers/misc/pvpanic.c | 1 + 1 file changed, 1 insertion(+)
drivers/misc/pvpanic.c +1 -0
@@ -92,6 +92,7 @@ static const struct of_device_id pvpanic_mmio_match[] = { { .compatible = "qemu,pvpanic-mmio", }, {} }; +MODULE_DEVICE_TABLE (of, pvpanic_mmio_match);static const struct acpi_device_id pvpanic_device_ids[] = { {"QEMU0001" ,0 },
Signature · 1 line
2.24.0.rc2
Greg Kroah-Hartman
maintainerQuoted 15 lines · Shile Zhang
Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device.
Signed-off-by Shile Zhang <[email protected]>--- drivers/misc/pvpanic.c | 1 + 1 file changed, 1 insertion(+)drivers/misc/pvpanic.c +0
-0
drivers/misc/pvpanic.c static const struct of_device_id pvpanic_mmio_match[] = { · line 95
Quoted 4 lines
drivers/misc/pvpanic.c +1
-0@@ -92,6 +92,7 @@ static const struct of_device_id pvpanic_mmio_match[] = { { .compatible = "qemu,pvpanic-mmio", }, {} }; +MODULE_DEVICE_TABLE (of, pvpanic_mmio_match);
What caused this to not work properly? I.e. should there be a "Fixes:" tag in the commit changelog as well?
thanks,
greg k-h
Quoted 11 lines · Greg Kroah-Hartman
Quoted 10 lines · Shile Zhang
Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device.
Signed-off-by Shile Zhang <[email protected]>--- drivers/misc/pvpanic.c | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
drivers/misc/pvpanic.c static const struct of_device_id pvpanic_mmio_match[] = { · line 95
Quoted 9 lines
drivers/misc/pvpanic.c +1
-0@@ -92,6 +92,7 @@ static const struct of_device_id pvpanic_mmio_match[] = { { .compatible = "qemu,pvpanic-mmio", }, {} }; +MODULE_DEVICE_TABLE (of, pvpanic_mmio_match);What caused this to not work properly? I.e. should there be a "Fixes:" tag in the commit changelog as well?
Sorry, I think it should be:
Shall I sent v2 with this update?
Thanks!
Quoted 5 lines
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 27 lines · Shile Zhang
Quoted 11 lines · Greg Kroah-Hartman
Quoted 10 lines · Shile Zhang
Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device.
Signed-off-by Shile Zhang <[email protected]>--- drivers/misc/pvpanic.c | 1 + 1 file changed, 1 insertion(+)Quoted 12 lines
drivers/misc/pvpanic.c static const struct of_device_id pvpanic_mmio_match[] = { · line 95
Quoted 9 lines
drivers/misc/pvpanic.c +1
-0@@ -92,6 +92,7 @@ static const struct of_device_id pvpanic_mmio_match[] = { { .compatible = "qemu,pvpanic-mmio", }, {} }; +MODULE_DEVICE_TABLE (of, pvpanic_mmio_match);What caused this to not work properly? I.e. should there be a "Fixes:" tag in the commit changelog as well?
Quoted 6 lines
Sorry, I think it should be:
Fixes 46f934c9a12fc ("misc/pvpanic: add support to get pvpanic device infoFDT")
Shall I sent v2 with this update?
Yes please.