From: Eddie James <eajames@linux.ibm.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Ninad Palsule <ninad@linux.ibm.com>,
linux-fsi@lists.ozlabs.org, Andi Shyti <andi.shyti@kernel.org>,
linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 12/13] i2c: fsi: Convert to fsi bus probe mechanism
Date: Tue, 27 Jan 2026 09:29:16 -0600 [thread overview]
Message-ID: <cfaf48f2-2da4-4fdd-8a13-3d1e4edfe70c@linux.ibm.com> (raw)
In-Reply-To: <d8c27aed45bf3119c08c9772768d675ae2ccc0c3.1765279318.git.u.kleine-koenig@baylibre.com>
On 12/9/25 5:40 AM, Uwe Kleine-König wrote:
> The fsi bus got a dedicated probe function. Make use of that. This fixes
> a runtime warning about the driver needing to be converted to the bus
> probe method.
Acked-by: Eddie James <eajames@linux.ibm.com>
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
> ---
> drivers/i2c/busses/i2c-fsi.c | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c
> index e98dd5dcac0f..3a7e577e6eac 100644
> --- a/drivers/i2c/busses/i2c-fsi.c
> +++ b/drivers/i2c/busses/i2c-fsi.c
> @@ -674,8 +674,9 @@ static struct device_node *fsi_i2c_find_port_of_node(struct device_node *fsi,
> return NULL;
> }
>
> -static int fsi_i2c_probe(struct device *dev)
> +static int fsi_i2c_probe(struct fsi_device *fsi_dev)
> {
> + struct device *dev = &fsi_dev->dev;
> struct fsi_i2c_ctrl *i2c;
> struct fsi_i2c_port *port;
> struct device_node *np;
> @@ -735,14 +736,14 @@ static int fsi_i2c_probe(struct device *dev)
> list_add(&port->list, &i2c->ports);
> }
>
> - dev_set_drvdata(dev, i2c);
> + fsi_set_drvdata(fsi_dev, i2c);
>
> return 0;
> }
>
> -static int fsi_i2c_remove(struct device *dev)
> +static void fsi_i2c_remove(struct fsi_device *fsi_dev)
> {
> - struct fsi_i2c_ctrl *i2c = dev_get_drvdata(dev);
> + struct fsi_i2c_ctrl *i2c = fsi_get_drvdata(fsi_dev);
> struct fsi_i2c_port *port, *tmp;
>
> list_for_each_entry_safe(port, tmp, &i2c->ports, list) {
> @@ -750,8 +751,6 @@ static int fsi_i2c_remove(struct device *dev)
> i2c_del_adapter(&port->adapter);
> kfree(port);
> }
> -
> - return 0;
> }
>
> static const struct fsi_device_id fsi_i2c_ids[] = {
> @@ -761,10 +760,10 @@ static const struct fsi_device_id fsi_i2c_ids[] = {
>
> static struct fsi_driver fsi_i2c_driver = {
> .id_table = fsi_i2c_ids,
> + .probe = fsi_i2c_probe,
> + .remove = fsi_i2c_remove,
> .drv = {
> .name = "i2c-fsi",
> - .probe = fsi_i2c_probe,
> - .remove = fsi_i2c_remove,
> },
> };
>
next prev parent reply other threads:[~2026-01-27 15:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 11:39 [PATCH v2 00/13] fsi: Convert to bus probe mechanism Uwe Kleine-König
2025-12-09 11:40 ` [PATCH v2 04/13] i2c: fsi: Drop assigning fsi bus Uwe Kleine-König
2026-01-27 15:26 ` Eddie James
2025-12-09 11:40 ` [PATCH v2 12/13] i2c: fsi: Convert to fsi bus probe mechanism Uwe Kleine-König
2026-01-27 15:29 ` Eddie James [this message]
2026-01-12 9:47 ` [PATCH v2 00/13] fsi: Convert to " Uwe Kleine-König
2026-01-27 15:31 ` Eddie James
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=cfaf48f2-2da4-4fdd-8a13-3d1e4edfe70c@linux.ibm.com \
--to=eajames@linux.ibm.com \
--cc=andi.shyti@kernel.org \
--cc=linux-fsi@lists.ozlabs.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ninad@linux.ibm.com \
--cc=openbmc@lists.ozlabs.org \
--cc=u.kleine-koenig@baylibre.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