Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755139AbcKBFy2 (ORCPT ); Wed, 2 Nov 2016 01:54:28 -0400 Received: from mail-co1nam03on0052.outbound.protection.outlook.com ([104.47.40.52]:34400 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751549AbcKBFy0 (ORCPT ); Wed, 2 Nov 2016 01:54:26 -0400 Authentication-Results: spf=none (sender IP is 192.88.158.2) 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; From: Sriram Dash To: , CC: , , , , , , Arnd Bergmann , Sriram Dash Subject: [PATCH v2 6/6] usb: dwc3: Do not set dma coherent mask Date: Wed, 2 Nov 2016 11:08:13 +0530 Message-ID: <1478065093-6923-7-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 In-Reply-To: <1478065093-6923-1-git-send-email-sriram.dash@nxp.com> References: <1478065093-6923-1-git-send-email-sriram.dash@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131225387278431082;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6039001)(6009001)(7916002)(2980300002)(428002)(189002)(199003)(42882006)(305945005)(90966002)(47776003)(19580405001)(19580395003)(42186005)(5003940100001)(7416002)(960300001)(105586002)(101416001)(8676002)(103686003)(2950100002)(97736004)(6666003)(4720700003)(50226002)(81156014)(81166006)(50986999)(50466002)(8936002)(76176999)(5001770100001)(69596002)(46386002)(48376002)(33646002)(189998001)(5660300001)(2906002)(87936001)(356003)(8666005)(4326007)(7846002)(106466001)(586003)(229853001)(45336002)(86372001)(36756003)(92566002)(626004)(68736007)(52956003)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB1625;H:az84smr01.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD038;1:LJcTeiRPtrzunnP2Vq6+bG2JOm7pp+6XE6nprrPtOkK5LdcimBI452W97jlq61gyqbeDBc3jWE9JixrsU1D9GLMTB2QfFllNMAshuYlHQWAo575bzxqPeFtxJddJb5mDfIK5DH6G2yt8enEXDpTnQJs/H3WcG/yhnK8lpilHML8EJ0r+wAln8QiSs6q7j+cQtb8R8kzFE8aGKhE7ixHFsiumYVpPk3L9R9eJrKD3SwMWZIi7XYnHUWzms4PdvB8Tj9uFYvfAriNjwNfAKxyIuxlEDCzVgVfab03ZFAH8YYqoxshoIlF2AaubKRWzlMOU/pPE+q+uHvBDlpgYiKjs5q5hZqIRyDf7Y8H88NElnML/7GDx1vKkAbRmVtyvXzvpY5aA+7onVXF9icR15SqgpYKwRxsOn8d1DaT/idsAOEU59fRVfe7oXEUVj/T44hACr+FcI3js4e48sQth+IBp4MclmAoJuAko8N5Bvc5g3JuFwraPpkQnq0wcGyEEzHXLH70JjKE4MiRM+z5d8jlvhFARzOJww7D9xjCAbcXyZiNRZIsk3gbVE7Jvxra3vyUtFWn5GP3tf36vAqSQxyRUA7bOCVY+c58yiAbjj2O2RlZe0pl0jMs6RQwT/lAo+Szng8EbXNTypUWtyICSVc+6FQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 81dc708c-8e4f-4e66-736a-08d402e284b5 X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1625;2:gEEmlr1jnBpDQXAxUEZystOCp+vDUjOpjGW3DNcx6vv7DSmmFTKsM9JkUjg59Q/gi1PNyRIYDFSdMy6m45uPyZOu3iy4mzLrP4iZFajjHBf2jvYuk9Or0mMZS02FObXjJLyiG38wUqTVZaDsLVQPRZmk8j3YeeeRGEPH/QQX6AluP+/i6x7Lf8DEtedfUw06eY4IfCXxbLrQq5/CxTmL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ty2TlVAPvXQNxz6gaRceFnukgXRVjPqEUDamx6cRu/phU6ukAQ0fB/9Ur04k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13024025)(13018025)(13023025)(5005006)(13015025)(13017025)(8121501046)(3002001)(10201501046)(6055026);SRVR:CY1PR0301MB1625;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR0301MB1625; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1625;4:tB1aArrJwJecIwWCwtRUY2NdtJKTJLdjqULI8+fxal60GaG0DXnPpw/1Yz8qwgRPEF3+Fjl0S7DT8WJC4IaoFSTkbVCtrtjkvSkqX4rcUnBsnJdoG1ZW8SzkZhhArg0Ef8VNdiesa1/oWWtyQOckt+7VkVtnVYBG3L/JxeSx9PfY9C3zEdFg1JYXYXroQJtChwcpFFawTfleFvX8qdai9swVX60osQy0IanqATOLNmmGj3J2tOZ4FCB0OOH341Fig7WL1XiOG4h4UnGf2EXSmkD49WVX+eDxnxAV1NokKhmniz1VsTtNYrr3mAiMJiQ+OlYHm7beMc3ZF5hPSyPcpM87dNr/PAHzSw1XVO494jOsvZxbibKLKQbWrSoyNxkab0ikOl8IOK5XBiZU1M1fmdDjcDJTOjixKM6ICT2Mg3UYAEclNXnOD4n71DmIanfHTD366pRapGKIZMUMKqsZOljKz5q5L/bpbWv7HGuoM7H8Wft1Rlx4NqO6MXl/IusDAtkGanSt7eqZ058l0Z8+PTk9XwQ8F9qY/1UIwlO8fwbL44PUnNhBcQsLtKSargaI X-Forefront-PRVS: 0114FF88F6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB1625;23:Ji0drdftHOWEu9L6VvcnHYDtpqtqTDTq9YNhQ54?= =?us-ascii?Q?cn7OdT5bEecusTpiSvsepGCLHn+6O/zlq1kvJeDLOGJo1c3GnskxNAdWtgfJ?=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Qg08pwPU4c7mddFo5v8aK1uZ7xvrNfIjTqai+xBFBVxc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1625;7:PiVHIcYJkdLX71gRW3MSy5kFfwPya3eyId6uhvfeurP/Wdpk3uvb4nMYcqRRE8d9LMxu83ZlQ6aP0pPPbbJcqlrARpaB3m2iQh4aVkzpf7WxqCBCJJYi4U6a7IV9vsvik4fGwt0tv7WHD4jEVxxX7fdC5fMymUBpmy+dUj8m/TJMQyvC2oPB3VzdmmYRcXFMU9NQjrAPK+0CQr+tdeAt37g1l4QkmrxGvJqpevqRJWrI6wt/hMl/w0FjDW6S6DeqO0KuwaC/f6jcnOY1h9+MjKvGmKTKL16bBMjjQHiz3hDEozZbORUCwJtodZ2kgmVBPYBPMUrDJGp8HM3k6PK4/A/gqduZlwuAor+bkojWx6A= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2016 05:38:47.5935 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1625 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1715 Lines: 57 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 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