scsi: ufs: continue to boot even with Boot LUN is disabled
authorHuanlin Ke <chgokhl@gmail.com>
Fri, 22 Sep 2017 10:31:47 +0000 (18:31 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Sep 2017 01:45:46 +0000 (21:45 -0400)
commit3d21fbdedc8b0a6a73528bc6fd2850fdc1e93031
tree87b39fb9efe044c74644410050ff9740cb4ec576
parent090171885f505ea6814ad6459e9982bb4444c245
scsi: ufs: continue to boot even with Boot LUN is disabled

Several configurable fields of the Device Descriptor and the Unit
Descriptors determine the Boot LUN status. The bBootEnable field and the
bBootLunEn attribute is set to zero by default, so the Boot LUN is
disabled by default.

At which point the scsi device add for Boot LUN will fail, but we can
continue to use the ufs device in fact. This failure shouldn't abort the
device boot.

Signed-off-by: Huanlin Ke <kehuanlin@pinecone.net>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c