summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_si_platform.c
Commit message (Collapse)AuthorAgeFilesLines
* ipmi_si: Consolidate scanning the platform busCorey Minyard2019-02-221-0/+20
| | | | | | The same basic code was in two places. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi_si: Switch hotmod to use a platform deviceCorey Minyard2019-02-221-0/+1
| | | | | | Don't force the main code to create one for it. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi: Consolidate the adding of platform devicesCorey Minyard2019-02-221-8/+3Star
| | | | | | | | | | | It was being done in two different places now that hard-coded devices use platform devices, and it's about to be three with hotmod switching to platform devices. So put the code in one place. This required some rework on some interfaces to make the type space clean. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi_si: Rename addr_type to addr_space to match what it doesCorey Minyard2019-02-221-7/+7
| | | | | | Make the naming consistent, and make the values an enum. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi_si: Fix crash when using hard-coded deviceCorey Minyard2019-02-221-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When excuting a command like: modprobe ipmi_si ports=0xffc0e3 type=bt The system would get an oops. The trouble here is that ipmi_si_hardcode_find_bmc() is called before ipmi_si_platform_init(), but initialization of the hard-coded device creates an IPMI platform device, which won't be initialized yet. The real trouble is that hard-coded devices aren't created with any device, and the fixup is done later. So do it right, create the hard-coded devices as normal platform devices. This required adding some new resource types to the IPMI platform code for passing information required by the hard-coded device and adding some code to remove the hard-coded platform devices on module removal. To enforce the "hard-coded devices passed by the user take priority over firmware devices" rule, some special code was added to check and see if a hard-coded device already exists. Reported-by: Yang Yingliang <yangyingliang@huawei.com> Cc: stable@vger.kernel.org # v4.15+ Signed-off-by: Corey Minyard <cminyard@mvista.com> Tested-by: Yang Yingliang <yangyingliang@huawei.com>
* ipmi: Remove platform driver overrides and use the id_tableCorey Minyard2018-09-181-0/+6
| | | | | | | | The IPMI DMI code was adding platform overrides, which is not really an ideal solution. Switch to using the id_table in the drivers to identify the devices. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi: Use more common logging stylesJoe Perches2018-09-181-9/+11
| | | | | | | | | | | | | | Add and use #define pr_fmt/dev_fmt, and remove #define PFX This also prefixes some messages that were not previously prefixed. Miscellanea: o Convert printk(KERN_<level> to pr_<level>( o Use %s, __func__ where appropriate Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi: Remove ACPI SPMI probing from the system interface driverCorey Minyard2018-03-121-154/+0Star
| | | | | | | | | | | | | | | | The IPMI spec states: The purpose of the SPMI Table is to provide a mechanism that can be used by the OSPM (an ACPI term for “OS Operating System-directed configuration and Power Management” essentially meaning an ACPI-aware OS or OS loader) very early in the boot process, e.g., before the ability to execute ACPI control methods in the OS is available. When we are probing IPMI in Linux, ACPI control methods are available, so we shouldn't be probing using SPMI. It could cause some confusion during the probing process. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi: Add or fix SPDX-License-Identifier in all filesCorey Minyard2018-02-271-0/+1
| | | | | | | | | | | And get rid of the license text that is no longer necessary. Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: Kees Cook <keescook@chromium.org> Cc: Alistair Popple <alistair@popple.id.au> Cc: Jeremy Kerr <jk@ozlabs.org> Cc: Joel Stanley <joel@jms.id.au> Cc: Rocky Craig <rocky.craig@hp.com>
* ipmi_si_platform: Fix typo in parameter descriptionWei Yongjun2017-12-121-1/+1
| | | | | | | | Fix typo in parameter description. Fixes: 95e300c052fd ("ipmi: Make the DMI probe into a generic platform probe") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi: Make the DMI probe into a generic platform probeCorey Minyard2017-09-281-55/+46Star
| | | | | | | | | Rework the DMI probe function to be a generic platform probe, and then rework the DMI code (and a few other things) to use the more generic information. This is so other things can declare platform IPMI devices. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* ipmi_si: Move platform device handling to another fileCorey Minyard2017-09-281-0/+602
Signed-off-by: Corey Minyard <cminyard@mvista.com> Stephen Rothwell <sfr@canb.auug.org.au> fixed an issue with the include files