Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754368AbcDKQz4 (ORCPT ); Mon, 11 Apr 2016 12:55:56 -0400 Received: from mail-by2on0073.outbound.protection.outlook.com ([207.46.100.73]:33082 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751624AbcDKQzw (ORCPT ); Mon, 11 Apr 2016 12:55:52 -0400 X-Greylist: delayed 441 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Apr 2016 12:55:52 EDT Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; From: Stuart Yoder To: , CC: , , , , , Itai Katz , Stuart Yoder Subject: [PATCH 08/14] staging: fsl-mc: set cacheable flag for added devices if applicable Date: Mon, 11 Apr 2016 11:55:48 -0500 Message-ID: <1460393748-16356-1-git-send-email-stuart.yoder@nxp.com> X-Mailer: git-send-email 1.7.9.5 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131048673501154494;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(586003)(77096005)(5008740100001)(50986999)(19580395003)(19580405001)(87936001)(4326007)(106466001)(1220700001)(1096002)(48376002)(105606002)(47776003)(189998001)(5001770100001)(33646002)(50466002)(50226001)(81166005)(86362001)(92566002)(36756003)(2906002)(11100500001)(104016004)(6806005)(7059030)(4720700001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0301MB1224;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD023;1:FQ5bFUfh5sq3TiNEsVE7QT5Vu+qkYZDrzF4PWIFzVRgK8hR6f2qxncT2rTVGFlT+S4lxHY7nmfR3JdSBaPBydY5jow7IMirHJ0bShzf62PXuVvW1Kn21P+y9Lj9k625KYf29OY1ZJxK7Me2iG+Yz3WX7JU7k+PrHLuWjfDnIhGb4iFxx1H5Mys09eNSaMsRd3TOE9+ZlR28qkodjasLImBCC15hBg8nUtQ6rDbA3StrGwllkBDacuYOWGRSeN1S+h+t5SIS7qLWqPV4OmriX9t7135I5j99+11RT3HLEMjLz3j7Y5BbCMbVzsN2Bb0mSuPyszUXy8KzNNA/OB0Re0Oz9f1BpoePHUuARjbIy1Jj7HFwRtp3wajXQYlPokKFAbx6ygDMkkYGm6QQzEENwAGq5MmMpbHFixUHDyWuHcFkjaGfzRLtS87F1fVmrPnD3F/no0TiEn9vKzBdxFmAvu01rUOtZU59b2KrN8icu7jJzPmTIvfeA++TE+3amZWijjjji9DLot6K19hzvESK25ZG9Oe2jTwwgIRYmnrik0dFCUVrBB8OVI4zPAVnxzI8iQbrgNexsJ9jj+cKMm4MtmYDW0y2ivBNe1DCAu25MvaqzDJxKr+IEY/cQ/wCt/199FyHs7dgxwMg4RL/kK6hLDZ5aMbxKEn4D3lLePrcu/m5Q6dnBPXHJtOpX8iHMzSRk MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 79a891bb-a76d-476d-c9fc-08d3622a22c4 X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1224;2:zeRp43Q38fVV9hWFaE+XXFGayhhicGeThO97amddoHMNMI5ErK10it3GgBtA46MglFwWZKp+5bXYzxmujjFNt3exOBXqphPP623nGxpOGp8MjNSimiq6ky6kOriZ7AU4AG3NEsJvhpEZlPzp6c/VDyljzR/oJVQ7p47AZORNyAxRgm877Xr5v2OMQ6jbscKy;3:nCuxtpKk8fdDKHVhenoRIQ/CV7RIU8bKfUnk4m3WB5gzk+1p1dXcYQvxXw0n1uBQfGHrxDil6AYiZDFwCuw1HGVhSM3obnv/TvEw+NTLVNq7FLmBLnD56Wnmn1YomYX9d9Vmns6DtFryxyY7oxoF5fJ47sIqV+YLL2jxSyQ26sh/BpDUlWlfcCbXOAO3L7Kh9r6w3SekY67PeYbArAC40R4WtryJydeEG8wA4hV6Sm8=;25:t3wt1TYbSY798/2R1pv7uspGfHGGZ7HaUestwCJb1yY7KfXzeoz7UFuTYe1Xwy8+BWwaUB4HTp9uU0SJrNBsMMtzBTtIYtgOSAyKDCAOncIngWWaGVq7xNR39I4zvTAXoswiocBYi96ohS5C3tceQetdj7AjmT5swMR+1OBf3He6bXmn+pqSUzW76g1JM6pYUyrQE+LiAvmQPbC7vedCu9QunN8t3uEFyFvK2RPwxVwSanvqjuK8f4uXTyrHAz3ELx4ZcteBQ3usg87WP43GWbC05ypIMRMUGz9RJZ8n5PwA65OrhjxA8aLsupjHA2B4sqERyYxg9J4L3hX8ManVTw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1224; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13018025)(13017025)(13015025)(5005006)(13024025)(13023025)(8121501046)(10201501046)(3002001)(6055026);SRVR:BY1PR0301MB1224;BCL:0;PCL:0;RULEID:(400006);SRVR:BY1PR0301MB1224; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1224;4:Ha9CXRUkR+MTMV1qNnyWSaa7q2CaMWg7bwKh4QbtfGa8gi246grEVM1ubJu8OWpGtR+k7Xko/4Tz8ThN7JOVYMKuTRu61l1mWqBMIBf6BjkC+3p6u0f662uaDWp6ETqemAswdDaNPOef+bHQ/HMPuz/9EExa0D562uWIYry4gWJwP94tVVIZYH+LaXCT+em7iADo7A9icRtVdmbxrnmVB5HJzhTwHGwVpvg/sncH8DYYFyGdLOqLnF/MjuF26opdF6IevrMo0v8yKA1hMyfeCalbJ9rLZfIrHgD+LJTtAyJdPXQd4/PuVKCYDW7BT16ePZd3VXq7w8WkApui5nT6r6vkNyHgKnk2fatRpcEc4L9/+ASitqZEWmle5TwgDR7VzHhI7EGopbqMOHZ0+dVcHZOh/Rt+QMUc3SnnPfIzrwTin7ywDgxx/fmJITozL3Su3UVrq5x7pSguKIBaxXUp2Dj8TU9nQC25lPAF2+nrpdI= X-Forefront-PRVS: 09090B6B69 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB1224;23:AmiP2U9jKVDReMxyGrIVcTKKVcTQAIsO7horQLc?= =?us-ascii?Q?uCBbm8BfzegSv7CEw4U5r5/WOGvi3I4DLZhdlFxu8XkzZk2jwBr1/oUmGjbv?= =?us-ascii?Q?jQQTsBmwEu1ytKSrmfc3KxSUSvzUUKV63Ovrm2xLHU5vHG54B8JLTFuCEZXK?= =?us-ascii?Q?RcmfS30WXv2GVlMSjaDz4d/ilSWuajO4pdR/Z+t0g6TvNispf87HnvkLuVtm?= =?us-ascii?Q?Kzl2SJTNnZeDyY7T5eUY/M+OggkOlypuZMTTEKHJad6dnnGXivvfuMj/7+zz?= =?us-ascii?Q?AVw2XKVtk6HWb/Hhg69rC1D3TbrGhRXhR57nnXEOECIJquFjbw4J0a3HQGz4?= =?us-ascii?Q?v71l5jzRY9tD/U98IQNfEc/twgahl+OqroE13O+4s2V8JuZaB9tAFlQYtONS?= =?us-ascii?Q?EMq2syTrq3sU/WMjhkytgNz2OumOj/ZOoiPmxv4GiFfUYcWazWJPwyFTwkGX?= =?us-ascii?Q?73ixncQnYpu7fj3/vPxW/o18VE5JLOQnWpRyrW6QlwBP/A6N0K5hPXycqpSX?= =?us-ascii?Q?gQRlbbclOLIJhi7L9qbFQuejrohL7PX9hQjMRKzFn2cO7FEdrb6fIgjGEPO/?= =?us-ascii?Q?npzHmgvYEpvT64506mjctQ0SSYso9aEpS55/5hSotetAtSp80GOmSVuvrvrx?= =?us-ascii?Q?dz56fnIa6E100HzFojN3UQzCFIrMCIq0tk22ujvqdBCVepHghrshfVZK/qA6?= =?us-ascii?Q?fOrqSh0Yf3JVmBQWHWHkobxub74DXiJhspC5AitYCNQVSxvm0zxr1crXiDWR?= =?us-ascii?Q?YyD8wqyKTkshwNac9sijw9hYmrZowJI1EDPEar+I7N5boX7pMR/+SylSsd+T?= =?us-ascii?Q?z0+xRX1xcCUlbrthULzzz+yiVFli0noGg9vVFP5dLM+092qhU7gc8Pqow8TZ?= =?us-ascii?Q?YgDTToLh4huLqC6Z1SouWdyoKwtBy11xDbuZgqnmDcvq+PTZ/otmd0gD5R/l?= =?us-ascii?Q?s50HWVW/kriVpjDbCIEiPKHnNas0ASF+4dUA2VUkdow=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1224;5:VexHCeQJn2kCByLSGIFFRcYG/zBII0tkk+2xcUQrVxaaEjGzDTL+dAc+4COsjopffzGHHq7VwIzI2xuHz+jyGwpwlP4p9dQqkDA0AuohDsPj+/65UkWjfFIjHEU09g6F7h7oCNbvnWULJDT1kBGHphsGXXBNhFppCj5cdc+81Hg=;24:JR7diJj3uFdSSUDRPMoPVAwS089qteEYb3awxmEtyZkGuMH2SpPaUNxqkcCI/5CiMHdAPSwCkb+2xI1HYHd4/PiLC7itnJfCvchIepOyvDI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2016 16:55:49.6942 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1224 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 28 From: Itai Katz 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 [Stuart: update subject and commit message] Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/mc-bus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index 8bf76d7..2075597 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; -- 1.7.9.5