]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 20 Apr 2022 09:03:52 +0000 (09:03 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Apr 2022 02:24:27 +0000 (22:24 -0400)
commit6775e65c9699c5e3993bc3cf86fd13319c230782
treea0bba4cb4dad9bfd7b8b0cb4bb213e801cfa90ee
parent468ca4ed8ab44f923ccc833e107ac5fd3fd58ef3
scsi: ufs: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()

Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync() and
pm_runtime_put_noidle(). This change is just to simplify the code, no
actual functional changes.

Link: https://lore.kernel.org/r/20220420090353.2588804-1-chi.minghao@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ti-j721e-ufs.c