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)
commita3f3c26d4df5475e601f18250a94232fedfa24b8
tree7c93f3b57e43f865672555e9ec8038bd9a4f279c
parent6f341ed5e3771ea932b19377302ea97a0a02e0b5
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