From patchwork Mon Mar 13 02:18:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9619699 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 A1D4E604CC for ; Mon, 13 Mar 2017 02:32:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93AA428426 for ; Mon, 13 Mar 2017 02:32:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8652D28440; Mon, 13 Mar 2017 02:32:26 +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 DC86128426 for ; Mon, 13 Mar 2017 02:32:25 +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=tvBSWq6zoKgjZ8uzKfxIgXPFiLxIbb7sROf+ef2unf4=; b=jM3TJ2sFt3UBfs q5n6GG25tMVNGLlR4DuILQ444bBm7uwTvdxnAW+H8azo+5pJQ6un5DwC7HcZGdlhPtWDXx5WvBl7S qWoOzQmoNA7rnzdHlY6hdAqNDGsJ1n17pkEtH/OYoIZx0Xt5TJjABAHaP1AwA2Hk+DqM7RKdp7GdH iUkJMZbbmoJK7naYe581UtT+vr4GCHUrTALpfLmyW/8ULMBD+HS6NjzkWM3RY+mZD1al1uf0qxX80 EonSrHumeAR1fognOtONTyswQYKyPa1KWUDCIRkjSowlkZvHuL3mtlwf/vstMd0ZdmCFh0xvgeQaW egJdtGIT1ugh6OoA8VuA==; 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 1cnFmY-00078y-Dv; Mon, 13 Mar 2017 02:32:22 +0000 Received: from mail-sn1nam01on0080.outbound.protection.outlook.com ([104.47.32.80] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnFaE-0008Nt-Cv for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2017 02:19:45 +0000 Received: from BN3PR03CA0108.namprd03.prod.outlook.com (10.174.66.26) by BLUPR03MB182.namprd03.prod.outlook.com (10.255.212.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.17; Mon, 13 Mar 2017 02:19:16 +0000 Received: from BL2FFO11FD056.protection.gbl (2a01:111:f400:7c09::149) by BN3PR03CA0108.outlook.office365.com (2603:10b6:400:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12 via Frontend Transport; Mon, 13 Mar 2017 02:19:16 +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 BL2FFO11FD056.mail.protection.outlook.com (10.173.161.184) 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:16 +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 v2D2IsBd028817; Sun, 12 Mar 2017 19:19:13 -0700 From: Peter Chen To: Subject: [PATCH 5/5] usb: ehci: use bus->sysdev for DMA configuration Date: Mon, 13 Mar 2017 10:18:45 +0800 Message-ID: <1489371525-18928-6-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: 131338451561926533; (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)(39410400002)(39400400002)(39450400003)(39850400002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(105606002)(106466001)(8676002)(6666003)(2950100002)(6916009)(5660300001)(76176999)(4326008)(50986999)(104016004)(81166006)(8936002)(50226002)(2351001)(54906002)(53936002)(8656002)(2906002)(38730400002)(110136004)(356003)(36756003)(189998001)(77096006)(47776003)(305945005)(85426001)(68736007)(48376002)(5003940100001)(86362001)(50466002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB182; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD056; 1:JHzocfNKiVdKdmE5pfiyjqo7Lo+a+9ytFuZcLQ8qho7Z8b+cjD3HOw3wJh6y4SHRGzKdnsZPrQCwy0jQA5UUEzcSmob6n9U0X9Lqk+7Z/qa6w/C/LUxmNCh5u976s0i1LNmqiCAbaC/6Cr8Blmn9qzWbpfummf+To1I8cgATk8MJdwjZCAShgskCnXZP2j3EHAeLiDHQudoT33Veq1qswgFD7umXQ875b9Y0xiyt4u8ksDsmswpUJfercafl7zNDS3sMUqGSmgXy01OnGg/3GrcMbjH/ihXVo7ABYmTFsnq0Nlf2bBWLSNw22SReU6+4pL59hugU+nIdhG0ffT/cUwWWSgDCO625gNT4SmlVqZ2jSigRCtn+bcPMmnFtsr6YDB8ydlRTNrDq1Hj2VdPgbQpZFAw1gQkgZ39PXThlcYiiLTdxjr7gNeFelb3eb/nqBlcfEnxStddyet0zEL4FA7i8NdRuFTTDaVt/xXjrtgi+kM6Hzv1Y8AB1aWZQ3ftDvEdNO8sUMmCes2PTAw7Dd6E26PE2T+m4keOSx+4U/9NFcuE+U3zmJI1uelbdvQoYYyxrKqbGNmCZSIF0WcABaIMSmaA8Ot0d3nAiJXJZKv3WSds7UHkRsoBCMo9GlMN+1nueHQICPyS+d6s2Dlgj7q1d08GJJhYhUtrMKSp/i9Z8qDFxtd+w1vr0IEZa+RaxduRljr3UCBMG2r0fWe9rLQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cf6c8df2-d9b4-4d91-cf85-08d469b75929 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR03MB182; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB182; 3:Nbmoe68rzeZDKMYAuPTrVmLs2X5hpuzlS8x/mA5S7zJnC+nY9EkxPwulwvyghxNg5ZWYRmi1X0A1h9HL4uDi+fRtwxD+gDZseSR7sm1cE3Nk6bEhtJA8wF0iFsytVq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microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(35762410373642); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13015025)(5005006)(8121501046)(13017025)(13018025)(13023025)(13024025)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123565025)(20161123561025)(20161123559025); SRVR:BLUPR03MB182; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB182; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB182; 4:emha1F3d0Tdo6dFQAk4QUOdDN65pTunruxeJvrClmRQ7qlXLoN5P3LshbrYHwwMD0EhhTIHUQxwv0rzZenUt7DI1QsnbAiQ7K9UQ17qlXNVXoSTJrZkOzy8N/E/j5QhKyyn9B7UZlwmWogv6dyHqSAAuG8cc5/A6bqvFjGJnyWCzQnocfRskN8pP803cWV/aMMqDGRRHl+lVVCJEAeTy+0jxvAp4rVXD1eOd89ET2ZlXQYidjPnGd+u6WG3an5VseNhpobh1NTS8iMpkVkV4mGCu1atUHQRQOAUFmxWbcn8lnLbR3cfkSDnuykYZvFjQZKShQnc3pANmhv/hU5qL9ZNLQh0amxk7zOIkik8DiAu5LYJoFCpJ5FiVbbBtc9mlZm1qigmwWaJ7dsApRLBLHrzFJaturopntYKCfZ32nkONrp6+cVym8H7CXo6ZxFykBIBSqtxZmhMO6RZ8dHaKlV3nqiwkmp+MQgRYSrwZG7uekfRhMD48+PHMKnZXipCFOBcc6TLZ4dwHN/aYyvWody803eL9KzA3fm08feNYIE6uOnBOeDoqZ64PtJZDmVfjCefsf9U8+HDHpRzgpaUnIkUueRLxBwUPckajzG0K3yo2a4CGbSdyjNblUp4ecpaJUz1aTRx674BeexsP0hZx5Pk5xHjwevWNuAu7Tvfu1Vzm+b8lEga2r1h8GiX96hWF5KtEC1SvyQIhoz2zyyV4VF13qm6/emRDQsaxFhpDUEsO+5EfXLPuVtpsRNmvvtD4q66QoZyaenaiJSPzflWCjA== X-Forefront-PRVS: 0245702D7B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB182; 23:MyByI4cSg7tP7dl/P5zRpcXKodezt2/Z8P3Hdu+bDx?= =?us-ascii?Q?R/AvCpRaGCL09D3uuLAJGb7M6EcmKEGP/DF8ZSVaZQoQQF0F53qWMMD63tKZ?= =?us-ascii?Q?JRHc881/s8gVyzD9NrxfuNZUxOMF7TzrejGfsA8uw+eLrGsDZlup+ZQk2HSP?= =?us-ascii?Q?7mhE4xJSZH53hc37e9zuUGgeDrhgzGPbiWqJuklvv1gPFn1P63JkH9fbCKz9?= =?us-ascii?Q?du7FsbrBQAJdJJdDei2RQ8ljmTIZIg/LZwC0vKkIYw/MT9XwyU0DmgOUCQ5q?= =?us-ascii?Q?6U6g+HotjcAL31GxdF6wROR3ZBPmP1qJ7rQkPEwoP6UzpzCxpSeQdFYOZOCZ?= =?us-ascii?Q?aCsrqj0mkPlOGz0nqgggqLMdSAmbMmAo2dRix6zH2PnR7S1gUx+loh9Elr8+?= =?us-ascii?Q?9THu/oIXEUce4qd5clxGGisY6fjbmXvNRlAvwFubbw6mYu4JxHZP++6pX5/2?= =?us-ascii?Q?GJS4Lnf6cn96YXnY1zKCBnwQEMGNYUzcL48S38jENc0olQGRKeDCziZf9Jlo?= =?us-ascii?Q?ErTyR3iSK5vSxWu1CBSIZbdPm0KHEK3EEeT26iPHsRhwPu1yq5jqeOZCCxL4?= =?us-ascii?Q?nq3F2qdgf1GjJqadXwWZ7FNTD2mHDBI0QMyHoPl2QtkqYyQri9mxJXzkMgve?= =?us-ascii?Q?nStY5UPnYXKCicSmA6z3y43Qry9nBBU2r/G5Y1LrvbqSKngPy8pQnjyIq25W?= =?us-ascii?Q?RyZ8/gtINH6ol818GbseR7Fsti6EYzzrZ4glXIpESAYgNlRCwV73bCtrU6bO?= =?us-ascii?Q?3X/saYXkMrUyha32McWt7Sud0n0pT+AT4gljSipt51A/DgdFVY8bmneJ5tJp?= =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K9hiUoi8DvHRvNwMYfBb2EGV/I8db6s2aoty702gmM7vGGlDj+9b45lUXpHrNjLAl+P/F+4X1xW1PrKPPhTi4OQ1W5f4iD3DDHAhUw+Hvk75; 24:WeZtrwM/Esc5tDNMBjda5Wq9w640HRdytKoslnCBEwbLgbJGBjyrv4igLaI/cluhJfVwCZKcEht9UWcKkWjPOrNPNpwPad8Nk2ld7QWUkkk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB182; 7:1SWNs88FyIl0tIN4Sdenfmm5jCEDybr5bQ3Q6hS3rxAf7hlx39VpsZLdRpSj9xNkmubMYsB53T2AbpE2SdTaTSaqTtciOY6ndu94Nao6eWakSheuzAaKZJF7LwnTToBDc2RMDT8Dd1A8DUn5qKM097Ek1EyFk8kYVRMsZrTISZqzNOl2ZriTr9DNGq0K+stVzshZxVt8TT60bDoNUO8S8yxrOGDFjaYQLmRtP/xXDeuHNJO0kHeMazTAOez2/SpyTxc6WS9cs+4Mn6iT8OgjLUWDfXdPJFpOpYH+scxoVnUdzUjvCt2YKUCSSWrtfmeoGUfbrQzDule/85qxY3ftgg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2017 02:19:16.0054 (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: BLUPR03MB182 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170312_191939_057548_72D2C525 X-CRM114-Status: GOOD ( 12.70 ) 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 , Sriram Dash , linux-usb@vger.kernel.org, Arnd Bergmann , 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 Set the dma for ehci from sysdev. The sysdev is pointing to device that is known to the system firmware or hardware. Cc: Arnd Bergmann Cc: Sriram Dash Signed-off-by: Peter Chen Acked-by: Alan Stern --- drivers/usb/host/ehci-mem.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c index 4de4301..9b7e639 100644 --- a/drivers/usb/host/ehci-mem.c +++ b/drivers/usb/host/ehci-mem.c @@ -138,7 +138,7 @@ static void ehci_mem_cleanup (struct ehci_hcd *ehci) ehci->sitd_pool = NULL; if (ehci->periodic) - dma_free_coherent (ehci_to_hcd(ehci)->self.controller, + dma_free_coherent(ehci_to_hcd(ehci)->self.sysdev, ehci->periodic_size * sizeof (u32), ehci->periodic, ehci->periodic_dma); ehci->periodic = NULL; @@ -155,7 +155,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) /* QTDs for control/bulk/intr transfers */ ehci->qtd_pool = dma_pool_create ("ehci_qtd", - ehci_to_hcd(ehci)->self.controller, + ehci_to_hcd(ehci)->self.sysdev, sizeof (struct ehci_qtd), 32 /* byte alignment (for hw parts) */, 4096 /* can't cross 4K */); @@ -165,7 +165,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) /* QHs for control/bulk/intr transfers */ ehci->qh_pool = dma_pool_create ("ehci_qh", - ehci_to_hcd(ehci)->self.controller, + ehci_to_hcd(ehci)->self.sysdev, sizeof(struct ehci_qh_hw), 32 /* byte alignment (for hw parts) */, 4096 /* can't cross 4K */); @@ -179,7 +179,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) /* ITD for high speed ISO transfers */ ehci->itd_pool = dma_pool_create ("ehci_itd", - ehci_to_hcd(ehci)->self.controller, + ehci_to_hcd(ehci)->self.sysdev, sizeof (struct ehci_itd), 32 /* byte alignment (for hw parts) */, 4096 /* can't cross 4K */); @@ -189,7 +189,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) /* SITD for full/low speed split ISO transfers */ ehci->sitd_pool = dma_pool_create ("ehci_sitd", - ehci_to_hcd(ehci)->self.controller, + ehci_to_hcd(ehci)->self.sysdev, sizeof (struct ehci_sitd), 32 /* byte alignment (for hw parts) */, 4096 /* can't cross 4K */); @@ -199,7 +199,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) /* Hardware periodic table */ ehci->periodic = (__le32 *) - dma_alloc_coherent (ehci_to_hcd(ehci)->self.controller, + dma_alloc_coherent(ehci_to_hcd(ehci)->self.sysdev, ehci->periodic_size * sizeof(__le32), &ehci->periodic_dma, flags); if (ehci->periodic == NULL) {