diff mbox series

[v3,2/7] scsi: ufs: Instantiate a ufs bsg if its available

Message ID 1535970796-25582-3-git-send-email-avri.altman@wdc.com (mailing list archive)
State Superseded
Headers show
Series scsi: ufs bsg endpoint | expand

Commit Message

Avri Altman Sept. 3, 2018, 10:33 a.m. UTC
Call the probe/remove APIs.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
---
 drivers/scsi/ufs/ufshcd.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Christoph Hellwig Sept. 4, 2018, 7:15 p.m. UTC | #1
On Mon, Sep 03, 2018 at 01:33:11PM +0300, Avri Altman wrote:
> Call the probe/remove APIs.

This belongs into the previous patch.
Avri Altman Sept. 5, 2018, 6:02 a.m. UTC | #2
> -----Original Message-----
> From: Christoph Hellwig <hch@lst.de>
> Sent: Tuesday, September 04, 2018 10:16 PM
> To: Avri Altman <Avri.Altman@wdc.com>
> Cc: Christoph Hellwig <hch@lst.de>; Johannes Thumshirn
> <jthumshirn@suse.de>; Hannes Reinecke <hare@suse.com>; Bart Van Assche
> <Bart.VanAssche@wdc.com>; James E.J. Bottomley
> <jejb@linux.vnet.ibm.com>; Martin K. Petersen
> <martin.petersen@oracle.com>; linux-scsi@vger.kernel.org; Stanislav Nijnikov
> <Stanislav.Nijnikov@wdc.com>; Avi Shchislowski
> <Avi.Shchislowski@wdc.com>; Alex Lemberg <Alex.Lemberg@wdc.com>;
> Subhash Jadavani <subhashj@codeaurora.org>; Vinayak Holikatti
> <Vinayak.Holikatti@wdc.com>
> Subject: Re: [PATCH v3 2/7] scsi: ufs: Instantiate a ufs bsg if its available
> 
> On Mon, Sep 03, 2018 at 01:33:11PM +0300, Avri Altman wrote:
> > Call the probe/remove APIs.
> 
> This belongs into the previous patch.
Done.

Thanks,
Avri
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 9d5d2ca..ed37914 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -46,6 +46,7 @@ 
 #include "ufs_quirks.h"
 #include "unipro.h"
 #include "ufs-sysfs.h"
+#include "ufs_bsg.h"
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/ufs.h>
@@ -6652,6 +6653,8 @@  static int ufshcd_probe_hba(struct ufs_hba *hba)
 			hba->clk_scaling.is_allowed = true;
 		}
 
+		ufs_bsg_probe(hba);
+
 		scsi_scan_host(hba->host);
 		pm_runtime_put_sync(hba->dev);
 	}
@@ -7875,6 +7878,7 @@  int ufshcd_shutdown(struct ufs_hba *hba)
  */
 void ufshcd_remove(struct ufs_hba *hba)
 {
+	ufs_bsg_remove();
 	ufs_sysfs_remove_nodes(hba->dev);
 	scsi_remove_host(hba->host);
 	/* disable interrupts */