[PATCH 1/4] [USB] UASP: Set iface data before scanning host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Luben Tuikov <ltuikov@xxxxxxxxx>
---
 drivers/usb/storage/uasp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/storage/uasp.c b/drivers/usb/storage/uasp.c
index 1d2b2e3..3b10efd 100644
--- a/drivers/usb/storage/uasp.c
+++ b/drivers/usb/storage/uasp.c
@@ -1059,8 +1059,8 @@ static int uasp_probe(struct usb_interface *iface,
 		goto Free;
 
 	shost->hostdata[0] = (unsigned long)tpinfo;
-	scsi_scan_host(shost);
 	usb_set_intfdata(iface, shost);
+	scsi_scan_host(shost);
 
 	return res;
  Free:
-- 
1.7.0.1


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux