Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbcKJIzv (ORCPT ); Thu, 10 Nov 2016 03:55:51 -0500 Received: from mail-cys01nam02on0060.outbound.protection.outlook.com ([104.47.37.60]:55936 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751664AbcKJIzs (ORCPT ); Thu, 10 Nov 2016 03:55:48 -0500 X-Greylist: delayed 1994 seconds by postgrey-1.27 at vger.kernel.org; Thu, 10 Nov 2016 03:55:48 EST 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 v3 6/6] usb: dwc3: Do not set dma coherent mask Date: Thu, 10 Nov 2016 13:50:01 +0530 Message-ID: <1478766001-26463-7-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 In-Reply-To: <1478766001-26463-1-git-send-email-sriram.dash@nxp.com> References: <1478766001-26463-1-git-send-email-sriram.dash@nxp.com> X-IncomingHeaderCount: 11 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131232397520636805;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(6039001)(7916002)(2980300002)(428002)(189002)(199003)(356003)(36756003)(8666005)(586003)(33646002)(47776003)(42186005)(92566002)(46386002)(81166006)(45336002)(8676002)(87936001)(81156014)(50986999)(52956003)(2906002)(189998001)(76176999)(4326007)(7416002)(626004)(960300001)(5001770100001)(5003940100001)(86372001)(97736004)(101416001)(7846002)(8936002)(6666003)(42882006)(2950100002)(90966002)(4720700003)(48376002)(50466002)(50226002)(106466001)(105586002)(5660300001)(103686003)(305945005)(68736007)(7059030)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2742;H:tx30smr01.am.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD023;1:pjxhkofUlkXsrjStMashWMNu3tM/XzKhE3BImHhfDc9RZMVNkqgZydYrgUfpLh9k2IchPm1o/Cp+q+KetwUrRkVcyT96K6MSR4shS16j+N38RtNyNjwqOpOLo+96MEuR3TLaqvd+IuFARTXaTQNMMQcCj1BTAl7Y2wiW+cn5szX4S9SSdXX/P6fHW2+erbgE6Ixg1vaIg1JRSyTdW5cErNVL+NuYVsvtfvtJHa9rvFPMn8aFCavjdwrfPpRlWl13ZyoFWzRFrAGOP61CjhH9Qq+LLJMGIKF9MbcJRERFTt1WzTTbGm+yqo/ZToWOPFN1b2NGW8FR31PSqmqJECXJM+CAPWbrDbwKohv2zcEauXCfXzczykPSgZdxvFpVAtzGieAZnITAGcJsThCA1CfoCIU1OSN1IXXTpP8SqjwwOm4IEk+iIyB4VMVG9zKa3aN9Cx/YGieHpc/pRkU+J6KmbboTkIh6KxaHqb85wxKS4UQeXlZG6amL+MIwdUWadioRba5hKVFGC0XkCrJmmn2p/zlyTs/jzrW0Vlubshs9/OLZabryZPr9lugsu6c7Ig6iI82nTZhdKQRVeC1ZZOvsNpsJy0FRVmZKwSKPEOX4m6o8MdXsUV2Au0oui64Q015eH4sT9pO/h1GFsEU3MJNArA== MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2742;2:lJb5h/NXOclRi11y6X7mu1TJrHqHboabV68rmeralaSdM0lhMtRbJ6ifyQjIlq/GLHJmYL0GHT05TUT7jH55LuhgEiBmpHgYREB5Mq5CyLosOLaU8St8kcII6Eo1ZwnrWzfooKJMOJ79fSkLTtNPLe+LDJgBsXNuqt+elQjRzrs=;3:wIrB5BTs7fHwEypLa9/qaQJ9a7MvlDHMXmm4dxyXsPWKGMtYl0ord/9rkv5HGDcdT2T8q9avkamDG2Ts2Oj9oErhG0wMDqyT/zDwXPHYF2a52wucR0qDPQWA240Ili8Ld8CJU1pFPRTaCAS1ZaBBAx1MvFWGqi+ukpmxiWB/PFl7eN2SAMvWrKD0iv/ptvkFvzI215r+eExcflXhixfSUc90kiQzkFVgZEuEuiZNxDhJhanqqhJ8Z3dQHNXr3rPiur8gs1da6uD2Lm5GttDsYA==;25:TF8ShSqHqytI881po2ZRHVGYwt0DYMPRXxe41MfWDub9EQ/9qoUkN6BjIKA8acTYpkcTg5yRbz6KTdYUpaY/UHwn+OD7fiwHIC21oOMD8S0CmO8W/+JhBi5BbNR4wq/2PFOEPhkciWOYV3FGONMZeO5bOO06cxKuRQP3aRdEKokgDsAj00ja3yg9NqS+RhpNKMFy6/3fYxcldEvkB8GVwle6SYPJSeC58AjyaMOj1S+AUjkhqRJNxEumz7ALwnIfUB/qV6y2Fm34ll9yJeIJQdgUrdsrw7MoYNyzvbK9mupg+NpwXCa2gqBglEBAuwfmGNwJkE1LMcIyQ8Kvz70MDJgCLGmxI+KoAbb8enLIHXd0WKw9HsD0+cQuVh1SqRZnGGZ8yW4bBDtV7cjdeTsRbDA04oj4jkRUrn5kJvbugovhRIfMBAfKiSQEUWDiOUCIreqk2CpDHR4AnwLGt7XDyQ== X-MS-Office365-Filtering-Correlation-Id: eb812396-c55c-4059-8b85-08d40942b7b4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2742; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2742;31:Ga4XO1bzZ+kUNUR3HOdVKigdA7jpLIFROxZ+c+Zxe9yx6SNXAgwjl1RcYmQa4ho1jzZLTfx2jNx6D5LW+Yn0qhTn4i5FndNKP80rDuBw6whbC9iUvi/5ARIk3lxYNYGXBU+KnW0QBEYjhBTu6GKNiVU3d6ObdKBqZpoZzAByT0GKemILo1j/u6YO6IJwnqxw6NNZ6fpHd3MywViQy9BkHpTU/GDD09V38MhGfGdJQ+zoHj2953o5DKi2Ko6DgrsEKG0pOUzX22wVvmaSvlipyw==;4:UXB+DYGNnqPrgPgFs4+MzGvqXnViOOw1wBW7RQhgDHwvWSSJpM07Ol2GHnl89XTEwNPLVghxLuSZsezVi1/oN89ytp8Qb2WJoj7VJj28yIXDaKdjE2icDrp2pkrIwcXZOXUITOlBnZehBinmC67eqXn9l/8U8yCKSshGIlYfPAa6vhRaHAkoNJY1vf4XeJJKupue4d8/mRfv5Tibfgzc5NrYn7Bl9K9RI5xrXG0e+VIYgyHbipZu2mYSwZHDfAQAfhsDcFSfS3B7rGZDcHQjLGwmFLkFfPSlXaXKZa79ZNkvi1+WBUROlckb0fGQiCPTGN60oQRyp1mYmO3hKlyP2zdn7U87m7x4/2J0CNMhnan1g6EIIPWSFYaDxg3ImOdjEgHz/eZHvSVxL9o8cVdm1T8P0e2Uge6psoAlnetUoiV156fbRsDlgPUoBYSosjupHg8jYPlcRblPHsoBOAbGzFnDmWMqM+tFypIrVbBNUJDIkjzOmgOjL8VRMF9azUgNd3AC6iOnDQuexHrlo/tgVQEsMzB/mCcGi8RY8yH8GSCZ7jueTQdRlIqOq7QhraTe 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)(5005006)(13015025)(13024025)(8121501046)(13023025)(13017025)(13018025)(3002001)(10201501046)(6055026);SRVR:CY4PR03MB2742;BCL:0;PCL:0;RULEID:(400006);SRVR:CY4PR03MB2742; X-Forefront-PRVS: 01221E3973 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2742;23:AgpKNlbhL9jSZIA12p3tPIhSdfBZYQjLDMMd4iis4?= =?us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NkBIOnCWrVSwfiG;24:6+pyFPlgfE8VUoLRQLJqvPsu+iA1U0d0x0oCxbXOaVRg2SPP0aQQA0V6zEMSnykeBwWs4R7ItbfyjqEgYhQ0Ql2ORJBH5mCkGWtPT+P5CkQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2742;7:7BiXiPmh9EMjJzl04LAxYDn63ibf0P9CBcuCtOZThorTuTruxIkg1Y/GXPNqfAPncRMHpS2FFebrlY/YH0LrgLbcpOvHcHR9hln5ulPbWwYVqXgflHqF2e9B5iYyBJxoAcSKRE7mLrFSVAbF5y1ovKZ6Lf7FamwbcWLqhI1kozeW+VUDOKEbq1wqOJTZzjH37TqF+KMOn/lTn0BKq6JC//923XAeqDKauvhc2rSmKAVKRUxfkQVXt3vRu9NkLj6O6OmWSAEpB7azQSSIHnpypCyKicEnREM0su4EDYFga5PNtCHJAuP9ub5srRFY4oizmp3xD8C9sMqoBz2NtEkE//9+xOykg7nkSqFGh4aXS5Q= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2016 08:22:31.8920 (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: CY4PR03MB2742 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1745 Lines: 60 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 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