[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1556099251-11408-1-git-send-email-kamlakantp@marvell.com>
Date: Wed, 24 Apr 2019 09:48:36 +0000
From: Kamlakant Patel <kamlakantp@...vell.com>
To: Corey Minyard <minyard@....org>
CC: Kamlakant Patel <kamlakantp@...vell.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"openipmi-developer@...ts.sourceforge.net"
<openipmi-developer@...ts.sourceforge.net>
Subject: [PATCH] ipmi: add i2c-addr property to ipmi platform device
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@...vell.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
Powered by blists - more mailing lists