diff mbox series

scsi: ufs: add soft dependency on governor_simpleondemand

Message ID 20230220140740.14379-1-athierry@redhat.com
State New
Headers show
Series scsi: ufs: add soft dependency on governor_simpleondemand | expand

Commit Message

Adrien Thierry Feb. 20, 2023, 2:07 p.m. UTC
The ufshcd driver uses simpleondemand governor for devfreq. Add it to
the list of ufshcd softdeps to allow userspace initramfs tools like
dracut to automatically pull the governor module into the initramfs
together with ufs drivers.

Signed-off-by: Adrien Thierry <athierry@redhat.com>
---
 drivers/ufs/core/ufshcd.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen March 7, 2023, 2:57 a.m. UTC | #1
On Mon, 20 Feb 2023 09:07:40 -0500, Adrien Thierry wrote:

> The ufshcd driver uses simpleondemand governor for devfreq. Add it to
> the list of ufshcd softdeps to allow userspace initramfs tools like
> dracut to automatically pull the governor module into the initramfs
> together with ufs drivers.
> 
> 

Applied to 6.3/scsi-fixes, thanks!

[1/1] scsi: ufs: add soft dependency on governor_simpleondemand
      https://git.kernel.org/mkp/scsi/c/2ebe16155dc8
diff mbox series

Patch

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 3a1c4d31e010..4b969127f6ae 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -10079,4 +10079,5 @@  module_exit(ufshcd_core_exit);
 MODULE_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>");
 MODULE_AUTHOR("Vinayak Holikatti <h.vinayak@samsung.com>");
 MODULE_DESCRIPTION("Generic UFS host controller driver Core");
+MODULE_SOFTDEP("pre: governor_simpleondemand");
 MODULE_LICENSE("GPL");