aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/plugins/plugin_function.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2025-10-24 08:59:15 +0000
committerMartin K. Petersen <[email protected]>2025-10-30 03:20:19 +0000
commitbb44826c3bdbf1fa3957008a04908f45e5666463 (patch)
tree3da2bc0d08c17478789f0748dc12be6f88b3bd03 /tools/lib/traceevent/plugins/plugin_function.c
parentscsi: ufs: core: Revert "Make HID attributes visible" (diff)
downloadkernel-bb44826c3bdbf1fa3957008a04908f45e5666463.tar.gz
kernel-bb44826c3bdbf1fa3957008a04908f45e5666463.zip
scsi: ufs: ufs-pci: Fix S0ix/S3 for Intel controllers
Intel platforms with UFS, can support Suspend-to-Idle (S0ix) and Suspend-to-RAM (S3). For S0ix the link state should be HIBERNATE. For S3, state is lost, so the link state must be OFF. Driver policy, expressed by spm_lvl, can be 3 (link HIBERNATE, device SLEEP) for S0ix but must be changed to 5 (link OFF, device POWEROFF) for S3. Fix support for S0ix/S3 by switching spm_lvl as needed. During suspend ->prepare(), if the suspend target state is not Suspend-to-Idle, ensure the spm_lvl is at least 5 to ensure that resume will be possible from deep sleep states. During suspend ->complete(), restore the spm_lvl to its original value that is suitable for S0ix. This fix is first needed in Intel Alder Lake based controllers. Fixes: 7dc9fb47bc9a ("scsi: ufs: ufs-pci: Add support for Intel ADL") Cc: [email protected] Signed-off-by: Adrian Hunter <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions