From patchwork Mon Feb 6 09:13:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9557295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C160860413 for ; Mon, 6 Feb 2017 09:16:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAD0C27C0B for ; Mon, 6 Feb 2017 09:16:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F36527F88; Mon, 6 Feb 2017 09:16:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1903F27C0B for ; Mon, 6 Feb 2017 09:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbdBFJQl (ORCPT ); Mon, 6 Feb 2017 04:16:41 -0500 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81]:19017 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751456AbdBFJPJ (ORCPT ); Mon, 6 Feb 2017 04:15:09 -0500 Received: from BN6PR03CA0002.namprd03.prod.outlook.com (10.168.230.140) by BN6PR03MB2946.namprd03.prod.outlook.com (10.175.126.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 6 Feb 2017 09:14:52 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::149) by BN6PR03CA0002.outlook.office365.com (2603:10b6:404:23::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Mon, 6 Feb 2017 09:14:52 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; linux.intel.com; dkim=none (message not signed) header.d=none; linux.intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.888.7 via Frontend Transport; Mon, 6 Feb 2017 09:14:52 +0000 Received: from b29397-desktop.ap.freescale.net (b29397-desktop.ap.freescale.net [10.192.242.114]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v169Dq2Q005959; Mon, 6 Feb 2017 02:14:43 -0700 From: Peter Chen To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , Sriram Dash , Mathias Nyman Subject: [PATCH v12 5/9] usb: ehci: fsl: use bus->sysdev for DMA configuration Date: Mon, 6 Feb 2017 17:13:37 +0800 Message-ID: <1486372421-29073-6-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486372421-29073-1-git-send-email-peter.chen@nxp.com> References: <1486372421-29073-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131308460924514575; (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)(7916002)(336005)(39860400002)(39840400002)(39410400002)(39400400002)(39450400003)(39850400002)(39380400002)(2980300002)(1109001)(1110001)(3190300001)(339900001)(199003)(189002)(4326007)(356003)(2201001)(8936002)(86362001)(189998001)(68736007)(8676002)(47776003)(104016004)(626004)(50466002)(85426001)(48376002)(97736004)(5001770100001)(50226002)(81156014)(81166006)(105606002)(5660300001)(53936002)(106466001)(76176999)(5003940100001)(50986999)(92566002)(7416002)(2950100002)(7406005)(77096006)(39060400001)(38730400001)(2171002)(2906002)(33646002)(8656002)(6666003)(36756003)(305945005)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2946; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD013; 1:SaVn6niBPMdEDkurVxzINiCOc6MhfMBvXBJuWgjhvMgip8k28+ZUUe7HU6Df0FKfjuldRIgx3hy0ehTXBCf9woPUqS9RkhZDCtUPzW2So2qZK9EdNGuApRvOXUnLlfjCI1vqNKjVaB3wHJjzpBDYKRErx3iA6QeDBZPdJIWxo4o8bxnPeEtKQ8+wooF1zHpaHeihDuFleUCyTHtHuwgzW7G1STvB0/kuvHpt4Z8y87TnBVZ6l/RcL7WoKAjm4l275Bkj5ZVrpPy/ZfiOSHmDpFpFUHLla3fQWGYhXmLq1+TUV4FSobRrbq4cZOSN97LdEPZ1DSGeagbUTNU98kbtX1f77r78B2TBWAVRWyQETm/JPiKi4Oo34MigQ+uHwrG3QidMZ4yXo2tslOgBeSCMKnUgSQc5WaxUzTb9p69k2RsmQyHSHrg7BVHX7bVqLFgekbMBeaZAGmcsJ3fqI+I4gYTZ5PmeLMvpZdCokXeq0olO+zqrkle5HJZk4DdaIyb31QABKV6+zmcpPIDQZJ10QKDhpaWo8fS16pleDrJLCxUJ2t1xwcQL7wRnveyLMt1dAIMJCsoA7ahZabay3zGr9QlmX/LlRqgRXwm9XzYXnyVev0ZmoeKuPy3JPoNPyZUIIaMYH7SuBFAT7P9+gVg54dPhCxVxFBxZCOUUrKdZE2Gins2NqJfcaB3RvC+nsBie MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 26f43db8-aca5-44bb-4fb1-08d44e709bdd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN6PR03MB2946; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2946; 3:seGthR/b3/47JldFj7ApxtvMCwvPrdPrfc0cXSKi0UQjKQfj0UnrcX/bdXm7QoXHCqLNe88HkpeKJvtTY/U++Np3H2vlDAxl2HEvMINTHsvXz/B3ormZBEzMJV7BhBOuo3h4qYqsZjNVBthYFBPCDdd8O2fzxQkqQUjzvhjFWx44gNhbjbmzVojOx7sfzKLjHD623tRZJOrtvsnAQkdSUoAYI6z1fyfp1g/pRlE2qDGGEHqsdR5RpF9dpdNjXd6ZC8jMD2f/AMKi1kPML1X284mjWxegfzC9tpqe16FK4RzauB9Pwp1dNESLrEyJ9owpmiZdRRZQZpIFJmKWQfIJfM2nrC9YZVpkEI24ffh6u5ZfjW5fIEkIt3XMRPNYNilP; 25:BFJa6qw8R0+tRz4KIcOsD6InZKHU2DHyVtfn3X7PLsdKAKkSGl5+ur3RXk8A88svcKDJqR1oK28/n7Cg1A9tpzw9yXG+jDBU9ADa6DWvPaH+AD7Rz0lO2hzXVIV1SaTJvAQC9Fl26vEucYsUc01EJN9bvGpGPV1K7q26NjDjccigeZ47nIS7YKFSAlvdE0gztS5926DvkaOngTxFYAB4dqj9J7OSOLEPeVk8MnbzU67qkXAZFirRBS657sCWEH2gbxKHd7w83hcRpF7ZkQ5QRtMNoigcTlQp6SjCVY3DB7qTTOkXnJblcbrl5D0xaqml65a9Z0OspNXFxOm/dy+7m8f6lrFVRjpfPxUkA2LuJUMAqwCG3OuDAUgpm+LHa/7cBu+M6S5ZYw1XGcLJBjx8euiRyNzxHyE6l9RwlaCXOldj0zZEDBA5UHKyjxxZBs4OjGmG9sZ42UV3CA+BlN2Zew== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2946; 31:vE0Mh7weX3BAGX1vMgw2zKPYxSIQ+dQlB8yfF7BzRCWKqMWY4NHFhWbWD6MbsOLWoQcHz71qPsTiztj+Q02238C7jxv17hZivNMoV9nSAqzTivc+t8suE8FclS7rzsFZWTkAZeHhF/yGulvPugae+r6EmGBN4jNJ15ZeRyt9qgcx3fBL7asebso54RJDSIdrix0Un1Qe6r+mW9L4DVgsPhU7QG2MAeZmCXes/lAFel5OnWmaDkSIPgMZ/eLMPzpOHqF3AxfDQgC+dwGGcCrvCQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13017025)(20170203043)(13024025)(13018025)(8121501046)(13023025)(13015025)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123563025)(20161123565025)(20161123561025)(20161123556025)(20161123559025); SRVR:BN6PR03MB2946; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2946; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2946; 4:Sz5AANRweoZnpQasYcsB25DnS7lafvQFKldjrmaL/ZcIDszEnsSIOQ6O1LNmiCZ73M3Ah5yE99Hs1sPxfjnWPinUutl7ZPOhR9avs/G+exUPvpR76yAL0E0RWamBtTJKZXU2wnMKB/HvmjKETrh6fsKJy6ao4ocYbA+2JxdWuk9fq90CFNXDZBnZYjVA1tytoAZ3P+XnVUr77SJsRkd/Y4Vp4dcdjFX0t/sO4vd6NgJbVfFOvjKDGTQB/sZt+Jdxb+A9esKya11fETUIJwqmSc9pH2N5ZMkWHrSfI5kV34qCQy8QSLPMvcZ+R+SG5VgR7tGny9kW/6UwYRRTms++JpqjGxWuAuKX2njlV+zThZQQyO5Z82oNNOc5LUqxTYWqIrBTS74LIpU8IDjqGm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QzhSg4P5UiMIMfnvPvKIzjhbLCzu1?= =?us-ascii?Q?e1ZSUDb1NDbh784l60Eab0TP84b9e2Zoa0AvFbSnQRYPBoe?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2946; 6:SNhn7yVZt3BZPodIy8UnMTZR1Hk/gR/8RMdml3yRJBePBIe8rfWSh8TOUdU9pis6YASulEUOXs3Nu7n/ypSbZLygZ/pAFoSsYI7949fckP0w+qDhC2HMZKOAAMeSVW3jY2VJKF8nXIjTrkdAatEBrI7SRyWrH1s3I71eVKdWMt3UusD2SdPeQSbdXi14CHeOAzcm3ehlIbGPoTB20RiIb9KxNM1LIUkPypzfjfq9VCWGPG8UT2FK6r47HTado59ocY143jXlwmTrUYWf802PYoPFcDm4NE4X2xN2KmDVSppRXyZori0wR9hJQstqzJWxXmZBwOUqJgCoXde9GR/EhL9QIn+/qA4ZXtAev7Fl+mk+u2XsTQdDFe9rrB5Af71S68vj2ZEX4P73n/zNhTCrJ/dyPutl8OLHmUBB2LUETGg=; 5:D6UESSHfTfG9YWMTUVCPWEwVpVfxfDDxvTd3XoNguRHnSG14ULTxNGNuXxaeeIq4elCIpiTCrkKgkZQsZ34ozQ/IMx6D/TIW1VRM2gRw2WrO/aTAl61wjf9m19xQJflvpeTp8nzApAzxDSj8RwOumN5Fu5iGJEPJYd4PZZTDJztwxV4qyQ2JFdJJrOR2+grV; 24:oPpAoCGwyFKgtklaFSh3SySQARQAaL5bljn5gtfDkn3yYNigVyUokdHrZZgC2ql2lKGvirY/Lg3SaVZW5OMvYKiM1Yddphk9Oi2tXImrXGc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2946; 7:GQd/XFkOqTpnUnVj+eMLM2/depGv/BtnCGOHh2g9VeDxnFLBiNtu8jLYJU0PAFd71hGk2MxVAXRXuhp9jJxkXMNwjSY0ncB9X7suz4BTGCdH6xjLYs3KhjtTNh9Gc5/R65KSHzd/gKgmF8q8ZBUqb7fF06VVCrLSO3kAV9esaktFwcc9LZ0tDnzHS9m2U1snC/fJwK+686X1Dm7Sl+A8/4ZZogJioyrtesZpkaW7YZECZNiDo2zmowHcQTCC/ecL9CTkTDHbYeDTa8KcknvC0N7PmdDvlZNU/EZOL4AupgQHJiLXkrrthDMpUSpv7vxPVPNSqLfU4eAkgQp5EmDM20VpdcWFb7YpVDamprMpK50qbEw1NA10DNTSjHwfnCDpl0W4swApoQsS/GCqxpxDY+NF40ogSbjTYtVtztIzZ+qjyOoBZthAW6ixKJmyM5pMXD8fCPU+ShIAmdfJsQwWGQttEu/Oo+4L6s5MpwOrOCedGg+gSMRXqJ5jVsm4anfyhdBMF30iIt719oKh98aXaw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2017 09:14:52.1550 (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: BN6PR03MB2946 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Mathias Nyman --- 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 3733aab..4a08b70 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;