linux/include
Stanley Chu f58546bac3 FROMGIT: scsi: core: allow auto suspend override by low-level driver
Rework from previous work by:
Sujit Reddy Thumma <sthumma@codeaurora.org>

Until now the scsi mid-layer forbids runtime suspend till userspace enables
it. This is mainly to quarantine some disks with broken runtime power
management or have high latencies executing suspend resume callbacks. If
the userspace doesn't enable the runtime suspend the underlying hardware
will be always on even when it is not doing any useful work and thus
wasting power.

Some low-level drivers for the controllers can efficiently use runtime
power management to reduce power consumption and improve battery life.
Allow runtime suspend parameters override within the LLD itself instead of
waiting for userspace to control the power management.

Link: https://lore.kernel.org/r/1568649411-5127-2-git-send-email-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 140620770
(cherry picked from commit c74f805662
 https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc)
Change-Id: Ib0b9e8bec307179187a57fe47cb747416da38db2
Signed-off-by: Todd Kjos <tkjos@google.com>
2019-11-04 16:52:37 +00:00
..
acpi cpufreq: Use per-policy frequency QoS 2019-10-21 02:05:21 +02:00
asm-generic ANDROID: Revert "Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux" 2019-10-23 12:04:25 +00:00
clocksource
crypto Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity 2019-09-27 19:37:27 -07:00
drm drm: Measure Self Refresh Entry/Exit times to avoid thrashing 2019-09-19 10:03:32 -04:00
dt-bindings Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
keys
kvm
linux Linux 5.4-rc6 2019-11-04 06:51:47 +01:00
math-emu
media ANDROID: media: increase video max frame number 2019-10-29 18:11:34 +00:00
misc
net Linux 5.4-rc6 2019-11-04 06:51:47 +01:00
pcmcia
ras
rdma RDMA/uverbs: Prevent potential underflow 2019-10-22 15:05:36 -03:00
scsi FROMGIT: scsi: core: allow auto suspend override by low-level driver 2019-11-04 16:52:37 +00:00
soc Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
sound Linux 5.4-rc5 2019-10-28 13:11:46 +01:00
target
trace Linux 5.4-rc5 2019-10-28 13:11:46 +01:00
uapi Linux 5.4-rc6 2019-11-04 06:51:47 +01:00
vdso
video
xen xen: fixes and cleanups for 5.4-rc2 2019-10-04 11:13:09 -07:00
Kbuild - New Drivers 2019-09-23 19:37:49 -07:00