Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2e7a77a authored by Subhash Jadavani's avatar Subhash Jadavani Committed by David Keitel
Browse files

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: default avatarSubhash Jadavani <subhashj@codeaurora.org>
[mattw@codeaurora.org: resolved trivial context conflicts]
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
[venkatg@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 36c183b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3301,7 +3301,7 @@ static int sd_suspend_common(struct device *dev, bool ignore_stop_errors)
		return 0;	/* this can happen */

	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);
		if (ret) {
			/* 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) {
		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 */
		ret = sd_start_stop_device(sdkp, 0);
		if (ignore_stop_errors)
@@ -3340,7 +3340,7 @@ static int sd_resume(struct device *dev)
	if (!sdkp->device->manage_start_stop)
		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);
}