mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* platform/x86: thinkpad_acpi causing kernel oops commit 38b9ab80db31cf993a8f3ab2baf772083b62ca6f
@ 2025-03-31  7:51 Jeff Chua
  2025-03-31 12:24 ` Kurt Borja
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Chua @ 2025-03-31  7:51 UTC (permalink / raw)
  To: lkml, Kurt Borja, Mark Pearson, Ilpo Järvinen

This commit prevents the latest linux git from booting. Only those
with thinkpad-acpi will see this.
There's no clean way to revert this. I took the thinkpad_acpi.c from
vanilla 6.14.0 and that booted up with the latest linux git
(4e82c87058f45e79eeaa4d5bcc3b38dd3dce7209).




commit 38b9ab80db31cf993a8f3ab2baf772083b62ca6f
Author: Kurt Borja <kuurtb@gmail.com>
Date:   Fri Feb 14 19:03:01 2025 -0500

    platform/x86: thinkpad_acpi: Move subdriver initialization to
tpacpi_pdriver's probe.

    It was reported that if subdrivers assigned devres resources inside
    ibm_init_struct's .init callbacks, driver binding would fail with the
    following error message:

            platform thinkpad_acpi: Resources present before probing

    Let the driver core manage the lifetimes of the subdrivers and children
    devices, by initializing them inside tpacpi_driver's .probe callback.
    This is appropriate because these subdrivers usually expose sysfs groups
    and the driver core manages this automatically to avoid races.

    One immediate benefit of this, is that we are now able to use devres
    inside .init subdriver callbacks.

    platform_create_bundle is specifically used because it makes the
    driver's probe type synchronous and returns an ERR_PTR if attachment
    failed.

    Additionally, to make error handling simpler, allocate the input device
    using devm_input_allocate_device().

    Reported-by: Mark Pearson <mpearson-lenovo@squebb.ca>
    Closes: https://lore.kernel.org/platform-driver-x86/20250208091438.5972-1-mpearson-lenovo@squebb.ca/#t
    Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
    Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
    Signed-off-by: Kurt Borja <kuurtb@gmail.com>
    Link: https://lore.kernel.org/r/20250215000302.19753-2-kuurtb@gmail.com
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>



My best.,
Jeff

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

end of thread, other threads:[~2025-04-01  4:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-31  7:51 platform/x86: thinkpad_acpi causing kernel oops commit 38b9ab80db31cf993a8f3ab2baf772083b62ca6f Jeff Chua
2025-03-31 12:24 ` Kurt Borja
2025-03-31 15:05   ` Genes Lists
2025-03-31 16:04     ` Kurt Borja
2025-03-31 17:30       ` Genes Lists
2025-04-01  4:04         ` Jeff Chua

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®