Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754290AbcKJIWf (ORCPT ); Thu, 10 Nov 2016 03:22:35 -0500 Received: from mail-sn1nam01on0050.outbound.protection.outlook.com ([104.47.32.50]:47552 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752371AbcKJIWc (ORCPT ); Thu, 10 Nov 2016 03:22:32 -0500 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 v3 0/6] inherit dma configuration from parent dev Date: Thu, 10 Nov 2016 13:49:55 +0530 Message-ID: <1478766001-26463-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: 131232397492106717;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6039001)(6009001)(7916002)(2980300002)(428002)(199003)(189002)(8676002)(81156014)(106466001)(33646002)(81166006)(50986999)(960300001)(86372001)(50466002)(42186005)(6666003)(189998001)(103686003)(586003)(101416001)(48376002)(7846002)(305945005)(8666005)(356003)(4720700003)(68736007)(105586002)(626004)(2906002)(5003940100001)(47776003)(46386002)(42882006)(4326007)(8936002)(52956003)(90966002)(97736004)(5001770100001)(36756003)(92566002)(45336002)(5660300001)(50226002)(87936001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2884;H:tx30smr01.am.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD028;1:NlH+1wWe1YkhnohjpBvMeitk4gZvgXTkYR1bnifAtUL5s6mYWuF+oeziMwEnr2VlXEU6P2FPETVUMZczCFx032sZrlgT5FYMEGRz8GqZ/JzL1uZJ0+BjaEutx0aBO9Lv5sDZKJuAgz2kzA2w2LKcpKK8ZQcyJg5sfY92jhb1Mr/DN02dVnpV7Hy2kB/Bksx6bF3Qeth62bKzj20hWq3JMfWEb0qLSZcFVlsNPLDrovHnYrtFIPHaSdv2N2/YNoYIaP3ACMJOcZLMJ78sMWfeH2IDvsmoVbJI6TmCbSlxWETs4duK4xx6MiknYXYmySbw3s1O+KLpfPjqWH5/YZ26DeWMab+xl/vBNe7GeG7iVUkJmIlXptmLiA1KC0dKT0MWNvorBEjnEBlyra3LRWYqnknrlcMILKzWOQ6T8L5It7RDXAHpTMbp79+i1RMg1yPGGkweIo/H5f6nx5QqriEOZt4F9zqP5Kw+AYauATDnDVgbEyJaJPZhjy1HzxpA6wwV9k56q7lUPPzWF7srWActu6+VXxG6iimsaJB/AVXB7tpKcRBDKrjc0LmHIPwK8E16QK0SqpURuZVbGtfgfGytzswiJhtHETRQnk99vUC7TFKcT1/WmyKvPX6IhXgjZRoVi6LT0AqRtiIbEz2tHwch3w== MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2884;2:4QK8gRs8oS+KzNk3q8uEf2expBxhX/bFkIkgeSGApZ2JFAxqG0VuR5zGsD1bSSd7wPV/K4AGIDkKYNOeXQZxFE9V8O08tbuUeDYXNcX5JinvdOnI+iStAnf2Rk7tLujQcmlpKus2MRrADQjWvNfvIChcV7CPf9pFrH9YlqAoweo=;3:IMijOJxj+npbksTmn48HzI/LlNyyiFX7DlRlMaSxQVLavyBkBJn7WvBNjCUOYA/A97KZP7niGFcXOHKJbFzTWSRFT4UWdE93iu1fUMYZ0+7DVYSjw94VcOBSrldhe6fCIsxEoOSyHvs3d4JjYnHp9kXTKwhCnAyIi45PUlkM1jvBCrB3pZubIcgN9UZzQqqzYAeK4QG/VQF5wETUWeSmVN3iOhAcp7T/O3wbKrnLxfufaWbjEaQfLL+56ohZ50W2Lzb/LYNZIROSag+kSQZPAg==;25:sBKx9BUE2rk4STxBjJu6JmmmlMDbTjFDU87DBcnaa7b7feksjLQqXaaGyYg3sSFQAcLycsecxX7D/bB0I261TgrVFEtkRenuFdlMD4jGzrk06l2wTYHHh3F3ka8PgLedQWK+oqwUIqJKu53LB2WGwR8DFsOMhkc9uUTfQzV2OGg7fhlZiQ2FeuTVXb6bteD4EmYgs7L4HClcuRSTZrCVztaNpONllz2ZoxXFgILQDuIdK/H68nvhC/LHcn2Z9ypj1dRz3zqiEzr3c484pGfEcNrSt0X1cJLaoupS3EmvhteTeSvwM+D5hjOMuUiCHUgUGmvUEMfiB2+lKDm53vn5Dp3yTxGZszg6SCgNiTNBd0WYH6if0h95FdsZHcO5BJ3R4XsnuWQgEh5V/AtAEQo9xH9pa8RIojyprsgpvAm2puLKzGaEQyy+RWmFa9RKsK1NxSGDjdWcBRrcQVOQJUOX9w== X-MS-Office365-Filtering-Correlation-Id: 5f23aeeb-b5ed-4809-8c3d-08d40942b5f0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2884; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2884;31:ITq2cpC60a5fyYTTBF3PMHdBW6w0PMN/2NddRCne2rZHgxQxh9jrO2/UIOIClxFbrr0p8ehGz8Iw3SX2TGTjIemdCH9v3pXStgWEqVY0rlg79BIC8mf1Bwt+YWVCTz4drS7yVQSU8jAUxiW2kESEtRAjTJL4Pud2JnbYB+JIC5saxqNAIgeQnHGjcW4s8E9Z1SgiFvlLZ7nOcnnrecYIUeqtUwC5h/KJgVWvy+7gx1q6/CIgcGQDkdy0MRhJQgOawCRtDnM8/hGeT73elpk7ZQ==;4:yFeM9jJgmaopNYyV4Y2CB/z4NR8Xpdt5qa4G/o1xp9pQ4IqUTQLL+SiF8r/SfiAA/rZvY1ojG4nVACC8k1ENMDZkG71LYIEZE84fwrKsBg4FMwbsk679B04c5cBRFlZ8biFgfkNLi9HKT7e82Fb9eky/njobBH1DN2AGC4K9cNNxy0atA9tnZ9GysLgup6bz+urJWhqKOZSTV7meTVMFL0h4pp+2vP5CtFL7wrAwR2L+G29o1RoWn4mpmwpBFBEe/VfaRaKQUvcdncBRU62h0kiA85VK7GH5lUlmJmOx/qTY92hstb06+1z9O5mlektwhFR1gdJ514t8WNNsBEVYviiImdI4yjMZ0xKIU4yONq8wT0sld/mqqEtXGHfzoiqFvI1bZ4psW5kTurzEsguIkkBq1gIbHobeqXFVP5itnKI7ZtokwOb74ZSkveYl5JBGQ4r0R6Wg2CXD1WxlPkqPuw+xk5De0oZqtqWdHk/BnZBUgmqjlOHfFLZm10JXTaQGAQjFkSSBwY1SqiZug9PjFQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13018025)(13024025)(13023025)(13015025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:BN6PR03MB2884;BCL:0;PCL:0;RULEID:(400006);SRVR:BN6PR03MB2884; X-Forefront-PRVS: 01221E3973 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2884;23:p6V4Aep9H8AarHCaY+jE2fTIXQei9ZJ+QLNJJVMvT?= =?us-ascii?Q?/1fOG+b5y4rFTDU60xjUS9yv9mBRIJgrl08tx4fSUFM3lMLRcfql41fnXs8+?= =?us-ascii?Q?qrjgG+L0bqyMdGjhPUIW2uHb/nwxhkexaFLZpcuNjHjHCZWhV+H7eqOmZUUQ?= =?us-ascii?Q?h9K1nNklcoGUbaGK71nX/o1VVDKD3stWi5JAnVdFREUPEfxGru1tLhu0uKVA?= =?us-ascii?Q?e0k2zZ/eQBLu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lPtHfG2f5xLa5jp5gPb2LI1IqQqm3wcNMGJQKa0HFFoEiTpZWon2hYahYI+qxA1qR2D5hWX1HlYxXfsFXMM5Fpm/vTvK/wo3Ejk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2016 08:22:28.9142 (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: BN6PR03MB2884 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1688 Lines: 39 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