mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 02/13] fsi: Assign driver's bus in fsi_driver_register()
Date: Tue, 27 Jan 2026 09:25:31 -0600	[thread overview]
Message-ID: <281fd870-cc1a-4ca1-a896-10fcc2f7bc3b@linux.ibm.com> (raw)
In-Reply-To: <54804c2cd4d84a6b5fb679831122b6acdd36b168.1765279318.git.u.kleine-koenig@baylibre.com>


On 12/9/25 5:40 AM, Uwe Kleine-König wrote:
> Instead of letting each driver assign the bus, do it once in the fsi
> driver register function.
>
> Simplify the fsi drivers that are living in drivers/fsi accordingly.
>
> Once all fsi drivers dropped assigning the bus, fsi_bus_type can be made
> a static variable.


Acked-by: Eddie James <eajames@linux.ibm.com>


>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
>   drivers/fsi/fsi-core.c       | 2 ++
>   drivers/fsi/fsi-master-hub.c | 1 -
>   drivers/fsi/fsi-sbefifo.c    | 1 -
>   drivers/fsi/fsi-scom.c       | 1 -
>   drivers/fsi/i2cr-scom.c      | 1 -
>   5 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c
> index c6c115993ebc..e1ea1124282e 100644
> --- a/drivers/fsi/fsi-core.c
> +++ b/drivers/fsi/fsi-core.c
> @@ -1394,6 +1394,8 @@ int fsi_driver_register(struct fsi_driver *fsi_drv)
>   	if (!fsi_drv->id_table)
>   		return -EINVAL;
>   
> +	fsi_drv->drv.bus = &fsi_bus_type;
> +
>   	return driver_register(&fsi_drv->drv);
>   }
>   EXPORT_SYMBOL_GPL(fsi_driver_register);
> diff --git a/drivers/fsi/fsi-master-hub.c b/drivers/fsi/fsi-master-hub.c
> index 6568fed7db3c..d389856d18ac 100644
> --- a/drivers/fsi/fsi-master-hub.c
> +++ b/drivers/fsi/fsi-master-hub.c
> @@ -288,7 +288,6 @@ static struct fsi_driver hub_master_driver = {
>   	.id_table = hub_master_ids,
>   	.drv = {
>   		.name = "fsi-master-hub",
> -		.bus = &fsi_bus_type,
>   		.probe = hub_master_probe,
>   		.remove = hub_master_remove,
>   	}
> diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
> index 5a08423d0c7e..fde1c34743a0 100644
> --- a/drivers/fsi/fsi-sbefifo.c
> +++ b/drivers/fsi/fsi-sbefifo.c
> @@ -1133,7 +1133,6 @@ static struct fsi_driver sbefifo_drv = {
>   	.id_table = sbefifo_ids,
>   	.drv = {
>   		.name = DEVICE_NAME,
> -		.bus = &fsi_bus_type,
>   		.probe = sbefifo_probe,
>   		.remove = sbefifo_remove,
>   	}
> diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c
> index f533106085ac..2eda44451cc1 100644
> --- a/drivers/fsi/fsi-scom.c
> +++ b/drivers/fsi/fsi-scom.c
> @@ -606,7 +606,6 @@ static struct fsi_driver scom_drv = {
>   	.id_table = scom_ids,
>   	.drv = {
>   		.name = "scom",
> -		.bus = &fsi_bus_type,
>   		.of_match_table = scom_of_ids,
>   		.probe = scom_probe,
>   		.remove = scom_remove,
> diff --git a/drivers/fsi/i2cr-scom.c b/drivers/fsi/i2cr-scom.c
> index cb7e02213032..dfdb16afd205 100644
> --- a/drivers/fsi/i2cr-scom.c
> +++ b/drivers/fsi/i2cr-scom.c
> @@ -140,7 +140,6 @@ static struct fsi_driver i2cr_scom_driver = {
>   	.id_table = i2cr_scom_ids,
>   	.drv = {
>   		.name = "i2cr_scom",
> -		.bus = &fsi_bus_type,
>   		.of_match_table = i2cr_scom_of_ids,
>   		.probe = i2cr_scom_probe,
>   		.remove = i2cr_scom_remove,

  reply	other threads:[~2026-01-27 15:25 UTC|newest]

Thread overview: 29+ 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 01/13] fsi: Make use of module_fsi_driver() Uwe Kleine-König
2026-01-27 15:25   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 02/13] fsi: Assign driver's bus in fsi_driver_register() Uwe Kleine-König
2026-01-27 15:25   ` Eddie James [this message]
2025-12-09 11:40 ` [PATCH v2 03/13] fsi: Provide thin wrappers around dev_[gs]et_data() for fsi devices Uwe Kleine-König
2026-01-27 15:25   ` Eddie James
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 05/13] spi: " Uwe Kleine-König
2026-01-27 15:26   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 06/13] fsi: Make fsi_bus_type a private variable to the core Uwe Kleine-König
2026-01-27 15:26   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 07/13] fsi: Create bus specific probe and remove functions Uwe Kleine-König
2026-01-27 15:27   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 08/13] fsi: i2cr-scom: Convert to fsi bus probe mechanism Uwe Kleine-König
2026-01-27 15:27   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 09/13] fsi: master: " Uwe Kleine-König
2026-01-27 15:27   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 10/13] fsi: sbefifo: " Uwe Kleine-König
2026-01-27 15:28   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 11/13] fsi: scom: " Uwe Kleine-König
2026-01-27 15:28   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 12/13] i2c: fsi: " Uwe Kleine-König
2026-01-27 15:29   ` Eddie James
2025-12-09 11:40 ` [PATCH v2 13/13] spi: " Uwe Kleine-König
2026-01-27 15:29   ` Eddie James
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=281fd870-cc1a-4ca1-a896-10fcc2f7bc3b@linux.ibm.com \
    --to=eajames@linux.ibm.com \
    --cc=linux-fsi@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ninad@linux.ibm.com \
    --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

all inboxes | Powered by JetHome®