提交 b3721fc1 编写于 作者: I Itai Katz 提交者: Greg Kroah-Hartman

staging: fsl-mc: set cacheable flag for added devices if applicable

Some DPAA2 devices have mmio regions that should be mapped as
cacheable by drivers.  Set IORESOURCE_CACHEABLE in the region's
flags if applicable.
Signed-off-by: NItai Katz <itai.katz@nxp.com>
[Stuart: update subject and commit message]
Signed-off-by: NStuart Yoder <stuart.yoder@nxp.com>
Acked-by: NGerman Rivera <german.rivera@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0f90f25b
...@@ -354,6 +354,8 @@ static int fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev, ...@@ -354,6 +354,8 @@ static int fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev,
regions[i].end = regions[i].start + region_desc.size - 1; regions[i].end = regions[i].start + region_desc.size - 1;
regions[i].name = "fsl-mc object MMIO region"; regions[i].name = "fsl-mc object MMIO region";
regions[i].flags = IORESOURCE_IO; regions[i].flags = IORESOURCE_IO;
if (region_desc.flags & DPRC_REGION_CACHEABLE)
regions[i].flags |= IORESOURCE_CACHEABLE;
} }
mc_dev->regions = regions; mc_dev->regions = regions;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册