Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941029AbcLMUrj (ORCPT ); Tue, 13 Dec 2016 15:47:39 -0500 Received: from mail-db5eur01on0099.outbound.protection.outlook.com ([104.47.2.99]:32343 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S938913AbcLMUrc (ORCPT ); Tue, 13 Dec 2016 15:47:32 -0500 X-Greylist: delayed 7366 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Dec 2016 15:45:55 EST Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com; Subject: Re: [v5,6/6] usb: dwc3: Do not set dma coherent mask To: Sriram Dash , , References: <1479383028-27701-7-git-send-email-sriram.dash@nxp.com> CC: , , , , , , Arnd Bergmann From: Alexander Sverdlin Message-ID: <0ff80ab2-922f-da05-03fd-22f43f7604d7@nokia.com> Date: Tue, 13 Dec 2016 17:09:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <1479383028-27701-7-git-send-email-sriram.dash@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [131.228.32.185] X-ClientProxiedBy: DB6PR1001CA0013.EURPRD10.PROD.OUTLOOK.COM (10.171.79.23) To HE1PR07MB1321.eurprd07.prod.outlook.com (10.164.52.11) X-MS-Office365-Filtering-Correlation-Id: 7c72fa85-64bd-406d-207c-08d423727c96 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:HE1PR07MB1321; X-Microsoft-Exchange-Diagnostics: 1;HE1PR07MB1321;3:K5s7kMe6lSm6FOcYA+6I5bGbLDEKHQ2E1KLYM5y0SNRyhwEAlDz+rQx1peOcnnd8C7e/N2pw+C+UzGkf2Sz29BYLsfOrJ/jWqUNkg3Itcdn/Z0hzKoJRpD3V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LVT0GqGPggPz6nUtuzRPlg2hsZbUZiJsHrgMBdDi2Czruqa/AP5sZZyGWsy07By5WFGAoz2e4wIJYpoOx2YC+TufJVqo0sC0fKdYus4jvcH1sh8ednoeVqQROFXdmhKplLmw9rc99i4vkqSgLZBlzZHPmc3JDTjnrGTUmaw1yNhqLWBDip414KqvIQvKaAAgBlImNCFZMan52Pm9qMBTKloLiQBhUmaiB/r6WIHHXsKA7/Sr2xA+B08WyJxdLZcG1KwuRKker1fNdTgRw4HBaxmWQ09i9N6GCo14Bh6wnEyoT8utIYU1DjvQATELpaf+3JB7RpZSf+dFNYXMgonKp4OFbfjeLnsQpy0xTTWxFIIxC6icN3l4Mg8XBpqh96V4hBxHT73kAxw4qAwFSvR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558021)(6072148);SRVR:HE1PR07MB1321;BCL:0;PCL:0;RULEID:;SRVR:HE1PR07MB1321; X-Microsoft-Exchange-Diagnostics: 1;HE1PR07MB1321;4:k9mzFZdVXKdN9zJR4lq3qil7cwuJWNkvZhqhxFwSRdATipbXgkC4vIrMhN2ZITPra/XzIC3JvXPRqg5yZ1dPh+KTDj0oV2ZYTYF0CTLSuXU2a2bDXSrCKKJTOoSoQlm7ZQgd0KI2i17yfhmPDZiwl2GSpxU5lwaiSc9uqpcB1mvfi/w/uU686V6Q9e9OqRdoBRcWdi3tYABmJ1sOm+lm7aTzi77oWAvV9NpSXlgxhTv9w7AcKQl3s7YoxxjC1lxsCAMvPVev65Z28ZXjja5IZ+UUqXUr18nMlFjQnNRtFqyBfaiRj3cTZ61HsGLV5d8X1qi7IZvYzbZo4i//YaThFXElNQ3XTO25r8btjN/n7+OvAti+GOX0ROIn/lJcXscM2OnVsXSAMXIQDEXYKApAhnvDtTiVxP3Ag5lq0DHiz16pXztwq8bdmTeF9NdZpiRroWRXCZFHwX+CKrY3jP6tkN/q+B5LewVRH8Zkx+Vm4siwreBgr9UwRX6BgUFLBhxhkPxpbwjKl5kMVkiBOT8+wCo9kWMD0jyJuWIi9AS5pX27K2Q6mmNfO4fnDXq3QBj0M35vPxpjA/kWx9QLCjAejCKHWR9RvajSA5+YexE11Xdd0TlKqHefXzYUxp9WNriAzrhV3EkkcVRqms3RJIUpFwqM3x1q0Cspj5pz4Z/+/TBU4FkQNu2qKVavk4y+7hgPQGUBobuhZRDWr19f4BAemw== X-Forefront-PRVS: 01559F388D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(7916002)(39850400002)(39860400002)(39840400002)(39410400002)(39450400003)(24454002)(189002)(199003)(5001770100001)(65826007)(97736004)(5660300001)(305945005)(7416002)(8666005)(7736002)(189998001)(4001350100001)(4326007)(2906002)(230700001)(68736007)(50986999)(83506001)(76176999)(54356999)(65956001)(47776003)(2950100002)(6666003)(33646002)(65806001)(66066001)(105586002)(42186005)(50466002)(23676002)(106356001)(64126003)(101416001)(31696002)(86362001)(2201001)(229853002)(92566002)(81166006)(8676002)(81156014)(6486002)(31686004)(36756003)(77096006)(90366009)(6116002)(3846002)(38730400001)(39060400001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR07MB1321;H:[10.151.15.185];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA3TUIxMzIxOzIzOmk0RThFL1FXay9NMkxUOW9iZHBtY1Z2SVR0?= =?utf-8?B?Ymx5b1NOSUJuZVhxRFBLKzVXSzhHMm9Fa3BLeTFDbUdlSllMNHhlMUR0QzFt?= =?utf-8?B?bDhKeTNnSjI2clR4Zk4raEtkd01KN0grcU1kWDY0bGFyOUpSQm9Ya0V5Zitl?= =?utf-8?B?Z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84TFuPQZRWotO/XhFMh4ze0QnlM4+TqI/MbtFql1los8dEA9ae9UGyWJnNzl9TryoI2UlPksyzc+htY36ECqZUEcP2wMzKXZ33jPGQ7rcDz9pAcmoo1wsUyYtfR65zaBBdgfh+dV1KLK2vOVjzoJXnQyt0W968ChcmN2Xg+VvO7iujdFIrSKbJx2vRjA8MG4Ljl6hKv9X93fAqHvrFvjoyTNTOqdSTLwVZRXLk1/mTeHNzec5vaE/55svgpYFKEFAxVa6HdCc/epMdrdv7uxpp8gpRlZQW8IG4oavhUaGLKR3qH84vIex3bTR4FHw6VJiR82pcavlzEK3DWNUN8/F+q4j/ax0XDVKx+Bg9sm9fBvCg== X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2016 16:09:57.8150 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1321 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2180 Lines: 78 Hi! On 17/11/16 12:43, Sriram Dash wrote: > 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 Successfully tested on arm64/axxia with DWC3 USB host, XHCIs properly inherit DMA configuration. Therefore: Tested-by: Alexander Sverdlin > --- > 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; > > -- Best regards, Alexander Sverdlin.