ipmi: Add the i2c-addr property for SSIF interfaces
authorCorey Minyard <cminyard@mvista.com>
Wed, 24 Apr 2019 13:32:02 +0000 (08:32 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 24 Apr 2019 14:02:53 +0000 (09:02 -0500)
commitd73236383eb1cd4b7b65c33a09f0ed45f6781f40
tree65d4c68c22e5b2222cea8029c5e9b9fd3bde2997
parentb779ceadf548b2fc13ce6694d9a480d6a4330b35
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
drivers/char/ipmi/ipmi_dmi.c
drivers/char/ipmi/ipmi_plat_data.c
drivers/char/ipmi/ipmi_plat_data.h
drivers/char/ipmi/ipmi_si_hardcode.c
drivers/char/ipmi/ipmi_si_hotmod.c