]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipmi: create hardware-independent softdep for ipmi_devintf
authorMartin Wilck <mwilck@suse.com>
Fri, 25 Nov 2016 09:55:36 +0000 (10:55 +0100)
committerCorey Minyard <cminyard@mvista.com>
Mon, 12 Dec 2016 20:26:29 +0000 (14:26 -0600)
When a computer has an IPMI system interface, the device interface
is most probably also desired. Autoloading of ipmi_devintf currently
works only if ipmi_si has allocated a platform device. That doesn't
happen if the SI interface was detected e.g. via ACPI. But ACPI
detection is preferred these days, see e.g. kernel.org bug 46741.

This patch introduces a softdep in place of the existing modalias
for ipmi_devintf.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Suggested-by: Takashi Iwai <tiwai@suse.com>
I moved this to ipmi_msghandler.c, so it works for all IPMI
interfaces.  Retested by Martin.

Tested-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_msghandler.c

index 1786574536b21ef06415ae62ff14bdbfd77b3f2c..a21407de46aeb859eb7a0c11da17af887bb53175 100644 (file)
@@ -989,4 +989,3 @@ module_exit(cleanup_ipmi);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Corey Minyard <minyard@mvista.com>");
 MODULE_DESCRIPTION("Linux device interface for the IPMI message handler.");
-MODULE_ALIAS("platform:ipmi_si");
index be982d10d305cd4ecb951b5a2f0cd43693938a7b..92e53acf2cd201bfc519044149651707d5370284 100644 (file)
@@ -4646,3 +4646,4 @@ MODULE_AUTHOR("Corey Minyard <minyard@mvista.com>");
 MODULE_DESCRIPTION("Incoming and outgoing message routing for an IPMI"
                   " interface.");
 MODULE_VERSION(IPMI_DRIVER_VERSION);
+MODULE_SOFTDEP("post: ipmi_devintf");