mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ipmi: add i2c-addr property to ipmi platform device
@ 2019-04-24  9:48 Kamlakant Patel
  2019-04-24 13:25 ` Corey Minyard
  0 siblings, 1 reply; 2+ messages in thread
From: Kamlakant Patel @ 2019-04-24  9:48 UTC (permalink / raw)
  To: Corey Minyard; +Cc: Kamlakant Patel, linux-kernel, openipmi-developer

We need 'i2c-addr' property entry for ssif to work.
Otherwise, it thorws following error:
"ipmi_ssif dmi-ipmi-ssif.0: ipmi_ssif: No i2c-addr property"

Signed-off-by: Kamlakant Patel <kamlakantp@marvell.com>
---
 drivers/char/ipmi/ipmi_plat_data.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/char/ipmi/ipmi_plat_data.c b/drivers/char/ipmi/ipmi_plat_data.c
index 8f0ca2a..1075076 100644
--- a/drivers/char/ipmi/ipmi_plat_data.c
+++ b/drivers/char/ipmi/ipmi_plat_data.c
@@ -34,6 +34,8 @@ struct platform_device *ipmi_platform_add(const char *name, unsigned int inst,
 		p->regspacing = p->regsize;
 
 	pr[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", p->type);
+	if (p->addr)
+		pr[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", p->addr);
 	if (p->slave_addr)
 		pr[pidx++] = PROPERTY_ENTRY_U8("slave-addr", p->slave_addr);
 	pr[pidx++] = PROPERTY_ENTRY_U8("addr-source", p->addr_source);
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-24 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24  9:48 [PATCH] ipmi: add i2c-addr property to ipmi platform device Kamlakant Patel
2019-04-24 13:25 ` Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®