Re: [PATCH 08/13] platform/x86: eeepc-laptop: Convert to pci_assign_unassigned_bus_resources()

From: Denis Benato

Date: Mon Nov 16 2026 - 21:52:31 EST



On 11/16/26 16:23, Ilpo Järvinen wrote:
> The eeepc-laptop driver scans single device and then attempts to assign
> its resource using pci_bus_assign_resources(). That function makes
> bridge window sizing disjoint from the assignment phase and is going to
> be removed.
>
> Convert pci_bus_assign_resources() to
> pci_assign_unassigned_bus_resources() which is likely no-op in this case
> as it looks like bridges are not involved here.

Hi Ilpo,

I don't know exactly why, but this smells like what I had to do in
asus-armoury: scan the pci bus for new devices.

It has been on my TODO list for a while (and I think it will need to
stay there some more) to try to understand why these are even needed.

Dissecting the ROG ally xg mobile ACPI I found the signal that is supposed
to tell the kernel about the hotplug, but it's either not reaching the correct
part of the system or the triggered rescan is not on the whole pci root port
and the linux kernel is searching for changes where those changes aren't
possible.

I have some more notes:

In https://uefi.org/specs/ACPI/6.4_A/05_ACPI_Software_Programming_Model.html#device-object-notifications
I quote: "If the device is a bridge, OSPM may re-enumerate the bridge and the child bus"... The kernel has handling for this already with ACPI_NOTIFY_DEVICE_CHECK but it looks like
what needs to happen isn't happening (probably is re-enumerating only the child).

I will need to debug this eventually, unless someone more skilled then me in
ACPI and pci takes a look at that and solve the issue properly without
triggering a rescan, since the ACPI notification is surely there (at least for ally),
not this exact case.

Best regards,
Denis

Reviewed-by: Denis Benato <denis.benato@xxxxxxxxx>

> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
> ---
> drivers/platform/x86/eeepc-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
> index 8a640c25830a..7394221cbad1 100644
> --- a/drivers/platform/x86/eeepc-laptop.c
> +++ b/drivers/platform/x86/eeepc-laptop.c
> @@ -609,7 +609,7 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)
> }
> dev = pci_scan_single_device(bus, 0);
> if (dev) {
> - pci_bus_assign_resources(bus);
> + pci_assign_unassigned_bus_resources(bus);
> pci_bus_add_device(dev);
> }
> } else {