From: hgchu Date: Fri, 12 Jan 2018 05:50:33 +0000 (+0900) Subject: scsi: ufs: set 4KB alignment for UFS FFU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6160123617ff570a3661aec2bc66ef8ca8daffdf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git scsi: ufs: set 4KB alignment for UFS FFU Change-Id: I940459a3f3c45ef446968a4e028ef000261cf91a Signed-off-by: hgchu --- diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 9a671dbc5084..ec3ac029f7cd 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4597,6 +4597,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev) blk_queue_softirq_done(sdev->request_queue, ufshcd_done); + blk_queue_update_dma_alignment(sdev->request_queue, PAGE_SIZE - 1); + return 0; }