diff options
author | Itai Katz <itai.katz@nxp.com> | 2016-04-11 11:55:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-29 18:00:45 -0700 |
commit | b3721fc1e0cb2f2e1e4732ab4c9bf72363a6b5ed (patch) | |
tree | 0dce4ec644aaa5a878e462928701615d2cf5cd30 /drivers/staging/fsl-mc | |
parent | 0f90f25b8f83f5185c0fea8fa02b6bb77917f916 (diff) | |
download | blackbird-op-linux-b3721fc1e0cb2f2e1e4732ab4c9bf72363a6b5ed.tar.gz blackbird-op-linux-b3721fc1e0cb2f2e1e4732ab4c9bf72363a6b5ed.zip |
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: Itai Katz <itai.katz@nxp.com>
[Stuart: update subject and commit message]
Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Acked-by: German Rivera <german.rivera@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc')
-rw-r--r-- | drivers/staging/fsl-mc/bus/mc-bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index 8bf76d72e0f8..20755974666b 100644 --- a/drivers/staging/fsl-mc/bus/mc-bus.c +++ b/drivers/staging/fsl-mc/bus/mc-bus.c @@ -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].name = "fsl-mc object MMIO region"; regions[i].flags = IORESOURCE_IO; + if (region_desc.flags & DPRC_REGION_CACHEABLE) + regions[i].flags |= IORESOURCE_CACHEABLE; } mc_dev->regions = regions; |