scsi: sd: reduce log level for suspend/resume log messages
Generally driver should be silent during the normal operation of the device hence this change reduces the logs level for suspend/resume messages from KERN_NOTICE to KERN_DEBUG. Change-Id: I154fb7c759aa35ed32ea451729083c93fc385c11 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [mattw@codeaurora.org: resolved trivial context conflicts] Signed-off-by: Matt Wagantall <mattw@codeaurora.org> [venkatg@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
36c183b743
commit
d2e7a77a9a
1 changed files with 3 additions and 3 deletions
|
@ -3301,7 +3301,7 @@ static int sd_suspend_common(struct device *dev, bool ignore_stop_errors)
|
||||||
return 0; /* this can happen */
|
return 0; /* this can happen */
|
||||||
|
|
||||||
if (sdkp->WCE && sdkp->media_present) {
|
if (sdkp->WCE && sdkp->media_present) {
|
||||||
sd_printk(KERN_NOTICE, sdkp, "Synchronizing SCSI cache\n");
|
sd_printk(KERN_DEBUG, sdkp, "Synchronizing SCSI cache\n");
|
||||||
ret = sd_sync_cache(sdkp);
|
ret = sd_sync_cache(sdkp);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
/* ignore OFFLINE device */
|
/* ignore OFFLINE device */
|
||||||
|
@ -3312,7 +3312,7 @@ static int sd_suspend_common(struct device *dev, bool ignore_stop_errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sdkp->device->manage_start_stop) {
|
if (sdkp->device->manage_start_stop) {
|
||||||
sd_printk(KERN_NOTICE, sdkp, "Stopping disk\n");
|
sd_printk(KERN_DEBUG, sdkp, "Stopping disk\n");
|
||||||
/* an error is not worth aborting a system sleep */
|
/* an error is not worth aborting a system sleep */
|
||||||
ret = sd_start_stop_device(sdkp, 0);
|
ret = sd_start_stop_device(sdkp, 0);
|
||||||
if (ignore_stop_errors)
|
if (ignore_stop_errors)
|
||||||
|
@ -3340,7 +3340,7 @@ static int sd_resume(struct device *dev)
|
||||||
if (!sdkp->device->manage_start_stop)
|
if (!sdkp->device->manage_start_stop)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
sd_printk(KERN_NOTICE, sdkp, "Starting disk\n");
|
sd_printk(KERN_DEBUG, sdkp, "Starting disk\n");
|
||||||
return sd_start_stop_device(sdkp, 1);
|
return sd_start_stop_device(sdkp, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue