You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From f7011c18a26d40a07b837a79d0efdad795ad7250 Mon Sep 17 00:00:00 2001
|
|
From: Itai Katz <itai.katz@nxp.com>
|
|
Date: Mon, 11 Apr 2016 11:55:48 -0500
|
|
Subject: [PATCH 172/226] 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>
|
|
---
|
|
drivers/staging/fsl-mc/bus/mc-bus.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- 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_region
|
|
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;
|