mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge branch 'yaml-bindings-for-v4.21' into dt/next
This commit is contained in:
commit
acc2038738
386 changed files with 5990 additions and 3056 deletions
|
|
@ -149,9 +149,11 @@ int of_dma_configure(struct device *dev, struct device_node *np, bool force_dma)
|
|||
* set by the driver.
|
||||
*/
|
||||
mask = DMA_BIT_MASK(ilog2(dma_addr + size - 1) + 1);
|
||||
dev->bus_dma_mask = mask;
|
||||
dev->coherent_dma_mask &= mask;
|
||||
*dev->dma_mask &= mask;
|
||||
/* ...but only set bus mask if we found valid dma-ranges earlier */
|
||||
if (!ret)
|
||||
dev->bus_dma_mask = mask;
|
||||
|
||||
coherent = of_dma_is_coherent(np);
|
||||
dev_dbg(dev, "device is%sdma coherent\n",
|
||||
|
|
|
|||
|
|
@ -104,9 +104,14 @@ static int __init of_numa_parse_distance_map_v1(struct device_node *map)
|
|||
distance = of_read_number(matrix, 1);
|
||||
matrix++;
|
||||
|
||||
if ((nodea == nodeb && distance != LOCAL_DISTANCE) ||
|
||||
(nodea != nodeb && distance <= LOCAL_DISTANCE)) {
|
||||
pr_err("Invalid distance[node%d -> node%d] = %d\n",
|
||||
nodea, nodeb, distance);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
numa_set_distance(nodea, nodeb, distance);
|
||||
pr_debug("distance[node%d -> node%d] = %d\n",
|
||||
nodea, nodeb, distance);
|
||||
|
||||
/* Set default distance of node B->A same as A->B */
|
||||
if (nodeb > nodea)
|
||||
|
|
|
|||
Loading…
Reference in a new issue