]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: ufs-pci: Fix hibernate state transition for Intel MTL-like host controllers
authorArchana Patni <archana.patni@intel.com>
Wed, 23 Jul 2025 16:58:49 +0000 (19:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:35 +0000 (16:28 +0200)
commit03d559670ccd533ae34767597fadbf1c1f3ff1c1
tree455d9d52b9705953200729223cd885b35a74fe9d
parent8247c4269acba879ae2e56a822cde65e5d8c1b72
scsi: ufs: ufs-pci: Fix hibernate state transition for Intel MTL-like host controllers

commit 4428ddea832cfdb63e476eb2e5c8feb5d36057fe upstream.

UFSHCD core disables the UIC completion interrupt when issuing UIC
hibernation commands, and re-enables it afterwards if it was enabled to
start with, refer ufshcd_uic_pwr_ctrl(). For Intel MTL-like host
controllers, accessing the register to re-enable the interrupt disrupts
the state transition.

Use hibern8_notify variant operation to disable the interrupt during the
entire hibernation, thereby preventing the disruption.

Fixes: 4049f7acef3e ("scsi: ufs: ufs-pci: Add support for Intel MTL")
Cc: stable@vger.kernel.org
Signed-off-by: Archana Patni <archana.patni@intel.com>
Link: https://lore.kernel.org/r/20250723165856.145750-2-adrian.hunter@intel.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/host/ufshcd-pci.c