Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935681AbcKQLoY (ORCPT ); Thu, 17 Nov 2016 06:44:24 -0500 Received: from mail-dm3nam03on0049.outbound.protection.outlook.com ([104.47.41.49]:59392 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753975AbcKQLoP (ORCPT ); Thu, 17 Nov 2016 06:44:15 -0500 X-Greylist: delayed 106470 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Nov 2016 06:44:15 EST 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:836;Count:9 From: Sriram Dash To: , CC: , , , , , , Sriram Dash Subject: [PATCH v5 0/6] inherit dma configuration from parent dev Date: Thu, 17 Nov 2016 17:13:42 +0530 Message-ID: <1479383028-27701-1-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 X-IncomingHeaderCount: 9 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131238566520590938;(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)(356003)(87936001)(105586002)(8666005)(103686003)(7846002)(305945005)(106466001)(8676002)(5001770100001)(33646002)(50986999)(5003940100001)(92566002)(101416001)(97736004)(52956003)(2906002)(4326007)(42186005)(36756003)(42882006)(189998001)(960300001)(5660300001)(68736007)(81166006)(4720700003)(6666003)(48376002)(626004)(90966002)(86372001)(50466002)(81156014)(46386002)(45336002)(8936002)(50226002)(47776003)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2466;H:tx30smr01.am.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD013;1:HNUz473mBBMb+Gffm02H+rxY1g6RNJuUT8MBUKPoorAoPFoUMdNnLAy4dhOeEvbkf/j+ttz8RLET1SlMnJJki7Zws4cMSiYu9B+yS+FxNGxi7jDMkw/1zMIZYYfSVi05GPHjB/O2v6wxEeu5rArbRj5COSQ2QOZIbe4tncYZuE976/HU6B7V6T4pk5Khi689hkwHAuW2oQWvmpq1KQ1mE5YNTHNQlZd5s7g1HMbVcUC0PFsuE+dmFnW8rixFAKkNKVAVuQ3XHLnYlUsiCEjmXGZ5KBd2gdobl3ft+I8Rke39ZlnG6LN8evS2dg7aRkREkj7qqFcqZmxi/VdCFx6qH0c/k9Ews4oXmSW5Bd/rWsZ5IF2RHkJoz5n8KIcHbpqYmfJKTL19ff2vgCzDhD2UzhNX2DrKV6ZtAzDSo2iz4Voi2zarW97GYtrK6tXr0Nb4wnnRtOq/rY2dnkAn3XIpWcwdM3jHqg7Yxmi54QDRslhjiEcvE4RB4LS+RfvvK6V3U/8PWDXjmIbimdKdlGi7MGX1B5x+WJ498ZnZL5zoKll5gv7RkyXR/gE8tFedjpekotpd5kjOnIOgG50WHakNOxk7hYTtTvl8CJevsM9ZnrM4/SgFxcDhP19L22AXns16BufpV4SyTNjDY/L7FxA8lw== MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2466;2:XYHbwzclGvjSRQ//EEqnJ/RifTc6o0zvnAUGkT2y/qP7B7Ex3L9sa9+C6b0xlycps2SPQvxxBL4injh/GRXXymMal+fdNF1c0Zs1drb2q3KhgV13kP9zPOnr+PQh3LV/mYizT0khJtTc9SJYIuwwMuJTvJ+0QUjsfJ8NfvDb5vE=;3:MpE8elL6auEjWfGLwjzeyrcU4vPiuytOcEw55fqEBWuFvBqutOdv0TpC3F4JttJ3++SBfCqAUKpTEiqZHImyoaXsOnGTQNvCXxDWt/NEIDvPkX+yoqUq81AViXcm4CXbXog+XBmOm1GrCcTw7aJYAgDj850+3gLMS/yDBWGP7HpJ5l0Q7HxlV8OOJ48DxJfkTcORrdnMrlmjN0I3uTnckvUNwxIn1aQPQfqfhZ7FPj/PZL9ZS5RlXAewHxDm7FEdk2EVyQOMOjQToyQgb7j7Ng==;25:aE+AfUTG3Rpngs9VhyuvKCZEroU28Of8CWaJouhSCNJZUEkjGtJVNL/CMdfoGXvVpUKlKC2h+RGqD4/5zOTJBDwiO4JpngMTjylQe0bYfmoXYoRe8uylWA9hXmItLLf+XHGX4bIaKxDImyZTVHCt7WcQbOl7xucPRplBVrsvdytY0HIU27n5VkxR2y37ly9feDWHbIeUB5zmc08A8USJZQ9R8AtNmFzf+W3vtiAY//zl9uN32EEFOix/+Dwx90DHo1JsWHTVsNzG6nbI22JnQkkEduq61YtNMR2nQLIpMQLGz7nE6oMkDm0670Ipoa3YBvlh0YUrYTvJflPXd5ZJTaY6uNR8uJki7UvCCev0rIrLJFixxfd/KqZKOjXs7sczlWM9g2m5LEdDiYqPyXySNjNRHkh+Y5Fiv6zO1T9Dmi0wLbi02odz34DBrN1zzgzKntVFoTESg1IxGu584rdMjA== X-MS-Office365-Filtering-Correlation-Id: 5c56e55f-cc6b-47e3-30f9-08d40edf0cbf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2466; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2466;31:m0yDjSxlqZ1GjzzbU5sv/zlzyIHEn+2wl0Gk7owZhFR7zzAOq48A7VyZmSAO175hCIiga3iJE+PEJBmOONe5hbqfUmw6Fudf8upF1l6vgO4Psh9q+KwUQwJyz0R5fUlN9Yxei8eqBOdytpzGed+rrRTKzefvg5QMjjak85wvY6FwhhIslzDQr4Cfz3NCzY1V/TC9+ZTLlnufb4CPpQsFpxpNpPNTAX5KE0TTkpuFMoBZ5DUKlCJJPOYCWmYFVotL0n32d7XPNHx7R/CjB/q8OA==;4:z4ANq0rIySvL2B7S3EeABF44sTeMdUMcS0atXJunpX6mena5Flnd46n5PKEMMynN0YQEKR1NrAZCCNRzQdTLJFVsYqwgO78m7MnRfIrYvNMLg66ZPHZ9Wke5v48Ipifrq7uHUk96/uKRJpNxuD2dgBtHDNIzSI9TDi9q4GIni/1Q73lCfFYCxwwBCcrMzwnn6W8DhNJFNs24C+s415CiWs9135emNlucW3oKEJowxvm5LVCLs7BHrr++ZRSrT/sf0my5NdNyue1uqxL1IHVS49acBCIS16Dgg3DisS3PocuQoxfcaG3GeAcPLYOjAN9p1tuc/I07D+9goF/ooGkNr2W6qbXehb9hwCkamKD4HBkNYZtpaJeuA9WAGIiyYks+5GbyioJOS2X1kgMdYKijpAX1XbwxW5ocqddYUIlDpfbb/XlzYxfk3M2p/+/uugYmc0arsTpCx1iJWwmE420phCR5Cqgmv6YAdU13aDyPG9bPhxvFb9Erg9w0P7I35gcfIMagJXl4zayDIzz7/qpKVQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095035)(601004)(2401047)(13024025)(13023025)(13017025)(8121501046)(13018025)(13015025)(5005006)(10201501046)(3002001)(6055026)(6096035);SRVR:BN6PR03MB2466;BCL:0;PCL:0;RULEID:(400006);SRVR:BN6PR03MB2466; X-Forefront-PRVS: 01294F875B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2466;23:8CHpVcGMJ15dKVBIQta9jC6qmdpclwTVwn3/a2Ajn?= =?us-ascii?Q?fUVBE+SMzVKTR2CPOcJCnE+fJd/K38JCK3X/qaJqZtSvIpY2Ad/OQqiVaK//?= =?us-ascii?Q?9BaD/GbPeZoyyE05/IJc7s0FzAEE65YfJ2ZmRtslor2eT8fAPnNP9w4JXuAs?= =?us-ascii?Q?KNeHZ3qfdem69GJQMe8ffTPVoTievHV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v6/XjYOr2iuz5XybPUq/Ln302xwoH8px2BSK31at+JQVXfTKF?= =?us-ascii?Q?NIrH/BSwexTzM+2bSJHk5vSd8hgCMD7TSxZfHXFlw3Y0SANftt3Lw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2466;6:xBn5ndHXiPMQ49KnSpBN5Lp/BxccO9ohUqe6ZQxk9xTy/9VrcmNhAgSOYjRBfT/N7XvUWDGCgf+CeiQ9dKQuJxCJowObzpc4ZyWpo4ql+v/ri86/s2mogaYnOMZkUnjN+tLq9qfzqEo8zHer+hEsrFdnJjgx/EfSwx11mjoNfWCvRURq9Lkm8jugxq+uUccLHL2eJ8X8P8my2CwAVwNaAZl7T8eUPqQuwOtdiNAVeqiG5GqELdHmg1PPax4LpmzTonWQ3jcZW09llAt5NXNch9owEla6PyK/Z11teHu0kjqluD+dh2x1fNmK0q9LFGwbd/KdaBBkf/jSNfZF+2qjQw==;5:9i5q6yg9gyfucnpnCaQnn51AtkwZeLsDUeWG23pccmTGqwBcYHoZD8qLYbCnf3ppiwlERFnCia38RNod6GfGekyYUweR0F3tkMhHoCt/ilAknhgJB9ZdcU4pf3zTDc91zK0jFfQfizuBpON2R2jLtsqSJUfNRLrZJtLAwdEFvBQqu9mKsP84VuviIGG2uJc5;24:WZT80qN4IPv/IoD8h/40sBaX4707cxSIkCqcE1vj4/pJ5nq5uBBgYR8t7mmhJCjuRCDZNbLE0+zFCMohAMbEnA7F2EdPFeJ1SQfiP00EORE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2466;7:SxbfugWjrocAwRnuIgDSsfFpOq403j1uFNnCAf1ztuQTsr1uqE0vBykzzCMXG7YtgnehrvTaLZs4UjJkf6B9kHpTJMDlzgN7LiL1XduF2mwhqh0mKn/30V/d6fN1LvpFm34jSjG73SrpXejfirjBZ5Dz1UK9Sg9C1gbjKEfKHB652uvxXZGuQqQvQvQhBNmbax/V3vlm2llShx7cjvZaoSUWJz7GUC2m0z0QsmY3vO0pxLF/WMdp4i1hfqWKswcvLwakVICSv1/YjtrKO1Nra6nAxAJxV5u0NX1Y2T3lnAAhTGuqY1S079Bvy+ssj65XlLqr4VO56YojBDIS315qtXhIo07jicwaPH3v7bf8sDU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2016 11:44:11.8718 (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: BN6PR03MB2466 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 40 For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also handles all the other attributes besides the mask. Arnd Bergmann (6): usb: separate out sysdev pointer from usb_bus usb: chipidea: use bus->sysdev for DMA configuration usb: ehci: fsl: use bus->sysdev for DMA configuration usb: xhci: use bus->sysdev for DMA configuration usb: dwc3: use bus->sysdev for DMA configuration usb: dwc3: Do not set dma coherent mask drivers/usb/chipidea/core.c | 3 --- drivers/usb/chipidea/host.c | 3 ++- drivers/usb/chipidea/udc.c | 10 +++++---- drivers/usb/core/buffer.c | 12 +++++------ drivers/usb/core/hcd.c | 48 +++++++++++++++++++++++++----------------- drivers/usb/core/usb.c | 18 ++++++++-------- drivers/usb/dwc3/core.c | 27 ++++++++++++------------ drivers/usb/dwc3/core.h | 3 +++ drivers/usb/dwc3/dwc3-exynos.c | 10 --------- drivers/usb/dwc3/dwc3-pci.c | 10 +++++++++ drivers/usb/dwc3/dwc3-st.c | 1 - drivers/usb/dwc3/ep0.c | 8 +++---- drivers/usb/dwc3/gadget.c | 33 +++++++++++++++-------------- drivers/usb/dwc3/host.c | 16 ++++++-------- drivers/usb/host/ehci-fsl.c | 4 ++-- drivers/usb/host/xhci-mem.c | 12 +++++------ drivers/usb/host/xhci-plat.c | 33 +++++++++++++++++++++++------ drivers/usb/host/xhci.c | 15 +++++++++---- include/linux/usb.h | 1 + include/linux/usb/hcd.h | 3 +++ 20 files changed, 155 insertions(+), 115 deletions(-) -- 2.1.0