From: Corey Minyard <minyard@acm.org>
To: Kamlakant Patel <kamlakantp@marvell.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"openipmi-developer@lists.sourceforge.net"
<openipmi-developer@lists.sourceforge.net>
Subject: Re: [PATCH] ipmi: add i2c-addr property to ipmi platform device
Date: Wed, 24 Apr 2019 08:25:58 -0500 [thread overview]
Message-ID: <20190424132558.GB6623@minyard.net> (raw)
In-Reply-To: <1556099251-11408-1-git-send-email-kamlakantp@marvell.com>
On Wed, Apr 24, 2019 at 09:48:36AM +0000, Kamlakant Patel wrote:
> 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"
The patch really isn't right, you only want to add the i2c-addr
property if the interface is SSIF. But there's no easy way to
tell this in the current code. I'll work something up.
Also, your mailer has added DOS line endings to all your
patches and I can't apply them cleanly. If there's any way
you can use git-send for sending patches, that would be ideal.
-corey
>
> 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
>
prev parent reply other threads:[~2019-04-24 13:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 9:48 Kamlakant Patel
2019-04-24 13:25 ` Corey Minyard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190424132558.GB6623@minyard.net \
--to=minyard@acm.org \
--cc=kamlakantp@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=openipmi-developer@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®