]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ufs: adjust queue settings to PRDT limitations
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 1 Jul 2014 14:00:32 +0000 (23:00 +0900)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:02 +0000 (17:17 -0400)
commiteeda47499f01878d60b3db8883fbbafc3c6a2a54
treea81d23f82d1b104844b7207bc75c956cd057643d
parentb2a6c5223c1e1fe293e965685a8373a6a7aca5fe
ufs: adjust queue settings to PRDT limitations

The data byte count field of PRDT indicates the length of data block
which is a segment of data transfer for SCSI commands.  The value of
this field shall have Dword granularity and the the maximum of length
is 256KB.

This adjusts dma pad mask and max segment size to the above-mentioned
PRDT limitations.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Tested-by: Dolev Raviv <draviv@codeaurora.org>
Acked-by: Vinayak Holikatti <vinholikatti@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshci.h