]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: core: Simplify ufshcd_auto_hibern8_update()
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Dec 2023 19:23:58 +0000 (11:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Dec 2023 01:51:14 +0000 (20:51 -0500)
commit45a2c87f28ad0ee8c286bb6dd5686bc54f5b7160
tree7596bb7ec887123560f46c67bfe5b8284ef0fa58
parentbdf5c0bb4dd9e7a8a4423643e6c73a7114bd58d8
scsi: ufs: core: Simplify ufshcd_auto_hibern8_update()

Calls to ufshcd_auto_hibern8_update() are already serialized: this function
is either called if user space software is not running (preparing to
suspend) or from a single sysfs store callback function.  Kernfs serializes
sysfs .store() callbacks. No functionality is changed.

Reviewed-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Cc: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20231214192416.3638077-3-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c