From patchwork Mon Mar 13 02:18:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9619683 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 31B9660417 for ; Mon, 13 Mar 2017 02:21:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21E4B2843D for ; Mon, 13 Mar 2017 02:21:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 151C528449; Mon, 13 Mar 2017 02:21:08 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 108442843D for ; Mon, 13 Mar 2017 02:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4dpw0xrbDwL6ELp9WWwN1S+MoT7VLA3M+cOCPKpCp+k=; b=KJ1JO2r489Oqam /QyyJ/hOsXdAo+ghWlL3Z4j5bUcPIWnp2ped04si3euJlJRPHhCzWf17bm/6t/mYWTS+RkyE18gK8 Ikh4Uckcrlq7mTsexxcfFOVI0yT3uzqjDehYdnwI4OKaGGOGOwE90acvNqcIv5FYs/qvEXUqRbsum b6ZC3F92w31i9V30tM0hp6i2o2ciU4JbTGuWMdecDFmKbz/UYWWu4gwbycHASt5Vj/kIT8jpSHSKR ncEgYxE2OC2Oz7brCS1JEXs/hyJli29/k59X4q7ScMTCryQVr0sctDUV1PI7Kw1W3ArXkHXiZO+K7 bVZEbZb4tLhRQ0Bi4ZBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cnFbb-0002JS-58; Mon, 13 Mar 2017 02:21:03 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnFa9-0008UR-L2 for linux-arm-kernel@bombadil.infradead.org; Mon, 13 Mar 2017 02:19:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=02rK3ukc1Tk/uh3PRoB3friQdi+30ZfIfpZDZzbNAtw=; b=YfQLAJ6t6GXWVb4oCNF1lg52k dbXvI2hP6XlIaLAMqXFzv4embQuXvb4JRf2UlZzrPg/ufsHJ2gSHHqPWUDopvGPCgxZWBs5S6X/gU wKpID3sEUwnQDZnI42v14A546o0JgUToA94a+U9EKhnsXMhrGwYXKGymH9Ge30g5CIhXOLBrQOra9 NFwYfgAKp5Xqm9ZjAvYGULTnLEEDknIKGJCAJ88mmwL/gMXC06JVRImsD70Y1OsoUghaf5yKjJXS1 4BUZME3vhIFE50k/0OejSwqCqjFrbZabjCHr5XOjQ5sWDfl8lMc4vD5l0gxXkftkVU4EVl5ncjtcw dmMwC1M5A==; Received: from mail-by2nam01on0045.outbound.protection.outlook.com ([104.47.34.45] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnFa7-0006p7-6H for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2017 02:19:32 +0000 Received: from BN6PR03CA0033.namprd03.prod.outlook.com (10.175.124.19) by BN3PR03MB2356.namprd03.prod.outlook.com (10.166.74.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Mon, 13 Mar 2017 02:19:08 +0000 Received: from BL2FFO11OLC015.protection.gbl (2a01:111:f400:7c09::109) by BN6PR03CA0033.outlook.office365.com (2603:10b6:404:10c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.961.17 via Frontend Transport; Mon, 13 Mar 2017 02:19:08 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.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 BL2FFO11OLC015.mail.protection.outlook.com (10.173.160.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.961.10 via Frontend Transport; Mon, 13 Mar 2017 02:19:07 +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 v2D2IsBa028817; Sun, 12 Mar 2017 19:19:05 -0700 From: Peter Chen To: Subject: [PATCH 2/5] usb: chipidea: use bus->sysdev for DMA configuration Date: Mon, 13 Mar 2017 10:18:42 +0800 Message-ID: <1489371525-18928-3-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489371525-18928-1-git-send-email-peter.chen@nxp.com> References: <1489371525-18928-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131338451480849117; (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)(336005)(39840400002)(39450400003)(39850400002)(39400400002)(39380400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(85426001)(53936002)(110136004)(33646002)(2351001)(38730400002)(50466002)(81166006)(189998001)(6666003)(36756003)(68736007)(77096006)(4326008)(305945005)(2906002)(2950100002)(47776003)(50986999)(76176999)(5003940100001)(8676002)(6916009)(8936002)(105606002)(50226002)(86362001)(106466001)(5660300001)(104016004)(54906002)(356003)(48376002)(8656002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2356; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC015; 1:FXYvpFvGxiBAV7qs488TNFYyI8Mnx1d1gCC6/BfI7w5UrXCDOIAiVx2QJaoImzWH4LJp6HCD5vVsQ2GiMruD2fLW4UbuhxIpu31ACkog0z+xsSrl2J+5GcqsRKqM0/HhDVMJbQgnl/4jeXxEsJDyjggmzDEH40cHw2Gx8C2EYAjE6+vmwAuA6MMLJURy7Ha6QKux52rX5nnd7U9zc4m4DX/jYjDz3YgksrYSG7YShtJrgoK2xUhRjmsKUUZZPgZF0Kyus4Cv7piQQfxjIu6gyvM5ddR6jHg38jF4Uivhhzy35ZwCe5ymtgaWUi9yUNmw9X2PZGIwgBND/i1bUdBxLndD2vM4LcSlP7sB0lfsj6JWaxCgFnAARFUIbyphLBecRoVCWJYuiPl4nUorJPRwBmfSf6w9k5HbI9n8loR4M9fIQgXiOrQAQEtEzfbfKkpmxVsyX+kSTCQNAxApn/VeO8qKToQHNYiZoft7/Y6foaiZeJMLWUa7iCU58cSg3CBjecYp0PaB/vUdm1/V5wsrut2a8y6Ri+/c7v+u+mvJ0BrROuIQtrhmas2+4tJOb8hkURO4CgpUp+W75fXKhP6MGV0ZDwbrp8Pk0N6UFOyaXVonLv6Bz21Y7J5C+db1MSivZloCN5daeeSD2++7W6FsMCr93FiQS6EcsuxdulO9PjFyB5VMpT+KihrFF5PuzQUYR0Qo7kBIrG+vSUM4BDwA7MrQg5j1tzMlfI0PB4faCGn/9xno1vq7VKgPLG0khNax MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3d2e2fc6-f733-4d94-aadd-08d469b75454 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR03MB2356; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2356; 3:Mh23tqBGVkMKwz9GgGRc3fjf6U9XIO1yYwG5zyUcRbL3o3EMtX0bqLG2dQwa9SEmV8Lkh3roTlWYpHny3FVjxGjev2eMF+4LHlo5QQ6wsY0UToA7v1GDIZHaGfUNEErSSO5CwnpAmbAAGY0mn5xlqJnhpOd4QbeElO9aCg+ZIPfvsjzA/xNRRWhi4OCijj2UHlfSLx9Yro4vnJ9pBpdNGwZEBfWqpstx6T3ZWwbhAg7FSFwXQet3b+xYXfOkBxJ48Ni+M69J+HENluLHh1LhFLBYTC5cHv6LhOk3hR2zJkWFsFuuB5jMzi1ohYlwoDUUTkvpUyiIaEW/OcGcV/lLgoWfyb761OJDF2TiG8qJ5NK1Kxz+DrRJXkWe9qKIQT4t; 25:s+ncgdiMF4O8DXtoM2JmVUkABBAZWsqIB6mtpBxtujC4IA31zRb2qAG5BiTByNHwT8Qq4fV1ooad24CcIJZy3plTdrb12pTIGDlusFtcVhV5xpfoPBu3z+lyWgvTZVHHSFZHssjA+v/G//x0tyW5TLhnbt/f92zk7ANzmdgk8xNmiLQwAgAWef9rXcFZjf7Z8D2b4N/Y5P/nP+7ncWSOkgRhshS/ak2IPPjO8NogYLF9UHRcZodg1lbZdu+FBpfb31OzQvF13y0uqSJHx0IHEEVBonvpL5N5ZmqFopNtVOCVNvkt0zcLk0scALfU6H4D+cq+MdzP/NmLGwg5M7dbpXVdZMlNzAtaD9EvZUD2JHBM+YLLccUAcJLf/P5BUQt2AEhZSJlThS7fkPhL6ZyEfcaqfoMiA/f87Fr1ojUUQB/3nAYbwDu7p/XXc+lPyeA4bQ4Ew8HmUBat2J4UN08FUw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2356; 31:nF5CedIcqLTUl77BOiYnDrItBsrp8c7kjHYax28C2XfuCWbjWB+PDe5PUri38wN09aqQhOVvzB7DJUgL45uuMK1wlnF4nKLuwLuuVOiepDc3A0XjRxO/7cLFZW+EFxuLQl6Cy0dabHdtIvslFAOafPUDF/ZE8ZFPLSwaBodL+zr5VE/+j5y8TdNza6MoV77mJIGDBw8WGfP28WCs3mnkowyY6mnCXUKDmGOrngxAJayNPHM8z6inTmAQ81RydUoG1gSz3bmPlbA3OyFFZfCCJM7mgeBXTVKxdHyj/2jl/JI= 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)(13015025)(13023025)(13018025)(5005006)(8121501046)(13024025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123561025)(20161123565025)(20161123563025)(20161123556025); SRVR:BN3PR03MB2356; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB2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ostics: 1; BN3PR03MB2356; 7:LW1uB9CWEGkDOopfX5Cdvv1lS+cw0FYsuVi5JOaX405SqtldSlpjKaCE7JQHtkcnvxLkBrWyibfwz/udQtqRLpqNbFW3toNUs2DCuwTfY2BiM5gvUU+E+7WDIdYdxm1IBY3N/7j7yfU0dThwraB8JgJsOB7z5TpNQGuhWQyWXQi6Ks8eTj3I9m0RPeM2C9A1Qn9/xT3u8obExvw5fPEDRDpxkp5aKsCep8aE7bSXYvWZibQ1IkzzvHVIa3ki/VzEKpGp6GYIsOKk/hX7ZC6yd6Rk4B2MTlJcD9X5mer7uGTFj4H2XfyfXJUTkBkHWLxv9ZTYTf5cEfgM8gH+LMKplg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2017 02:19:07.8977 (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: BN3PR03MB2356 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170312_221931_448479_644950CC X-CRM114-Status: GOOD ( 14.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Chen , Mathias Nyman , Arnd Bergmann , linux-usb@vger.kernel.org, Sriram Dash , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arnd Bergmann Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash Acked-by: Peter Chen Signed-off-by: Mathias Nyman Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c | 3 --- drivers/usb/chipidea/host.c | 3 ++- drivers/usb/chipidea/udc.c | 10 ++++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 79ad8e9..b4a78b2 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -783,9 +783,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/chipidea/host.c b/drivers/usb/chipidea/host.c index 915f3e9..18cb8e4 100644 --- a/drivers/usb/chipidea/host.c +++ b/drivers/usb/chipidea/host.c @@ -123,7 +123,8 @@ static int host_start(struct ci_hdrc *ci) if (usb_disabled()) return -ENODEV; - hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); + hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent, + ci->dev, dev_name(ci->dev), NULL); if (!hcd) return -ENOMEM; diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index be166c6..50a86c6 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -423,7 +423,8 @@ static int _hardware_enqueue(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq) hwreq->req.status = -EALREADY; - ret = usb_gadget_map_request(&ci->gadget, &hwreq->req, hwep->dir); + ret = usb_gadget_map_request_by_dev(ci->dev->parent, + &hwreq->req, hwep->dir); if (ret) return ret; @@ -603,7 +604,8 @@ static int _hardware_dequeue(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq) list_del_init(&node->td); } - usb_gadget_unmap_request(&hwep->ci->gadget, &hwreq->req, hwep->dir); + usb_gadget_unmap_request_by_dev(hwep->ci->dev->parent, + &hwreq->req, hwep->dir); hwreq->req.actual += actual; @@ -1904,13 +1906,13 @@ static int udc_start(struct ci_hdrc *ci) INIT_LIST_HEAD(&ci->gadget.ep_list); /* alloc resources */ - ci->qh_pool = dma_pool_create("ci_hw_qh", dev, + ci->qh_pool = dma_pool_create("ci_hw_qh", dev->parent, sizeof(struct ci_hw_qh), 64, CI_HDRC_PAGE_SIZE); if (ci->qh_pool == NULL) return -ENOMEM; - ci->td_pool = dma_pool_create("ci_hw_td", dev, + ci->td_pool = dma_pool_create("ci_hw_td", dev->parent, sizeof(struct ci_hw_td), 64, CI_HDRC_PAGE_SIZE); if (ci->td_pool == NULL) {