Commit 045274ce authored by Bart Van Assche's avatar Bart Van Assche Committed by Saravana Kannan
Browse files

FROMGIT: scsi: sg: Enable runtime power management



In 2010, runtime power management support was implemented in the SCSI
core.  The description of patch "[SCSI] implement runtime Power
Management" mentions that the sg driver is skipped but not why. This
patch enables runtime power management even if an instance of the sg
driver is held open.  Enabling runtime PM for the sg driver is safe
because all interactions of the sg driver with the SCSI device pass
through the block layer (blk_execute_rq_nowait()) and the block layer
already supports runtime PM.

Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Fixes: bc4f2401 ("[SCSI] implement runtime Power Management")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241030220310.1373569-1-bvanassche@acm.org


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit be1f509abbf63a28b6a99f08a180525c489d902a https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

)
Bug: 376342076
Change-Id: I6de42cf053b5813ca18ee0ffc09557e3fd6bceea
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent c9e050db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment