search for: register_slot

Displaying 5 results from an estimated 5 matches for "register_slot".

2011 Feb 28
12
[RFC PATCH] set current_state to D0 in register_slot
...ore the device" */ at this point if we refer to the commit message that introduced the comment above (10b3dcae0f275e2546e55303d64ddbb58cec7599), it is up to the hotplug driver to set the state to D0. However AFAICT the pci hotplug driver never does, in fact drivers/pci/hotplug/acpiphp_glue.c:register_slot sets the slot flags to (SLOT_ENABLED | SLOT_POWEREDON) but it does not set the pci device current state to PCI_D0. So my proposed fix is also to set current_state = PCI_D0 in register_slot. Comments are very welcome. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> ---...
2011 Dec 02
6
[PATCH] tools/firmware: remove "_PS0/3" Method
tools/firmware: remove "_PS0/3" Method Do not expose the ACPI power management "_PS0/3" Method to guest firmware. According to section 3.4 of the APCI specification 4.0, PCI device control the device power through its own specification but not through APCI. Qemu pushes "_PS0/3" to guest will cause a mess between ACPI PM and PCI PM as a result of incorrect ACPI table
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
.../pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -39,6 +39,8 @@ * bus. It loses the refcount when the the driver unloads. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> @@ -171,7 +173,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) for (slot = bridge->slots; slot; slot = slot->next) if (slot->device == device) { if (slot->sun != sun) - warn("sibling found, but _SUN doesn't match!\n"); + pr_warn("sibling found, but _SUN doesn...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
.../pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -39,6 +39,8 @@ * bus. It loses the refcount when the the driver unloads. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> @@ -171,7 +173,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) for (slot = bridge->slots; slot; slot = slot->next) if (slot->device == device) { if (slot->sun != sun) - warn("sibling found, but _SUN doesn't match!\n"); + pr_warn("sibling found, but _SUN doesn...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
.../pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -39,6 +39,8 @@ * bus. It loses the refcount when the the driver unloads. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> @@ -171,7 +173,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) for (slot = bridge->slots; slot; slot = slot->next) if (slot->device == device) { if (slot->sun != sun) - warn("sibling found, but _SUN doesn't match!\n"); + pr_warn("sibling found, but _SUN doesn...