From: Lee Jones <lee@kernel.org>
To: Saravanan Sekar <sravanhome@gmail.com>
Cc: sre@kernel.org, jic23@kernel.org, lars@metafoo.de,
andy.shevchenko@gmail.com, linux-pm@vger.kernel.org,
linux-iio@vger.kernel.org
Subject: Re: [PATCH v6 1/7] mfd: mp2629: fix failed to get iio channel by device name
Date: Thu, 19 Jan 2023 15:00:59 +0000 [thread overview]
Message-ID: <Y8lbKy1jjkeSHJL3@google.com> (raw)
In-Reply-To: <20221123175425.564042-2-sravanhome@gmail.com>
On Wed, 23 Nov 2022, Saravanan Sekar wrote:
> The mfd cell devices name populated on sysfs entry is dynamically derived
Could you please make an attempt to capitalise words that require it?
MFD, ADC, IIO, etc. Also the start of the subject line description.
> from an auto instance which introduced a regression. As a result
> mpc2629_charger driver failed to get adc channel because of iio consumer
How can you regress something that doesn't appear to exist?
$ git grep -i mpc2629 next/master
> name mismatch with the sysfs.
Why is the charger driver reading sysfs?
> /sys/class/i2c-adapter/i2c-1/mp2629_adc.0.auto/
> /sys/class/i2c-adapter/i2c-1/mp2629_charger.1.auto/
Can you provide an error message or some debug prints or something that
will help describe the exact issue you are facing please?
> Fixes: 466a62d7642f ("mfd: core: Make a best effort attempt to match devices with the correct of_nodes")
> Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
> ---
> drivers/mfd/mp2629.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/mp2629.c b/drivers/mfd/mp2629.c
> index 16840ec5fd1c..f4c5aa06f38c 100644
> --- a/drivers/mfd/mp2629.c
> +++ b/drivers/mfd/mp2629.c
> @@ -51,7 +51,7 @@ static int mp2629_probe(struct i2c_client *client)
> return PTR_ERR(ddata->regmap);
> }
>
> - ret = devm_mfd_add_devices(ddata->dev, PLATFORM_DEVID_AUTO, mp2629_cell,
> + ret = devm_mfd_add_devices(ddata->dev, PLATFORM_DEVID_NONE, mp2629_cell,
> ARRAY_SIZE(mp2629_cell), NULL, 0, NULL);
> if (ret)
> dev_err(ddata->dev, "Failed to register sub-devices %d\n", ret);
> --
> 2.34.1
>
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2023-01-19 15:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 17:54 [PATCH v6 0/7] Add support for mp2733 battery charger Saravanan Sekar
2022-11-23 17:54 ` [PATCH v6 1/7] mfd: mp2629: fix failed to get iio channel by device name Saravanan Sekar
2023-01-19 15:00 ` Lee Jones [this message]
2022-11-23 17:54 ` [PATCH v6 2/7] power: supply: fix wrong interpretation of register value Saravanan Sekar
2022-11-24 21:45 ` Sebastian Reichel
2022-11-23 17:54 ` [PATCH v6 3/7] mfd: mp2629: introduce chip id machanism to distinguish chip Saravanan Sekar
2023-01-19 15:06 ` Lee Jones
2022-11-23 17:54 ` [PATCH v6 4/7] mfd: mp2629: Add support for mps mp2733 battery charger Saravanan Sekar
2023-01-19 15:08 ` Lee Jones
2022-11-23 17:54 ` [PATCH v6 5/7] iio: adc: mp2629: restrict input voltage mask for mp2629 Saravanan Sekar
2022-11-23 17:54 ` [PATCH v6 6/7] power: supply: Add support for mp2733 battery charger Saravanan Sekar
2022-11-23 17:54 ` [PATCH v6 7/7] power: supply: mp2629: Add USB fast charge settings Saravanan Sekar
2022-12-06 16:05 ` [PATCH v6 0/7] Add support for mp2733 battery charger saravanan sekar
2022-12-11 11:50 ` Jonathan Cameron
2023-01-03 12:37 ` Lee Jones
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=Y8lbKy1jjkeSHJL3@google.com \
--to=lee@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sravanhome@gmail.com \
--cc=sre@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).