From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Johan Hovold <johan@kernel.org>,
Support Opensource <support.opensource@diasemi.com>,
Milo Kim <milo.kim@ti.com>,
patches@opensource.wolfsonmicro.com,
Fabio Estevam <fabio.estevam@freescale.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] mfd: Fix platform device ids to avoid probe failure
Date: Fri, 20 Mar 2015 20:10:24 +0100 [thread overview]
Message-ID: <3934255.fvpITXUWu4@amdc1032> (raw)
In-Reply-To: <1426878127-13497-1-git-send-email-b.zolnierkie@samsung.com>
Hi,
Please get v2 instead (with corrected 'stable' mailing list address on cc:).
Sorry for the noise.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
On Friday, March 20, 2015 08:02:02 PM Bartlomiej Zolnierkiewicz wrote:
> Hi,
>
> Commit 6e3f62f0793e ("mfd: core: Fix platform-device id generation")
> changed the way platform device ids are generated from mfd id base and
> cell ids in mfd_add_device(). Unfortunately the change in question
> breaks mfd drivers which are using mfd_add_devices() with mfd id base
> equal to -1 and non-zero cell ids (used to distinguish cells with
> the same name field). The result is that mfd core tries to register
> platform devices with the same name which obviously fails and leads
> to mfd device probe failure.
>
> Relevant error messages (in this case for MAX8997 PMIC driver):
>
> [ 0.911674] ------------[ cut here ]------------
> [ 0.911706] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x54/0x70()
> [ 0.911718] sysfs: cannot create duplicate filename '/devices/13860000.i2c/i2c-0/0-0066/max8997-led'
> ...
> [ 0.912382] ------------[ cut here ]------------
> [ 0.912402] WARNING: CPU: 0 PID: 1 at lib/kobject.c:240 kobject_add_internal+0x238/0x2c0()
> [ 0.912411] kobject_add_internal failed for max8997-led with -EEXIST, don't try to register things with the same name in th
> ...
> [ 0.920721] max8997 0-0066: failed to add MFD devices -17
> [ 0.921553] max8997: probe of 0-0066 failed with error -17
>
> Changing mfd_add_devices() mfd id base from -1 to 0 and at the same
> time setting proper cell ids for all cells fixes the issue.
>
> MAX8997 PMIC fix was tested on Exynos4210 Origen board, the rest of
> patches is compile tested only.
>
> Best regards,
> --
> Bartlomiej Zolnierkiewicz
> Samsung R&D Institute Poland
> Samsung Electronics
>
>
> Bartlomiej Zolnierkiewicz (5):
> mfd: max8997: Fix platform device ids to avoid probe failure
> mfd: da9055: Fix platform device ids to avoid probe failure
> mfd: lp8788: Fix platform device ids to avoid probe failure
> mfd: wm831x: Fix platform device ids to avoid probe failure
> mfd: da9052: Fix platform device names
>
> drivers/mfd/da9052-core.c | 21 ++++--
> drivers/mfd/da9055-core.c | 21 ++++--
> drivers/mfd/lp8788.c | 10 ++-
> drivers/mfd/max8997.c | 16 ++--
> drivers/mfd/wm831x-core.c | 184 +++++++++++++++++++++++++++-------------------
> 5 files changed, 150 insertions(+), 102 deletions(-)
prev parent reply other threads:[~2015-03-20 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 19:02 [PATCH 0/5] mfd: Fix platform device ids to avoid probe failure Bartlomiej Zolnierkiewicz
2015-03-20 19:02 ` [PATCH 1/5] mfd: max8997: " Bartlomiej Zolnierkiewicz
2015-03-20 19:02 ` [PATCH 2/5] mfd: da9055: " Bartlomiej Zolnierkiewicz
2015-03-20 19:10 ` Bartlomiej Zolnierkiewicz [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=3934255.fvpITXUWu4@amdc1032 \
--to=b.zolnierkie@samsung.com \
--cc=fabio.estevam@freescale.com \
--cc=johan@kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=milo.kim@ti.com \
--cc=patches@opensource.wolfsonmicro.com \
--cc=sameo@linux.intel.com \
--cc=support.opensource@diasemi.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