-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bad7c15
commit 0a8a5a2
Showing
8 changed files
with
49 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1601,15 +1601,8 @@ static int ufshcd_devfreq_target(struct device *dev, | |
} | ||
spin_unlock_irqrestore(hba->host->host_lock, irq_flags); | ||
|
||
pm_runtime_get_noresume(hba->dev); | ||
if (!pm_runtime_active(hba->dev)) { | ||
pm_runtime_put_noidle(hba->dev); | ||
ret = -EAGAIN; | ||
goto out; | ||
} | ||
start = ktime_get(); | ||
ret = ufshcd_devfreq_scale(hba, scale_up); | ||
pm_runtime_put(hba->dev); | ||
|
||
trace_ufshcd_profile_clk_scaling(dev_name(hba->dev), | ||
(scale_up ? "up" : "down"), | ||
|
@@ -4514,10 +4507,8 @@ static int __ufshcd_uic_hibern8_enter(struct ufs_hba *hba) | |
} else { | ||
ret = -EAGAIN; | ||
} | ||
} else | ||
ufshcd_vops_hibern8_notify(hba, UIC_CMD_DME_HIBER_ENTER, | ||
POST_CHANGE); | ||
|
||
} | ||
|
||
return ret; | ||
} | ||
|
||
|
@@ -6635,13 +6626,16 @@ static int ufshcd_eh_device_reset_handler(struct scsi_cmnd *cmd) | |
{ | ||
struct Scsi_Host *host; | ||
struct ufs_hba *hba; | ||
unsigned int tag; | ||
u32 pos; | ||
int err; | ||
u8 resp = 0xF, lun; | ||
u8 resp = 0xF; | ||
struct ufshcd_lrb *lrbp; | ||
unsigned long flags; | ||
|
||
host = cmd->device->host; | ||
hba = shost_priv(host); | ||
tag = cmd->request->tag; | ||
|
||
/* secure log */ | ||
#ifdef CONFIG_EXYNOS_SMC_LOGGING | ||
|
@@ -6662,7 +6656,7 @@ static int ufshcd_eh_device_reset_handler(struct scsi_cmnd *cmd) | |
|
||
/* clear the commands that were pending for corresponding LUN */ | ||
for_each_set_bit(pos, &hba->outstanding_reqs, hba->nutrs) { | ||
if (hba->lrb[pos].lun == lun) { | ||
if (hba->lrb[pos].lun == lrbp->lun) { | ||
err = ufshcd_clear_cmd(hba, pos); | ||
if (err) | ||
break; | ||
|
@@ -6791,7 +6785,7 @@ static int ufshcd_abort(struct scsi_cmnd *cmd) | |
dev_err(hba->dev, | ||
"%s: cmd was completed, but without a notifying intr, tag = %d", | ||
__func__, tag); | ||
goto clean; | ||
goto cleanup; | ||
} | ||
|
||
/* Print Transfer Request of aborted task */ | ||
|
@@ -6997,6 +6991,7 @@ static int ufshcd_reset_and_restore(struct ufs_hba *hba) | |
{ | ||
int err = 0; | ||
int retries = MAX_HOST_RESET_RETRIES; | ||
unsigned long flags; | ||
|
||
int tag; | ||
|
||
|
@@ -9841,13 +9836,6 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) | |
struct Scsi_Host *host = hba->host; | ||
struct device *dev = hba->dev; | ||
|
||
/* | ||
* dev_set_drvdata() must be called before any callbacks are registered | ||
* that use dev_get_drvdata() (frequency scaling, clock scaling, hwmon, | ||
* sysfs). | ||
*/ | ||
dev_set_drvdata(dev, hba); | ||
|
||
if (!mmio_base) { | ||
dev_err(hba->dev, | ||
"Invalid memory reference for mmio_base is NULL\n"); | ||
|
@@ -10018,4 +10006,4 @@ MODULE_AUTHOR("Santosh Yaragnavi <[email protected]>"); | |
MODULE_AUTHOR("Vinayak Holikatti <[email protected]>"); | ||
MODULE_DESCRIPTION("Generic UFS host controller driver Core"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(UFSHCD_DRIVER_VERSION); | ||
MODULE_VERSION(UFSHCD_DRIVER_VERSION); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters