Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1342536

[PATCH v1 3/3] scsi: allow scsi devices to use direct complete

From Derek Basehore <dbasehore@chromium.org>
Newsgroups linux.kernel
Subject [PATCH v1 3/3] scsi: allow scsi devices to use direct complete
Date 2016-02-25 01:20 +0100
Message-ID <r5ROW-40H-11@gated-at.bofh.it> (permalink)
References <r5ROW-40H-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This allows scsi devices to remain runtime suspended for system
suspend. Since runtime suspend is stricter than system suspend
callbacks, this is just returning a positive number for the prepare
callback.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
---
 drivers/scsi/scsi_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c
index b44c1bb..7af76ad 100644
--- a/drivers/scsi/scsi_pm.c
+++ b/drivers/scsi/scsi_pm.c
@@ -178,7 +178,7 @@ static int scsi_bus_prepare(struct device *dev)
 		/* Wait until async scanning is finished */
 		scsi_complete_async_scans();
 	}
-	return 0;
+	return 1;
 }
 
 static int scsi_bus_suspend(struct device *dev)
-- 
2.7.0.rc3.207.g0ac5344

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v1 1/3] PM / sleep: Check legacy pm callbacks for direct complete Derek Basehore <dbasehore@chromium.org> - 2016-02-25 01:20 +0100
  [PATCH v1 3/3] scsi: allow scsi devices to use direct complete Derek Basehore <dbasehore@chromium.org> - 2016-02-25 01:20 +0100
  [PATCH v1 2/3] PM / sleep: try to runtime suspend for direct complete Derek Basehore <dbasehore@chromium.org> - 2016-02-25 01:20 +0100
    Re: [PATCH v1 2/3] PM / sleep: try to runtime suspend for direct complete Ulf Hansson <ulf.hansson@linaro.org> - 2016-03-01 21:50 +0100
      Re: [PATCH v1 2/3] PM / sleep: try to runtime suspend for direct complete Ulf Hansson <ulf.hansson@linaro.org> - 2016-03-02 10:30 +0100

csiph-web