mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] ACPI: bus: Fix MFD child automatic modprobe issue
@ 2026-03-18  3:47 Pratap Nirujogi
  2026-03-18 11:02 ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Pratap Nirujogi @ 2026-03-18  3:47 UTC (permalink / raw)
  To: rafael, lenb, mlimonci, bin.du, alexander.deucher
  Cc: benjamin.chan, king.li, linux-acpi, linux-kernel, Pratap Nirujogi

MFD child devices sharing parent's ACPI Companion fails to probe as
acpi_companion_match() returns incompatible ACPI Companion handle for
binding with the check for pnp.type.backlight added recently. Remove this
pnp.type.backlight check in acpi_companion_match() to fix the automatic
modprobe issue.

Fixes: 7a7a7ed5f8bdb ("ACPI: scan: Register platform devices for backlight device objects")
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
---
 drivers/acpi/bus.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index f6707325f5821..2ec095e2009e4 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -818,9 +818,6 @@ const struct acpi_device *acpi_companion_match(const struct device *dev)
 	if (list_empty(&adev->pnp.ids))
 		return NULL;
 
-	if (adev->pnp.type.backlight)
-		return adev;
-
 	return acpi_primary_dev_companion(adev, dev);
 }
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ACPI: bus: Fix MFD child automatic modprobe issue
  2026-03-18  3:47 [PATCH v1] ACPI: bus: Fix MFD child automatic modprobe issue Pratap Nirujogi
@ 2026-03-18 11:02 ` Rafael J. Wysocki
  2026-03-18 12:25   ` Nirujogi, Pratap
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2026-03-18 11:02 UTC (permalink / raw)
  To: Pratap Nirujogi
  Cc: rafael, lenb, mlimonci, bin.du, alexander.deucher, benjamin.chan,
	king.li, linux-acpi, linux-kernel

On Wed, Mar 18, 2026 at 4:49 AM Pratap Nirujogi <pratap.nirujogi@amd.com> wrote:
>
> MFD child devices sharing parent's ACPI Companion fails to probe as
> acpi_companion_match() returns incompatible ACPI Companion handle for
> binding with the check for pnp.type.backlight added recently. Remove this
> pnp.type.backlight check in acpi_companion_match() to fix the automatic
> modprobe issue.
>
> Fixes: 7a7a7ed5f8bdb ("ACPI: scan: Register platform devices for backlight device objects")
> Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
> ---
>  drivers/acpi/bus.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
> index f6707325f5821..2ec095e2009e4 100644
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -818,9 +818,6 @@ const struct acpi_device *acpi_companion_match(const struct device *dev)
>         if (list_empty(&adev->pnp.ids))
>                 return NULL;
>
> -       if (adev->pnp.type.backlight)
> -               return adev;
> -

Good catch!

I forgot to remove this in

https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=acpi-7.0-rc4&id=6ab3532b4c98f4e51969f0e5f3fc919c535f3ce1

>         return acpi_primary_dev_companion(adev, dev);
>  }
>
> --

So applied as 7.0-rc material, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ACPI: bus: Fix MFD child automatic modprobe issue
  2026-03-18 11:02 ` Rafael J. Wysocki
@ 2026-03-18 12:25   ` Nirujogi, Pratap
  0 siblings, 0 replies; 3+ messages in thread
From: Nirujogi, Pratap @ 2026-03-18 12:25 UTC (permalink / raw)
  To: Rafael J. Wysocki, Pratap Nirujogi
  Cc: lenb, mlimonci, bin.du, alexander.deucher, benjamin.chan,
	king.li, linux-acpi, linux-kernel



On 3/18/2026 7:02 AM, Rafael J. Wysocki wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> On Wed, Mar 18, 2026 at 4:49 AM Pratap Nirujogi <pratap.nirujogi@amd.com> wrote:
>>
>> MFD child devices sharing parent's ACPI Companion fails to probe as
>> acpi_companion_match() returns incompatible ACPI Companion handle for
>> binding with the check for pnp.type.backlight added recently. Remove this
>> pnp.type.backlight check in acpi_companion_match() to fix the automatic
>> modprobe issue.
>>
>> Fixes: 7a7a7ed5f8bdb ("ACPI: scan: Register platform devices for backlight device objects")
>> Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
>> ---
>>   drivers/acpi/bus.c | 3 ---
>>   1 file changed, 3 deletions(-)
>>
>> diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
>> index f6707325f5821..2ec095e2009e4 100644
>> --- a/drivers/acpi/bus.c
>> +++ b/drivers/acpi/bus.c
>> @@ -818,9 +818,6 @@ const struct acpi_device *acpi_companion_match(const struct device *dev)
>>          if (list_empty(&adev->pnp.ids))
>>                  return NULL;
>>
>> -       if (adev->pnp.type.backlight)
>> -               return adev;
>> -
> 
> Good catch!
> 
> I forgot to remove this in
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=acpi-7.0-rc4&id=6ab3532b4c98f4e51969f0e5f3fc919c535f3ce1
> 
>>          return acpi_primary_dev_companion(adev, dev);
>>   }
>>
>> --
> 
> So applied as 7.0-rc material, thanks!

Thanks, Rafael.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-18 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-18  3:47 [PATCH v1] ACPI: bus: Fix MFD child automatic modprobe issue Pratap Nirujogi
2026-03-18 11:02 ` Rafael J. Wysocki
2026-03-18 12:25   ` Nirujogi, Pratap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®