]> 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)
commiteaf3a17229575fce5373f217c177bc4931bc7e19
tree7c93f3b57e43f865672555e9ec8038bd9a4f279c
parent982e53a3456713e95ae7cfd4e822d3c69a44a3dc
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