File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ EXPORT_SYMBOL(dma_set_coherent_mask);
918
918
* the system, else %false. Lack of addressing bits is the prime reason for
919
919
* bounce buffering, but might not be the only one.
920
920
*/
921
- bool dma_addressing_limited (struct device * dev )
921
+ static bool __dma_addressing_limited (struct device * dev )
922
922
{
923
923
const struct dma_map_ops * ops = get_dma_ops (dev );
924
924
@@ -930,6 +930,15 @@ bool dma_addressing_limited(struct device *dev)
930
930
return false;
931
931
return !dma_direct_all_ram_mapped (dev );
932
932
}
933
+
934
+ bool dma_addressing_limited (struct device * dev )
935
+ {
936
+ if (!__dma_addressing_limited (dev ))
937
+ return false;
938
+
939
+ dev_dbg (dev , "device is DMA addressing limited\n" );
940
+ return true;
941
+ }
933
942
EXPORT_SYMBOL_GPL (dma_addressing_limited );
934
943
935
944
size_t dma_max_mapping_size (struct device * dev )
You can’t perform that action at this time.
0 commit comments