]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: core: Add missing post notify for power mode change
authorPeter Wang <peter.wang@mediatek.com>
Fri, 22 Nov 2024 02:49:43 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:25 +0000 (20:03 +0100)
commit5a717f43c2ead191e413e0bba4df926b38ece44b
tree0e93197782cce3f3dba06cfb85671b304b895fde
parent8c9425768c38ae251f243f0ee1530c3057a9db27
scsi: ufs: core: Add missing post notify for power mode change

commit 7f45ed5f0cd5ccbbec79adc6c48a67d6a85fba56 upstream.

When the power mode change is successful but the power mode hasn't
actually changed, the post notification was missed.  Similar to the
approach with hibernate/clock scale/hce enable, having pre/post
notifications in the same function will make it easier to maintain.

Additionally, supplement the description of power parameters for the
pwr_change_notify callback.

Fixes: 7eb584db73be ("ufs: refactor configuring power mode")
Cc: stable@vger.kernel.org #6.11.x
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20241122024943.30589-1-peter.wang@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h