Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754243AbcKQLoV (ORCPT ); Thu, 17 Nov 2016 06:44:21 -0500 Received: from mail-bl2nam02on0045.outbound.protection.outlook.com ([104.47.38.45]:54891 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751995AbcKQLoO (ORCPT ); Thu, 17 Nov 2016 06:44:14 -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:1027;Count:11 From: Sriram Dash To: , CC: , , , , , , Arnd Bergmann , Sriram Dash Subject: [PATCH v5 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration Date: Thu, 17 Nov 2016 17:13:45 +0530 Message-ID: <1479383028-27701-4-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: 131238566522971667;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(6039001)(7916002)(2980300002)(428002)(336004)(199003)(189002)(50466002)(2950100002)(42882006)(4720700003)(6666003)(106466001)(103686003)(68736007)(86372001)(105586002)(2906002)(50986999)(76176999)(189998001)(305945005)(7846002)(33646002)(101416001)(90966002)(42186005)(47776003)(97736004)(48376002)(5001770100001)(8676002)(8666005)(356003)(4326007)(87936001)(960300001)(81156014)(81166006)(5003940100001)(92566002)(45336002)(46386002)(5660300001)(8936002)(50226002)(52956003)(7416002)(36756003)(626004)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR0301MB0738;H:tx30smr01.am.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD042;1:oO4mRqUcXZ3WNb8aNAL4QNeHM8co1ggqiRhb/CsIGFLASk8J2szU9AtUzPAmT6QOZuUlUF5BEilLkN6YK6jyX37EnEyHkM6fdcyebj4gGCMZ+DFt6vUf4WOEzV/Fi7ulDcfuQyQMoM/fy8yD4aWhXU5TFdrj9Klkf95HhIlrwHikQCIZ5wZgRql/SKRARMsGxYU9j0yfdPbWye9MIj08Z6QGAlMSDpeGpfmD5nj01eS6mg/AgLhwgw5HIHe/QHjJLRoqPJCSPFsvv6rLrRl+N1h8SuVUtgnIhkhES/ORQMw8E7zyd4w3d4vOxlgrCOj1wlHMbLwkUxzpn3Ugts5Btx/lVyzupPo7COgo1EtwJnPjOLZyhCijC6nwikai6rCPBQMbD1rhYnRzKXUJpl2yxY9cAIC7SQFOQg23g5wX017Q+ojVXyMs2+pbJlrytpH50or6BKx8c0dC/F7O0ZjBxDdpP6UVfFcu70KiNmGrSZPLDPJ8hdYbaw32T9Yv6iPSTLEiAZGwD3t5h3tOAjg0SDXgHcjs9wf2RGGxyVDE/oK4/wWD9ax3yQWDch5g8cbivH+iZjv3qQgsQRDW/sv/kOtm4/me7tHYoYV8PrFA9IZvgUGD6gD0RB/oIWx7UdvCevawksJwfz04/iwL55KmzQ== MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;2:SWQvjxZvAFcI8Zfkto916zOdsMgiHJytgDuabY27o8v7ocLj0GMtpdE3/eiC8wUodBJUUym55bTFcmxVBGdIggvydmXbbtPbKPsvJ7OOf/LbYdMQDsK3GSIzrXTU4gyuCUkHswj4XuQ/DPI7PLn/MnPE7WkqgD5eitevpJbzOho=;3:kzMAbv6WCZmcQZ+39P1rA9KEGGH/A5XiKR7FaxSUbV1xojcWhd+MsSxGBIMjDf/DNunlqowjZ9D7omEf/R8Q5BQb/wofnhRJxctc1Vm/Yc1SvSs3LFW0K56iSSNXL+LCLlWC4suBqRs4SDVDrdDN/7Q5Ns/L1k7sqPtX34UvUWGgaaS2yZWVdCogsYnYpnwVTT2qwN26iaxeFiJ47JaqIzkIvUva3BkM0HbWzPKVFUzlPnp+R1Dfm/7luf5l9Y3V2UbKetoLk43Rv+Zx/Vdwow==;25:pxlvHZ+H1GAIzsC/VteCNc67iKAU2xICR64+FTneALMmDK0QARcfl5Z7tPHuGyHI7HLTJJ/1gSwjfA0nk+5DRXZh+TsUqVTi6y98ahZW07pWPUVnRv1PKZ0YdXqBG49swh2P1NdJ4Lx0q6VmH6Ry7d9lCwgrJO7PYnKljkYVSqC+ivXi9I2V9PstrgeqktuVXV9V+V/5Gj21ODf0k/wlPZET+m7fKBmnHGO+HGVxULp2p3+TR60nqLiSaprAfI3e1gXKVHDmUtlEdUArOFdrgzcWDg28/Z3dQPS+l2Yz1DN54GrTL02DKb7kok+E9BxuEjxFVWkk1usf4jHDh/A1P3S/OdBNfw1kHvCR++n6Qs5AssV4DcbaJwKvEVnml7NDUH27kCQyuZj5WQ0HeIn63eFg7H08sXTaQoxA4gDwzdu+1+WM3S5SOu1seYL1AR12M+fbHr1zVk/UOe3L5Eblxw== X-MS-Office365-Filtering-Correlation-Id: 189ff32b-c73c-42fd-84b2-08d40edf0ce3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN1PR0301MB0738; X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;31:LK4/jKOmBJ3bMsRXxRtj4F1ouQWzr00gqe4llYY2Ji0pX6CKkmtjUBZdi4A5CpYiVp9VdVE1PvaQAozzxRj9VbB8W9na18f5XlL44srA4nWAJCgCTqIt4JAIHAS9Vqx9wnsarrNw7pBvZ+lmcDc+yL71jbkrkI+PRvxvLlzEnYkhBHu3R/eqqJiMjfrNDVi+5f+DkBaw+1U6Ek1Ettcx+XzmMuESrQfSCEfcPjC415QiBklWpiGfKG6D+ZcwPJRLSQKBq1eCPwOqEdX2VcjNh276rFF9M3ej5faMD5yGpxc=;4:2XEGjIVjLKk6mxzUdftU7h5gk0GzGEfp7pYiuXr2SQBJ/jtZh6ciRhiytJTQKQLALDupqnyo5tl7LpYAVFSD/uhehdRz5j+f71Su8XaVfuZ1bFmCYJju2XXFMx1YvfbMf6riKmynksSf8MJC/zgoIMivMlkZujHoJt6uMNgdBQIeztgYGPYJ6mAf/zdHWWBpm4uT41ac7seHJJ1nwzgQS8B5J44iCH53zuEK7XGIWacDGLejUHULxNEExOriZ74GVd3WQpp5XOpM90K6HpwPeYLM6vioABkB33jmpgVoMkgol+KGD7Z5LkgGCUYbjs1nL8hGdAdcQg/akHfnuu2igIu//wu8KBe6QJWE+MdwCyntwS+ofbYNmxTZy4v0hPmA7Jn7mhuBF5slut+7roqPo88bMeZaba0a8Gs2D9UbmasakC31U006E9Fl7KyUlg4XmpYoNWPyTCL0h22cVLzmCM+Jff+w4dZvzHGTENHAO2pDJhh1AGcHi70WZ6qWT+sa/WMrnEnVXqRFBYIhA+PqjRrafBjqRS6RHHmnA+Mgz7yvniG+FRTZVkbfo0wtuitYCrysm86ToYFARueIzWrR0g== 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)(13024025)(13023025)(13018025)(13017025)(13015025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6096035);SRVR:BN1PR0301MB0738;BCL:0;PCL:0;RULEID:(400006);SRVR:BN1PR0301MB0738; X-Forefront-PRVS: 01294F875B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR0301MB0738;23:tnDUeZhIvijhSEpr1CvADWht88knfho3zN6vFBJ?= =?us-ascii?Q?N8igLDXlKuwhxJ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d77ld2w2U?= =?us-ascii?Q?qqrPErGnbipwm5gt+jCLrb0OwLoz9iP4Y88ckBzPvnQJylIbVQyvUsd1Q0E4?= =?us-ascii?Q?1x8y2oxhIuyugZ8H1thkjn/S/s+01YXry2kIUct6lH1N3tPxreNEh1SiNH/D?= =?us-ascii?Q?+yznBmKVabtMKZpdRcgcJS6aeFlgazDQxnkMPavN1U9VKXnh0lv0H7EAtbZ0?= =?us-ascii?Q?1kUFEljegC4eNyJRe1NRXknu1j5/5UhoKsSz4cSkQCydSNjAOj4q7MpN69K8?= =?us-ascii?Q?jm4fZO2HNHuxyxuc1YIWn1DOY5hsgWuwA5f+OJxmdkmWDFsLjdCTLgyPMQQ?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;6:BzWMPSSypX3vuT+o+Hpd0RjMdADCeALrMnXTvh0i7s4vgOT8YvNQBJy36t8MfBT4rL+Or/P2MvydHIM+CBhtrOkCZb8QUxuiqV7kRgy2YgecPktM3aNmbatKXJXW9SCaJ2p+utmKsgtc8YQFFg3awKsjH1hNvl4kDnwRCNgfHsOucSragvxb+2tuDCw4mkouf/+pYFwj23eUsxNmi6BBCyAwyw6DZrN6tSrIjcGxNKlvNug9PFsd9WAi3mirYkDp70G09rjvdkMAzl30x3m9A677gJB5UatDcnpPxIWZIvJ5VViyOz09VMtxvVeXsvklkxkrQX+iMymCR8ATBt5tHA==;5:BRIBUJBSCLhwY0xbmtACn3W2+LnxEBFyaJA7Qi7wkYawNVH7fDplkLnjIA2UJhXZWMl5dmb0NQEB52VyNkD+Wgmnf3FJBYnhopsMyM7x97kLMR70GEWIW0f3EZVT3olNZrvgliV417zU662KjEZOH2NMB7Yua/YAUNxiv9w7iph+tNnm2cmm7hUPcEXfUlH+;24:XQGKr73DrGMCVkcOC/mMcfDHG/mY0otJATw5MqdnVBvWtJzGMECAKnt4INW81dFkIojsCddMMRMsrijRzVJMB522NIAg5LYOB8d6fATXSEw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;7:4nOx3ySOHezBPgE/SvppskzCfwzIDPxvGhP+TIUDRQ1EHTpIjEhkTvFL4jpcB5ULC1mAH0QBAuY4aGqSrSbmAQ7tEE6EWCVE2usdbr26/En4odQ9/7OdSMhB2sopvkQIk+kvUkyil7jqCr/A0KyOXXjVdlgws3WL9Xv6p7Ilu1BDCD/pjU+XBVoMy40rz/wPWjrVfy0KrxFMY0NcAJVoifHGsJNtBS7x6+TQNZseivJ2Eu/RtInUk3UunEqAEVCYxfET+xU5BFglSgjeEPh+XvCRiNb3XB+emxh73+wUCn8lD7AgRAO4rtYgPD1OLYwfi2BrszCExh763b1B4F93PIsdBNrFe7iscbtV0HR8DgA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2016 11:44:11.8447 (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: BN1PR0301MB0738 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 38 From: Arnd Bergmann For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash --- Changes in v5: - No update Changes in v4: - No update Changes in v3: - fix compile errors Changes in v2: - fix compile warnings drivers/usb/host/ehci-fsl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 9f5ffb6..4d4ab42 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -96,8 +96,8 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) } irq = res->start; - hcd = usb_create_hcd(&fsl_ehci_hc_driver, &pdev->dev, - dev_name(&pdev->dev)); + hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, + &pdev->dev, dev_name(&pdev->dev), NULL); if (!hcd) { retval = -ENOMEM; goto err1; -- 2.1.0