mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
UPSTREAM: scsi: ufs: Print the counter of each event history
Print event counter after dumping the event history.
Link: https://lore.kernel.org/r/20210203101443.28934-1-dh0421.hwang@samsung.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: DooHyun Hwang <dh0421.hwang@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit bafd09f8d8)
Bug: 204438323
Change-Id: Ic03a2b5e9d7a0417faca2193089d1cab4d441f6e
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
71121c3c33
commit
6636ec454a
@@ -465,6 +465,8 @@ static void ufshcd_print_evt(struct ufs_hba *hba, u32 id,
|
||||
|
||||
if (!found)
|
||||
dev_err(hba->dev, "No record of %s\n", err_name);
|
||||
else
|
||||
dev_err(hba->dev, "%s: total cnt=%llu\n", err_name, e->cnt);
|
||||
}
|
||||
|
||||
static void ufshcd_print_evt_hist(struct ufs_hba *hba)
|
||||
@@ -1885,7 +1887,7 @@ static ssize_t ufshcd_clkgate_delay_show(struct device *dev,
|
||||
{
|
||||
struct ufs_hba *hba = dev_get_drvdata(dev);
|
||||
|
||||
return snprintf(buf, PAGE_SIZE, "%lu\n", hba->clk_gating.delay_ms);
|
||||
return sysfs_emit(buf, "%lu\n", hba->clk_gating.delay_ms);
|
||||
}
|
||||
|
||||
static ssize_t ufshcd_clkgate_delay_store(struct device *dev,
|
||||
@@ -1908,7 +1910,7 @@ static ssize_t ufshcd_clkgate_enable_show(struct device *dev,
|
||||
{
|
||||
struct ufs_hba *hba = dev_get_drvdata(dev);
|
||||
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", hba->clk_gating.is_enabled);
|
||||
return sysfs_emit(buf, "%d\n", hba->clk_gating.is_enabled);
|
||||
}
|
||||
|
||||
static ssize_t ufshcd_clkgate_enable_store(struct device *dev,
|
||||
|
||||
Reference in New Issue
Block a user