]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufshpb: Clean up the handler when device resets HPB information
authorBean Huo <beanhuo@micron.com>
Thu, 5 May 2022 13:47:04 +0000 (15:47 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:01:51 +0000 (22:01 -0400)
commit7b199ada3a55c29ed815a2249000267debccf23e
tree7c93f3b57e43f865672555e9ec8038bd9a4f279c
parentfabc862c6e41a5c1596078052e630e838c213d8e
scsi: ufs: ufshpb: Clean up the handler when device resets HPB information

"When the device is powered off by the host, the device may restore L2P map
data upon power up or build from the host's HPB READ command. In case
device powered up and lost HPB information, device can signal to the host
through HPB Sense data, by setting HPB Operation as '2' which will inform
the host that device reset HPB information."

Clean up the handler and make the intent of this handler more readable, no
functional change.

Link: https://lore.kernel.org/r/20220505134707.35929-4-huobean@gmail.com
Reviewed-by: Keoseong Park <keosung.park@samsung.com>
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c