public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: dell-laptop: Add drm module soft dependency
@ 2023-06-07  3:43 AceLan Kao
  2023-06-07  4:20 ` Matthew Garrett
  0 siblings, 1 reply; 15+ messages in thread
From: AceLan Kao @ 2023-06-07  3:43 UTC (permalink / raw)
  To: Matthew Garrett, Pali Rohár, Hans de Goede, Mark Gross,
	platform-driver-x86, linux-kernel

From: "Chia-Lin Kao (AceLan)" <acelan.kao@canonical.com>

dell_laptop is somethines loaded before nvidia driver, causing it to
create its own backlight interface before native backlight is set.
This results in the presence of 2 backlight interfaces in sysfs and
leads to the backlight can't be adjusted.
To work around this issue, delaying the loading of dell_laptop until
after drm module has been loaded.

Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
---
 drivers/platform/x86/dell/dell-laptop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/x86/dell/dell-laptop.c
index 1321687d923e..535e6c3df529 100644
--- a/drivers/platform/x86/dell/dell-laptop.c
+++ b/drivers/platform/x86/dell/dell-laptop.c
@@ -2316,6 +2316,7 @@ static void __exit dell_exit(void)
 late_initcall(dell_init);
 module_exit(dell_exit);
 
+MODULE_SOFTDEP("post: drm");
 MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
 MODULE_AUTHOR("Gabriele Mazzotta <gabriele.mzt@gmail.com>");
 MODULE_AUTHOR("Pali Rohár <pali@kernel.org>");
-- 
2.34.1


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

end of thread, other threads:[~2023-06-15  1:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07  3:43 [PATCH] platform/x86: dell-laptop: Add drm module soft dependency AceLan Kao
2023-06-07  4:20 ` Matthew Garrett
2023-06-07  5:19   ` AceLan Kao
2023-06-07  5:27     ` Matthew Garrett
2023-06-07  6:13       ` AceLan Kao
2023-06-07  6:23         ` Matthew Garrett
2023-06-07  6:56           ` Pali Rohár
2023-06-07  7:39             ` AceLan Kao
2023-06-07  7:47               ` Matthew Garrett
2023-06-07 19:16                 ` Hans de Goede
2023-06-08  3:04                   ` AceLan Kao
2023-06-08  9:16                     ` Hans de Goede
2023-06-13  7:30                       ` AceLan Kao
2023-06-13  8:54                         ` Hans de Goede
2023-06-15  1:53                           ` AceLan Kao

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