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_plat_data.h | |
parent | b779ceadf548b2fc13ce6694d9a480d6a4330b35 (diff) | |
download | linux-d73236383eb1cd4b7b65c33a09f0ed45f6781f40.tar.gz |
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_plat_data.h')
-rw-r--r-- | drivers/char/ipmi/ipmi_plat_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_plat_data.h b/drivers/char/ipmi/ipmi_plat_data.h index 567cfcec8ada..9ba744ea9571 100644 --- a/drivers/char/ipmi/ipmi_plat_data.h +++ b/drivers/char/ipmi/ipmi_plat_data.h @@ -6,7 +6,10 @@ #include <linux/ipmi.h> +enum ipmi_plat_interface_type { IPMI_PLAT_IF_SI, IPMI_PLAT_IF_SSIF }; + struct ipmi_plat_data { + enum ipmi_plat_interface_type iftype; unsigned int type; /* si_type for si, SI_INVALID for others */ unsigned int space; /* addr_space for si, intf# for ssif. */ unsigned long addr; |