Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940854AbcKQLoc (ORCPT ); Thu, 17 Nov 2016 06:44:32 -0500 Received: from mail-cys01nam02on0057.outbound.protection.outlook.com ([104.47.37.57]:54624 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932830AbcKQLoY (ORCPT ); Thu, 17 Nov 2016 06:44:24 -0500 Authentication-Results: spf=none (sender IP is 192.88.168.50) smtp.mailfrom=lvd5587.freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:1013;Count:11 From: Sriram Dash To: , CC: , , , , , , Arnd Bergmann , Sriram Dash Subject: [PATCH v5 6/6] usb: dwc3: Do not set dma coherent mask Date: Thu, 17 Nov 2016 17:13:48 +0530 Message-ID: <1479383028-27701-7-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 In-Reply-To: <1479383028-27701-1-git-send-email-sriram.dash@nxp.com> References: <1479383028-27701-1-git-send-email-sriram.dash@nxp.com> X-IncomingHeaderCount: 11 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131238566535948551;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6039001)(6009001)(7916002)(2980300002)(428002)(336004)(189002)(199003)(8666005)(356003)(68736007)(960300001)(47776003)(48376002)(2906002)(101416001)(90966002)(5660300001)(305945005)(92566002)(4720700003)(7846002)(76176999)(50986999)(189998001)(46386002)(105586002)(45336002)(7416002)(106466001)(2950100002)(50466002)(626004)(42186005)(86372001)(4326007)(5001770100001)(97736004)(5003940100001)(36756003)(8676002)(81156014)(50226002)(6666003)(8936002)(81166006)(33646002)(42882006)(52956003)(103686003)(87936001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2469;H:tx30smr01.am.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD045;1:Qf6v9givHEIJCmJqf1lAVmIwwckFbncnWFC4kbLSaixq2DOoaPIfqrBY5REbk7ockVdBcnYNCGCmkTi2VEpTjy/+UOiJwNn7YlUV0/n9EyiDjD1UpExlu4UQ0YnIUvjrSpLjwdIn4Xtpmqj5zXKAe4anAuSlrvrpD4IPR/JxrQVOdwfcg7pzX8rdVzIK7ybVranYmdJVgfJ9g+/+ZWZdMidtgRKLBoqGuArnCo/IPii1ubsaX3PIKTqBBNs7Oey3xFb0FIGWfKKfrLKzxxwEFYyOtozrnRC4JOipKa2WX9W8XJnPEu6OmHN0WQiozDITTzKy5LfPnrDkkw2gn9/2KhiuoEh3asxZVifcO6sXyzYKESX8WB1HB1VLu6RmBS6QqX2zB8HrbgepIAOW/5M3BTRDsmPF+0EOeKKEaAp4YNbkpT3frbq4gK/NDBqjpn5ETiGfyN7QUjR3Uxo9ixhlmoqlsrqIFsSgpgg+HMh3wUW1XxziXWZHzJM1dHPqhPATtkNLrPz6Q305G0XgNrC2cUBluTiWc6Zpg7XSmrkqxEfsbSj+aEET7XcX2i9AGd5oNxXgg3O/T2fulFIiAxPo86gBs2X1SgXmR86/bsr84Rmf0R6XeWVfYDh5ToNdlkCWeNWRk6QymMnfCh0uIcu2eA== MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2469;2:C+ZbS5mzhUhC0YxK5+K/Sq112xqMhDQiqTck3qRUUthKRsR5qSVbbxhV980KbNLsneCaUUwd5vw62lKtcsQOFBxsrgaqdl4753/TychM1AwVq4kXBgj/8bF9BUo+zZEmOtX38QnfYazePktXNOeUsEJQznNCsRNmgI/EUNKY42o=;3:CrRQYS2pjJE2JZ0ebL4dggFiu4hFlMy6uMgsN0LkD3mKRwHgytbFWnh2m5KuOiFJlqfYZ6d7KOM19t2/nRX9jUcZfoEEs2Pa6TFpfyAQQbr/kyHrFl4OSndvfqBk66yoKmg9uq+wRMxmOem482UoOoGdIyoJLg/fiXzenaBTgT9n8TYOk5ZJaq6WyvQbf1PvKLGKbg3zs8f/QSPwlIgwyGWdcLeqvwVnr+hTIyd5MrnIIicDHFF82PqaSzIW5nOmquBfcWL6cYuCEem0Oo5ChQ== X-MS-Office365-Filtering-Correlation-Id: 110dba84-cea0-4183-87a8-08d40edf0da9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2469; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2469;25:/nCFZ60SRSXpohDUPCoY+k3cPatbmlVpq8+NFvv5gz+641jHFuzBeIOlma4/j9JFEw8fwh71Efsx8IYxilE76RoBM20vo+5n9YfEWQYDiFLPlV/2Dy/0VkTs0G/6eQe6JAnzsOqFEAsfzd8kRZSEsmXvllWEItHEIkuwWwVt/T8We+N2CK4ai7lVIa53NzkTHxWz78Dpr3fX/tgqvyZ72un9WWyiWHVHIDLIyzwNk9K4yqAfIVvhYwI8rXo76tohZMB4A37LuU+ZeL+RDAKmBRGosSEzgwsLe1O8RiwHq7D/khF9iEZxXB8wy6d0aDkbGKmeq+FbrLdZvfuG3PEO00eQGA4t89GzC23CEyS8LReCNEMT+tN/kCx9/QaSQIehOfYOtoF/HQkBAE7s/apCPAWRwuMfjYnckzhqM6hKgoMaKgw2HORu5PaNMtSkZjsjApZhhOQ/lnMTKsc0fLyrk2BVEIhF/ke+T58oATF6q8gxb5HXNCZlBR+KlME7uWDu0KvMHZprj+IYAJylQJjG/6YPHhTCFkvOaXw/B6qF+3PeWyqggGbWG4j6zeVuykOGC72y8OubPN4y7vdT95Vp6ESPwzXw3NstuL4r/DSxphz44Uwc80lJkITD/9ZS9o9mvznyVywkGl4GPjLUk2ETNUCta2x6yLsqZvLrPpv67H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IBQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095035)(601004)(2401047)(13017025)(13018025)(13023025)(13015025)(8121501046)(13024025)(5005006)(3002001)(10201501046)(6055026)(6096035);SRVR:CY4PR03MB2469;BCL:0;PCL:0;RULEID:(400006);SRVR:CY4PR03MB2469; X-Forefront-PRVS: 01294F875B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2469;23:2Q6kt04Icqp5kMdTU2yDLWHxuqa1iE2BexBUuBakH?= =?us-ascii?Q?t2wFe2exD698AfOK1FxjvL8YExvhGugcjZsg5UyMoB/wsjyy5hlmBK3EKeaJ?= =?us-ascii?Q?TqrY/oGDBg4KzP43k1zjhpLV7tz3JouwK5FHYGkobklSXLE3qC0Bqq3XWChq?= =?us-ascii?Q?WH1P4jmxCFpue9l2hEpvJZhxi54F46t9Zs01UzCW97ASC8rE8OlCqhRmaON8?= =?us-ascii?Q?TERZBSv8E5+eJAYhQ/oJ1/LxyD5GgW5pMrtuqdkzBMDZB2rCpwQgO0ESqu3E?= =?us-ascii?Q?YSbiZxF7MXJ6V7AzxWHbTPMK/HeQPjXGV6zuVIRQGMzABQh53DTKO1cQTxPX?= =?us-ascii?Q?FwnQVsNi07BY8mC+/EKIQDvV89byW9PEZz8jYW3fhQzRXfdOSUt6S8z0Qjt6?= =?us-ascii?Q?tAsRIRVQPh8qMwdYLlucOyKiiqN98LxRwLx7sAllE3ho4wNmk/U64JaJq0eW?= =?us-ascii?Q?VdTsI1iARPnpxzZWMzangOfBQ7CsrYESRtlOUGZ0qkUv5LtzbsP1AhoZCbUT?= =?us-ascii?Q?HIDADpZqqvXkne+FPQaKXgoRlKH7uNFBIn09QrbHeKM848Q5yimug2Vfo3q9?= =?us-ascii?Q?APFG3S+xk8cdfG5hyAXCTCYySSYNdaznav7hzCuzjkTFyElE7OPx0WIfSX4L?= =?us-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xM0lMdGNWayFDW6j6j9F4QdCzW9FAVgucfDtNCCwcJbSNZg==;5:LVBA0ZETic6rEltBAwJXFpA307SeRggAri0cLbNCoxi7ZcFShjfh8kGmj2/jh+2c3keeLdTixyqj4WZCiguNkOWyXCLncUAF5rzs0DIdr2RKhKTcRnHSyxq4+dZZH8FOFUDBR/JSdnpXlZFlz/UqUBfkJkW+BfbMObn5TsaPGhvXnT8vtMMTPCNwXApFr/i7;24:kA1cvWTqVNw0z4msizNm6jeCizMkEGOLxX3DasSazqJTjafGhTMJe/8dhYKZ7PBKg7t3tdS8JYiMA4KcPJ/HTVMAoc0tTyyPMZbBKxvcgdM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2469;7:VPKLLiPVIcCk6+iI0t11pw0j0uLHUZRHUsn7cSU3t82sOhKhsqFDAEVEFunxZZ6JF6VRTt9pD2NPoM0tR15i59wnE8+fWOc6k8XdGpRgIt30juewZytCuHCQ6kbVU5sykn/mS7oEnuxdU2LqjStERFjPO8VmZ/M719H5mQ713mF5fCiVYHqiadKQgUhOdk/Q41kGxIp/+hEiiji8rEnalIQz+mIP9hGHrxsVTdg3i6LBdPQMTRjKhhMkXN1X6H2wCoZSzYJ768yP68jfBAVf9YdGY4WGD+maEF9G3De0rl+Pqj4lEYmkbDjTQgPZghY2wNmgt8qDnHMFow387k7Wrrupl20+AV9v1JgbnaFT2vE= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2016 11:44:13.3608 (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: CY4PR03MB2469 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1805 Lines: 66 From: Arnd Bergmann The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash --- Changes in v5: - No update Changes in v4: - No update Changes in v3: - No update Changes in v2: - club the cleanup for dma coherent mask for device drivers/usb/dwc3/dwc3-exynos.c | 10 ---------- drivers/usb/dwc3/dwc3-st.c | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 2f1fb7e..e27899b 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -117,15 +116,6 @@ static int dwc3_exynos_probe(struct platform_device *pdev) if (!exynos) return -ENOMEM; - /* - * Right now device-tree probed devices don't get dma_mask set. - * Since shared usb code relies on it, set it here for now. - * Once we move to full device tree support this will vanish off. - */ - ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); - if (ret) - return ret; - platform_set_drvdata(pdev, exynos); exynos->dev = dev; diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 89a2f71..4d7439c 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c @@ -218,7 +218,6 @@ static int st_dwc3_probe(struct platform_device *pdev) if (IS_ERR(regmap)) return PTR_ERR(regmap); - dma_set_coherent_mask(dev, dev->coherent_dma_mask); dwc3_data->dev = dev; dwc3_data->regmap = regmap; -- 2.1.0