From: Peter Korsgaard <peter@korsgaard.com>
To: York Sun <yorksun@freescale.com>
Cc: Peter Korsgaard <jacmet@sunsite.dk>,
Wolfram Sang <wsa@the-dreams.de>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
Subject: Re: multiple i2c-ocores adapters
Date: Fri, 02 Oct 2015 08:03:36 +0200 [thread overview]
Message-ID: <874mi9x0w7.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <CY1PR03MB1469CBCC35D971A2F26773DBBE4B0@CY1PR03MB1469.namprd03.prod.outlook.com> (York Sun's message of "Fri, 2 Oct 2015 05:47:37 +0000")
>>>>> "York" == York Sun <yorksun@freescale.com> writes:
> Peter,
> I have a platform (FPGA) with multiple ocores i2c adapter. When I
> register them using MFD framework, I got a message regarding
> duplicating name for sysfs. I wonder if this driver (i2c-ocores.c)
> only supports one adapter. I can try to fix it by adding a name string
> into ocores_i2c_platform_data and allocate struct i2c_adapter on
> demand. Am I on the right direction?
I guess your problem is that the driver core is complaining about
duplicate names for your platform devices (generated from the
mfd_cell). Make sure you set the .id member to something unique.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2015-10-02 6:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 5:47 multiple i2c-ocores adapters York Sun
2015-10-02 6:03 ` Peter Korsgaard [this message]
2015-10-02 19:11 ` York Sun
2015-10-02 20:51 ` Peter Korsgaard
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=874mi9x0w7.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=jacmet@sunsite.dk \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@the-dreams.de \
--cc=yorksun@freescale.com \
/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