[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <MN2PR04MB699154831CDD5847C4674632FC430@MN2PR04MB6991.namprd04.prod.outlook.com>
Date: Mon, 2 Dec 2019 07:23:05 +0000
From: Avri Altman <Avri.Altman@....com>
To: Can Guo <cang@...eaurora.org>,
"asutoshd@...eaurora.org" <asutoshd@...eaurora.org>,
"nguyenb@...eaurora.org" <nguyenb@...eaurora.org>,
"rnayak@...eaurora.org" <rnayak@...eaurora.org>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"kernel-team@...roid.com" <kernel-team@...roid.com>,
"saravanak@...gle.com" <saravanak@...gle.com>,
"salyzyn@...gle.com" <salyzyn@...gle.com>
CC: Alim Akhtar <alim.akhtar@...sung.com>,
Pedro Sousa <pedrom.sousa@...opsys.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Bean Huo <beanhuo@...ron.com>,
Evan Green <evgreen@...omium.org>,
open list <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] scsi: ufs: Give an unique ID to each ufs-bsg
Hi,
>
> Considering there can be multiple UFS hosts in SoC, give each ufs-bsg an unique
> ID by appending the scsi host number to its device name.
Can you refer me to such a design?
Thanks,
Avri
>
> Signed-off-by: Can Guo <cang@...eaurora.org>
>
> diff --git a/drivers/scsi/ufs/ufs_bsg.c b/drivers/scsi/ufs/ufs_bsg.c index
> dc2f6d2..3ef5b78 100644
> --- a/drivers/scsi/ufs/ufs_bsg.c
> +++ b/drivers/scsi/ufs/ufs_bsg.c
> @@ -202,7 +202,7 @@ int ufs_bsg_probe(struct ufs_hba *hba)
> bsg_dev->parent = get_device(parent);
> bsg_dev->release = ufs_bsg_node_release;
>
> - dev_set_name(bsg_dev, "ufs-bsg");
> + dev_set_name(bsg_dev, "ufs-bsg%d", shost->host_no);
>
> ret = device_add(bsg_dev);
> if (ret)
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
Powered by blists - more mailing lists