From: Murali Karicheri Date: Tue, 3 Mar 2015 17:52:10 +0000 (-0500) Subject: of: Fix size when dma-range is not used X-Git-Tag: omap-for-v4.1/fixes-rc1~172^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c79c81c779fe54e67c0ce8c1fda551ca57d8a35;p=pandora-kernel.git of: Fix size when dma-range is not used Fix the dma-range size when the DT attribute is missing, i.e., set size to dev->coherent_dma_mask + 1 instead of dev->coherent_dma_mask. Also add code to check invalid values of size configured in DT and log error. Tested-by: Suravee Suthikulpanit (AMD Seattle) Signed-off-by: Murali Karicheri Signed-off-by: Bjorn Helgaas Reviewed-by: Catalin Marinas Acked-by: Will Deacon CC: Joerg Roedel CC: Grant Likely CC: Rob Herring CC: Russell King CC: Arnd Bergmann --- Reading git-diff-tree failed