Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965873AbcJYLLj (ORCPT ); Tue, 25 Oct 2016 07:11:39 -0400 Received: from mail-bn3nam01on0043.outbound.protection.outlook.com ([104.47.33.43]:27098 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965723AbcJYLLg (ORCPT ); Tue, 25 Oct 2016 07:11:36 -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: , , , , , , Sriram Dash , Arnd Bergmann Subject: [PATCH 2/3] usb: dwc3: host: Do not use dma_set_coherent_mask Date: Tue, 25 Oct 2016 16:26:27 +0530 Message-ID: <1477392988-7253-3-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 In-Reply-To: <1477392988-7253-1-git-send-email-sriram.dash@nxp.com> References: <1477392988-7253-1-git-send-email-sriram.dash@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131218666242612207;(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)(199003)(189002)(229853001)(42186005)(46386002)(45336002)(97736004)(5001770100001)(105586002)(106466001)(81156014)(81166006)(103686003)(86372001)(575784001)(189998001)(8676002)(33646002)(50466002)(7846002)(8936002)(48376002)(101416001)(76176999)(69596002)(305945005)(50226002)(50986999)(19580405001)(19580395003)(960300001)(8666005)(36756003)(356003)(90966002)(4326007)(92566002)(4720700003)(6666003)(87936001)(5003940100001)(5660300001)(47776003)(2950100002)(42882006)(7416002)(11100500001)(2906002)(626004)(68736007)(52956003)(586003)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB1617;H:az84smr01.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD021;1:xpB9bYlupfN63lya0u/0cst2MEDxZrlg8C5URrHzJj6fUxvcfKnr44/I4H5w9jmliJGQsSdkkaSd1JZ0oPdi4Tq4kFvutNFrPV84S099pkEt5/UspAneU5JOXGvaoMv9XNPx83hs5CuzIrLhjQrYI8gSey2wgdP7yh0dZb8DXLPRy4IaLHBBP8M6OlmKEQeWk25cOy1yu2VI6k232/fJebDeyx11y7jAi+fkW+xMQIX/63l+cTagGDZUYJ+/t93Q3nHlCxVlWRn2o+sMGngy7w5Qj22sHSh8PGfVIgnCUtSFQtCQ7A6MQWC4cazDrfcS2LIWJm/I0Kyx/nMTaF+M8+yX/uV9z48jSA/r0cpqDPhBMlyEHdaJ3JIKigOvhlCxmDWnDINdHk+g11qaeoscN7ApuZAHMLHa2BFXzgfZB8mELG9FLnqbZzNkxS19s9x22XHeDWa89/Z0bm6m2rUGMf+1BD1jc2P7avZwsTB4qM53mQWbXfx+m0pjPpvQ6n4vyYfGDvhjDUkYVONcuo6W6zuKHH+j0UiSTwYTncHHUUOmH1+jS+YppqKP2KBeLPDaKw+C1951u+bNLw2hcUuCeVsMdaenNqeT0jAz511btAxVVUEx9QfJeA77KpN7zMuO7ZklKxjp54LHH7WL+Zla7Q== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e33fea0e-cc7b-4f75-9bef-08d3fcc5a7c1 X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1617;2:6i6b1vcM08Qge4/ATAOtda2m04gyzl1+ZKEAKRsw/WVA/Bzxb8DuQoN/5hn9BA2xUQ8MY5UidZPX4d/Z8e0VRLup1uvCdsiqXJVc0p9e2+nV/W3rZ4xXzuJ4xAy1wszwnEPQVbqBMUInsbvfj4kk6uYF8iSzII4xgwQDU5Qw7BMSRvtmArtuyvC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EID:(6040176)(601004)(2401047)(13017025)(13018025)(13024025)(13015025)(13023025)(8121501046)(5005006)(3002001)(10201501046)(6055026);SRVR:BLUPR0301MB1617;BCL:0;PCL:0;RULEID:(400006);SRVR:BLUPR0301MB1617; X-Forefront-PRVS: 01068D0A20 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB1617;23:INZaxBtmX7jDAy4XpYFYic8Lg8fv/doqGu7gOie?= =?us-ascii?Q?J74MvRkfL2plKlwMJShHvyMzXLCHK0PdzTpq+qapGlstxWNJQ83PowFV9fj6?= =?us-ascii?Q?BfPFI6bQbOa7UDiJWKrEbbHOBp9w6CYwmuqCoaMC4l6Zez2AO5EaVFDIFkvd?= =?us-ascii?Q?D6JhRwpPFNC+w238qP0qqU6f52t/y7J31XVOI3/lFewv2CQpOlRt53D9d8i0?= =?us-ascii?Q?u0LJ/bkJ7AnoCeAySmRM/CIcLik68IovsKz+1ZPdSmYUBt6EUEYl+L+B5lZt?= =?us-ascii?Q?LkUS2obBnPHS6aP36QLOUOBC+0mRfTKP8RT6QNa+l1EIxAWIMlDRAERxOady?= =?us-ascii?Q?3mL6ovCR5TcDad3yeGrxSpAvJ7/DHaau5QARpa0VpuVE3w+7t9/1oh4iI6IT?= =?us-ascii?Q?Ykn8t98h7ifWMCny94Q1cp45CnsLrh4KmFX6kHV/6HlZpycG+pUjwtdbMiGI?= =?us-ascii?Q?biAJ/9t39HKfCAnPENmyn83mVdkmJuHmNWWSdalPzkdzAR+0Mbe847xz3XB7?= =?us-ascii?Q?ygPQ6qq7rfen+1XItpN9O4o+v/pTMZj3DLNAHnrX2GpvsRc3CYqOsFtuDu9C?= =?us-ascii?Q?NnBzLK+3C5slpxq6C49GruunbdEokK5FWCwXq9lD9HhEunEcnLodHPbqL32Y?= =?us-ascii?Q?lG8Yz+NQMR9RTcXrWjlIP0uI+mOhCWebkoaVHuIOqadzwHkX4fe+s14od7hA?= =?us-ascii?Q?yUQpNarKOJz5TSdh+CjzS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3LSiW4TWouGJa7ijKhj2tZ30ZiHxRYF8YOs69sTzzYdqm3znHg2QapfVLPARyL8UxDn3s+Uee8KK7qX+ysIrbdjCd8xmsmrFhTmHU2;5:ImHRwCl9GORUL0HlgWVVDSABLk76i4Dks/3KIGNO4prt/dMoeCUv71nxQD7657acZI48rX9rODdf6ffbNUwlxLHf603H3T9Mv+adLU/gflzO4INfCC8/eCQVyTtUFqMht0fK6bY2reF+rSLwBTZ2r7Elig5YJg+vzwum6AqrqjpFZRGsCZkdkzr8nCzQeirM;24:tqZX3jQ6KKBk2PtuJdnN/W8KsLeTc0iVSjPlHePpzioCHjI9H1MadU5JSoaTzlaeummm5uYjpb4UsQ179hutw3HDW1r2gjB6JJxG3ocSfWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1617;7:v/6Ogelz0NxHfvawWPabFc3RcacJTRE0Z2BSyKIcDPxXNNU6whgti5aFWHI0sNknqkSpaYCB7Qj6qHs7+rMMu38jLR0SZF/YWIJbkiHlthPNWaKTGOfAbPiKKVcfquA4eww4A45W1V8ECVRKFV5rwyQnSkxzD2yoev2ZphMwJGqWwGKCTJ+CkIVEs8LXhdsBJNHs8MkAyX8H0P3mWAhasbVheqsl5N65Y2qvxWU3hYxEKOeQEf2HQTgAZaBncoZI2rYBU8d5xiEIbvMQQwtkVHFrSpkVtOgxux5uqD9R7fF64R88iemAQ0cDoBYykws0vw75S5TH5ufFaeiXKGqQPvOf4hW72imB41miPLB9jZM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 10:57:04.0272 (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: BLUPR0301MB1617 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2207 Lines: 71 Do not require dma_set_coherent_mask for hcd Signed-off-by: Arnd Bergmann --- drivers/usb/chipidea/core.c | 3 --- drivers/usb/dwc3/core.c | 6 ------ drivers/usb/dwc3/dwc3-st.c | 1 - drivers/usb/dwc3/host.c | 4 ---- 4 files changed, 14 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 69426e6..8917a03 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -833,9 +833,6 @@ struct platform_device *ci_hdrc_add_device(struct device *dev, } pdev->dev.parent = dev; - pdev->dev.dma_mask = dev->dma_mask; - pdev->dev.dma_parms = dev->dma_parms; - dma_set_coherent_mask(&pdev->dev, dev->coherent_dma_mask); ret = platform_device_add_resources(pdev, res, nres); if (ret) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index e0f64ef..0af0dc0 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1059,12 +1059,6 @@ static int dwc3_probe(struct platform_device *pdev) spin_lock_init(&dwc->lock); - if (!dev->dma_mask) { - dev->dma_mask = dev->parent->dma_mask; - dev->dma_parms = dev->parent->dma_parms; - dma_set_coherent_mask(dev, dev->parent->coherent_dma_mask); - } - pm_runtime_set_active(dev); pm_runtime_use_autosuspend(dev); pm_runtime_set_autosuspend_delay(dev, DWC3_DEFAULT_AUTOSUSPEND_DELAY); 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; diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index bb83eee..045ec27 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -72,11 +72,7 @@ int dwc3_host_init(struct dwc3 *dwc) return -ENOMEM; } - dma_set_coherent_mask(&xhci->dev, dwc->dev->coherent_dma_mask); - xhci->dev.parent = dwc->dev; - xhci->dev.dma_mask = dwc->dev->dma_mask; - xhci->dev.dma_parms = dwc->dev->dma_parms; dwc->xhci = xhci; -- 2.1.0