6 Dec
2013
6 Dec
'13
10:31 a.m.
On 12/05/2013 09:28 PM, Russell King - ARM Linux wrote:
gives us the very last PFN which the bus associated with dev is able to address. Hmm - so I got the test wrong on both twice - they should both be:
if (sizeof(mask) != sizeof(dma_addr_t) && mask > (dma_addr_t)~0 && dma_to_pfn(dev, ~0) < min(max_pfn, arm_dma_pfn_limit)) return 0;
since we want to fail if we have _more_ memory than the bus will allow. Can you try the above in both locations please?
Thanks, works fine. I will be out for a long weekend so you can add my:
Tested-by: Peter Ujfalusi peter.ujfalusi@ti.com
to the final patch.
--
Péter