summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorPeter Wang <peter.wang@mediatek.com>2024-01-09 20:40:14 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2024-01-23 21:11:23 -0500
commit4380e64a94e16c757552e8e2fbdc856415012fc8 (patch)
tree13245b3417adb0aa6405a5bddac72647ade32318 /include/scsi
parente0dc13e5a3cb9de98fd00b7718738f9eef4bd0ce (diff)
downloadlwn-4380e64a94e16c757552e8e2fbdc856415012fc8.tar.gz
lwn-4380e64a94e16c757552e8e2fbdc856415012fc8.zip
scsi: core: Move autosuspend timer delay to Scsi_Host
The runtime suspend timer delay is a const value in scsi_host_template which a host driver cannot modify at runtime. Move the delay to Scsi_Host to allow a driver to update it. Signed-off-by: Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20240109124015.31359-2-peter.wang@mediatek.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_host.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 3b907fc2ef08..b259d42a1e1a 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -497,9 +497,6 @@ struct scsi_host_template {
* scsi_netlink.h
*/
u64 vendor_id;
-
- /* Delay for runtime autosuspend */
- int rpm_autosuspend_delay;
};
/*
@@ -713,6 +710,9 @@ struct Scsi_Host {
*/
struct device *dma_dev;
+ /* Delay for runtime autosuspend */
+ int rpm_autosuspend_delay;
+
/*
* We should ensure that this is aligned, both for better performance
* and also because some compilers (m68k) don't automatically force