diff options
author | Corey Minyard <cminyard@mvista.com> | 2019-04-24 08:32:02 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-04-24 09:02:53 -0500 |
commit | d73236383eb1cd4b7b65c33a09f0ed45f6781f40 (patch) | |
tree | 65d4c68c22e5b2222cea8029c5e9b9fd3bde2997 /drivers/char/ipmi/ipmi_dmi.c | |
parent | b779ceadf548b2fc13ce6694d9a480d6a4330b35 (diff) |
ipmi: Add the i2c-addr property for SSIF interfaces
This is required for SSIF to work.
There was no way to know if the interface being added was SI
or SSIF from the platform data, but that was required so the
i2c-addr is only added for SSIF interfaces. So add a field
for that.
Also rework the logic a bit so that ipmi-type is not set
for SSIF interfaces, as it is not necessary for that.
Fixes: 3cd83bac481d ("ipmi: Consolidate the adding of platform devices")
Reported-by: Kamlakant Patel <kamlakantp@marvell.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org # 5.1
Diffstat (limited to 'drivers/char/ipmi/ipmi_dmi.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_dmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_dmi.c b/drivers/char/ipmi/ipmi_dmi.c index f2411468f33f..f38e651dd1b5 100644 --- a/drivers/char/ipmi/ipmi_dmi.c +++ b/drivers/char/ipmi/ipmi_dmi.c @@ -47,9 +47,11 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr, memset(&p, 0, sizeof(p)); name = "dmi-ipmi-si"; + p.iftype = IPMI_PLAT_IF_SI; switch (type) { case IPMI_DMI_TYPE_SSIF: name = "dmi-ipmi-ssif"; + p.iftype = IPMI_PLAT_IF_SSIF; p.type = SI_TYPE_INVALID; break; case IPMI_DMI_TYPE_BT: |