Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753492AbcKBFyZ (ORCPT ); Wed, 2 Nov 2016 01:54:25 -0400 Received: from mail-co1nam03on0066.outbound.protection.outlook.com ([104.47.40.66]:28592 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751018AbcKBFyX (ORCPT ); Wed, 2 Nov 2016 01:54:23 -0400 X-Greylist: delayed 945 seconds by postgrey-1.27 at vger.kernel.org; Wed, 02 Nov 2016 01:54:23 EDT Authentication-Results: spf=none (sender IP is 192.88.158.2) 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; From: Sriram Dash To: , CC: , , , , , , Sriram Dash Subject: [PATCH v2 0/6] inherit dma configuration from parent dev Date: Wed, 2 Nov 2016 11:08:07 +0530 Message-ID: <1478065093-6923-1-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131225387150622999;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6039001)(6009001)(7916002)(2980300002)(428002)(189002)(199003)(4326007)(8666005)(101416001)(50986999)(69596002)(5003940100001)(47776003)(105586002)(305945005)(42186005)(103686003)(106466001)(8676002)(81156014)(50466002)(8936002)(48376002)(50226002)(229853001)(36756003)(92566002)(81166006)(960300001)(42882006)(90966002)(189998001)(2906002)(45336002)(46386002)(33646002)(6666003)(97736004)(5001770100001)(11100500001)(7846002)(5660300001)(87936001)(586003)(356003)(4720700003)(626004)(86372001)(68736007)(52956003)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR03MB2381;H:az84smr01.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD004;1:NnL1RksB0AS5UDlsWHPcwmlL6eg6hQ7gctfsrINMoDfur0D3aMLbE1wZGaklplitdZqoLlYqPdtrxeOHD7fb+0YRJT8wV1lPeZufIyxApSd+i9R/U3AxyK8/hiIzUXqO3GHEDP2CpyoyAhc/c1pIBSGwd1XoqugVifdxZVXmrHZY804Q99lSW9xeKBtJndH3wf2FMRwEGsSwzGAZczwFlr+G9kdl3DSi/sJQ19ImQDyGnEOxzJOsOVYJBt1AANwOxYS2JTtjjX7LoVYhSdKHqVJ7eC1V4v4Ig3zubBlEt5POPs3vIF/lPVPhfPT9Ey1x4JugSmBZTcpzmFEDNBFwySaUX2JgQjhYaxchcmLfTtAgZwc2Cfj6EGTGAjsdFBbXsYgnMecr2qvvn0hP2wT9x87r7paB2l1TFAJAl1bXl8wGTmTHYyD2+Ndw5OrE7UkONyK4vtDr8+/ruuSBiRtM26rH5rXul8BzZswiGx5oIPAsmGcizPOTHA/CNfAfqAiaE7Z8+ZiilXzvCcSvtk4jqU9ttgICtdqFo9qNutnfTGaoFT1MVXe+IMWib4QLp52FijBgw62SIcmN1M4ikPFsqf5XxkgJlLRDsxc9jNUk6UED17YvvIxBCGUMzxOu4FZCVZEwCJkqXOfkUgN+zXtiUg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e1a3a5a5-3c1e-4c18-4117-08d402e27d17 X-Microsoft-Exchange-Diagnostics: 1;SN2PR03MB2381;2:M3ZP0Bv+4/+5xppWeRwNWffFfm4jyrT9rEJabCJZxs8TaH3tdRSqorb8/zG0VDzF0jmG1b38XJf+NlC9FZn10+D+S9a4DgC4Ig8bG7CdoON6CwYaEYC/naBCcVmpEd/+Z+1IhLy2ecjuAxz2IE/nwncKNtGZJxPcsF8CDCslKmlRcCMpY4+YweOotNKCGrw2X6HG3xpLsLO/j9W0H38oPg==;3:mqBfa/wuxSchVvAyOqTvGinJQKNkHdxh2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5X87lrNdim7123w0HlMeRFC94DAXYvLxxcaO0xpPRdDbO6MDiASkRWH/0HBLLk= X-Microsoft-Exchange-Diagnostics: 1;SN2PR03MB2381;31:HYxj69ApZ7u0SXDltUI+p4fx2ffMNqo197JbPWsRDl8GEIPiOP8CHYNyc88ypEmgI+NzqGqMmaaPUUcet5KDQtvPvOLqunYlZFML7UOqrNjmVOwoufWU/hNJTmg2i5/uilow37Mevo43rlyIRw3S2nhEJvBl53/KST9ft4XqGZ8QKTRLzE952f5H8Qy8wqI09u8RtZTImHaIlIgahLTKo0BtG70hV9qFOrKBzF0QlyxgIlgNYygUR57i7w/gGhdff3HFmFxKJDsUpROsChUnow==;4:4XGdtUdnmH4sY2IkqKozGXjE2zBvUZeBbmE47mEgQPuQRXXLEmBx8tbnIhRSLOtSKXTGYZ0O9ASxJO/vtIx4/EaJSFLYf5Wotlbi4VfefXFjKWQS5Lyq3MR4RA7ZePRMZ9/qAMQ/GS3XoPsj3vHbkdx1gTmibGXQbGrPShSkYKcU4akhqi3cNqJLsNeFi9zLHUkbCsXzzW3f0t1vII4+U1ImFo7aOgekYduouzDLmpB8HjV3VF6GSEWiSkQZb+ChgrWUjJgPikyGmOFkM0b8G4qPDMki1ONZXgXk6Y3UJhx0geJGCfob4n0zWa/CSfIljsMlWpuYsOwywzQ5o7fZQoVEowAu2ded4pGQAjJN56diLX/cL82/Q70dQrd6MjCBksVSLfim4JWNZih2DNTm1VBkwlmqI0FiEz36U+Zrio9YP5SEY0szeJ3Zh9I2apRyCmv7xuw0nP5cpe0H7xNGtKuQQcT9Gd84oE1HUCi2fCkdjB+PGw/2lxJiLLPZw6ur5oLzNhVOOQNAH+N+HT3JLA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13017025)(13023025)(13018025)(13015025)(13024025)(10201501046)(3002001)(6055026);SRVR:SN2PR03MB2381;BCL:0;PCL:0;RULEID:(400006);SRVR:SN2PR03MB2381; X-Forefront-PRVS: 0114FF88F6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR03MB2381;23:SpN3Op3Wahyg3qDPKUe8B0lOg9pFRy8rzIZdWjUB+?= =?us-ascii?Q?k1fFWHKoUOMiF2B00+la+eSUxNuyxo4s5sZ83l0DyJKVT6ozZ0PWVoy3tpC6?= =?us-ascii?Q?rf00kvXaTYV+GQu6uIAuXZ7JEd8Dpb0AW5yR3ujYDUQCkh/GlBM5Rm2OZPIJ?= =?us-ascii?Q?ft6qOR4sRCPL7QjHAUy1Ww+EFkBVgThBNeWMWANZubrKXCeYxhqu6reRS5gm?= =?us-ascii?Q?6yssegJ/UCsf8TRRP3fU6RqjEqiybMkwSgI4t2nuK10zgK56QLzruArHtxs6?= =?us-ascii?Q?p9pNBvixvrhroZzASswhdzybA+wBAqpnTdlPgzjaWg7dACpwHjZfdCKM/8nv?= =?us-ascii?Q?8egGSqotE2A69LF/dsyKvTJsL1yW6MmugFo0iK8rxRTcycw4a66KYecc9vBn?= =?us-ascii?Q?oQtbLiF4u4/Dlj21tdTnngl/A2DKPwV4blomjXCg8Id+D4ag0gJ5/tNpnTu/?= =?us-ascii?Q?2OgGPDlJ8kPSF7j12EJigPrrPDGREZnVC8h4JxFWSW0nTiHRey/1Tq3OSgAl?= =?us-ascii?Q?EsmQ+4iGvvGOWzJ0ZuRwz0MQzOWvroof3VcywKoS7YplhOrzUgjXiaefNRA7?= =?us-ascii?Q?euOI162k49G4oeoJHel4o+t0LuJOWca5w07tAxuiuLCqEhDsaqP8y8dhnTB2?= =?us-ascii?Q?nE0ivCDZ3hO3QBMHJa1v2XxmOcnn2gNANeqifE+FPDDlZb7ZcQ7rKe769QUy?= =?us-ascii?Q?Zat/7vpK9lotGduwfD/kzsVw1Van5xMVm64wBZJPMSQnth2CqgvOuh0NBYLY?= =?us-ascii?Q?sqzvT5bFtMbmYELDIu5lo/0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elccL3ErMs8BQzke41NgITf6d4l9ANBkRGH7GpAvAhEJc7iOhVSmY;24:Xbh50tIkAH4tq3Su1gGOejweIOnl+Nr7ZG9rwDbgrIEGGmEg1c7Y7Vh5t/H4PpqemXrKa3qF3snheSHtZYp/3c0QxS8aQU22NJWr5x6g1iw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN2PR03MB2381;7:VrjaRTIPlco3/58IsAGgsbU6LbolAhw2GvE0Luwmx7Cplp8mYyjDVg0LQivMctL/KSHWN7PkazXBX9r0me/qwURXLAu5P1zpzR8TQRq3ku3yg119X//2lrCICEJuBR+fXpMWrS4e3lyYBvOqV130YkEnQ4CP2CB/1gw9Pw+/aDWsFBv5f33p9tqf5BRVCu3IvPhCKhoOMy9NjVyms/7trvI3L0mP+MxB8LeNmsqFohvknXWeR/FaCd2oVnQoVgdgdffKJo1dOESG9zVIs2FBiAqMdzUAqslsOUrIyvdj08kvps1UMjJ9VZaw9D+mn7jaAyjFfg1QzeEtBT3v7EhSW9Vv9fYj3jaf+xjBzoYZfbo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2016 05:38:34.7970 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2381 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1689 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 | 28 ++++++++++++------------ drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-exynos.c | 10 --------- drivers/usb/dwc3/dwc3-st.c | 1 - drivers/usb/dwc3/ep0.c | 8 +++---- drivers/usb/dwc3/gadget.c | 37 ++++++++++++++++---------------- drivers/usb/dwc3/host.c | 12 ++++------- 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 +++ 19 files changed, 144 insertions(+), 115 deletions(-) -- 2.1.0