scsi: ufshcd: set max_segment_size in the scsi host template
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Jun 2019 12:19:55 +0000 (14:19 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Jul 2019 03:01:49 +0000 (23:01 -0400)
commit552a990ca1668895851271df1224cb02003af348
treef939e200e7638dbd60fb507458ce141b3c9aeb39
parentbdd17bdef7d8da4d8eee254abb4c92d8a566bdc1
scsi: ufshcd: set max_segment_size in the scsi host template

We need to also mirror the value to the device to ensure IOMMU merging
doesn't undo it, and the SCSI host level parameter will ensure that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c