projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e1d84
)
[COMMON] scsi: ufs: move notifying bus reset into other location
author
hgchu
<hg.chu@samsung.com>
Fri, 12 Jan 2018 06:25:37 +0000
(15:25 +0900)
committer
JaeHun Jung
<jh0801.jung@samsung.com>
Tue, 8 May 2018 08:20:36 +0000
(17:20 +0900)
Change-Id: Icfb7772f7bf067becdce952b088c1c2e02f58315
Signed-off-by: hgchu <hg.chu@samsung.com>
drivers/scsi/ufs/ufshcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ufs/ufshcd.c
b/drivers/scsi/ufs/ufshcd.c
index d3c5d7aa259d3a723af24407e32d362c4b156d8e..317eae63c98c506eedc5a3d0ad567803ab5d1075 100644
(file)
--- a/
drivers/scsi/ufs/ufshcd.c
+++ b/
drivers/scsi/ufs/ufshcd.c
@@
-6756,6
+6756,16
@@
out:
trace_ufshcd_init(dev_name(hba->dev), ret,
ktime_to_us(ktime_sub(ktime_get(), start)),
hba->curr_dev_pwr_mode, hba->uic_link_state);
+
+ if (!ret) {
+ /*
+ * Inform scsi mid-layer that we did reset and allow to handle
+ * Unit Attention properly.
+ */
+ spin_lock_irqsave(hba->host->host_lock, flags);
+ scsi_report_bus_reset(hba->host, 0);
+ spin_unlock_irqrestore(hba->host->host_lock, flags);
+ }
return ret;
}