From: Akinobu Mita Date: Sun, 13 Jul 2014 12:24:46 +0000 (+0900) Subject: ufs: fix DMA mask setting X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3d7bf9c646e976d33027d65dfd60124e3dc7e9;p=pandora-kernel.git ufs: fix DMA mask setting If the controller doesn't support 64-bit addressing mode, it must not set the DMA mask to 64-bit. But it's unconditionally trying to set to 64-bit without checking 64-bit addressing support in the controller capabilities. It was correctly checked before commit 3b1d05807a9a68c6d0580e9248247a774a4d3be6 ("[SCSI] ufs: Segregate PCI Specific Code"), this aims to restores the correct behaviour. To achieve this in a generic way, firstly we should push down the DMA mask setting routine ufshcd_set_dma_mask() from PCI glue driver to core driver in order to do it for both PCI glue driver and Platform glue driver. Secondly, we should change pci_ DMA mapping API to dma_ DMA mapping API because core driver is independent of glue drivers. Signed-off-by: Akinobu Mita Acked-by: Santosh Y Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed