scsi: ufs: Data Segment only needed for WRITE DESCRIPTOR
authorZang Leigang <zangleigang@hisilicon.com>
Thu, 25 Aug 2016 09:39:19 +0000 (17:39 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Sep 2016 01:30:17 +0000 (21:30 -0400)
commit6861285ce8f8a9a55aab4775847de6e48b2dc7f2
tree4ef78852bb3f0e2ac5e30f232eaeaabb8edd60a4
parentfe9b34bfcb4e80b809a8a3dccdd49737d073593b
scsi: ufs: Data Segment only needed for WRITE DESCRIPTOR

Some devices have problems handling a Query UPIU with Data Segment
set. Only set it for WRITE DESCRIPTOR commands.

[mkp: updated patch description]

Signed-off-by: Zang Leigang <zangleigang@hisilicon.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c