Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965788AbcJYLLX (ORCPT ); Tue, 25 Oct 2016 07:11:23 -0400 Received: from mail-sn1nam01on0087.outbound.protection.outlook.com ([104.47.32.87]:63968 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751905AbcJYLLT (ORCPT ); Tue, 25 Oct 2016 07:11:19 -0400 X-Greylist: delayed 1521 seconds by postgrey-1.27 at vger.kernel.org; Tue, 25 Oct 2016 07:11:18 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 0/3] inherit dma configuration from parent dev Date: Tue, 25 Oct 2016 16:26:25 +0530 Message-ID: <1477392988-7253-1-git-send-email-sriram.dash@nxp.com> X-Mailer: git-send-email 1.7.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131218666192064361;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(6039001)(7916002)(2980300002)(428002)(199003)(189002)(8936002)(101416001)(68736007)(6666003)(356003)(4326007)(2906002)(50986999)(305945005)(33646002)(8666005)(7846002)(5003940100001)(189998001)(586003)(47776003)(46386002)(36756003)(103686003)(105586002)(4720700003)(42186005)(5001770100001)(48376002)(229853001)(106466001)(11100500001)(626004)(87936001)(92566002)(45336002)(52956003)(5660300001)(97736004)(42882006)(86372001)(69596002)(960300001)(81156014)(90966002)(50466002)(81166006)(50226002)(8676002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB2369;H:az84smr01.freescale.net;FPR:;SPF:None;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD032;1:1drO2W1SOEjCvMm17NtibJSBqCFlQhAXOU3Ahfvhfkh7L34TZJyYiwXge1eMOgbNVwdEU316UauYD+NJUBFCuFwSmo4ydBmgFHH70e5d3qZDDPZ2qr+xvfTdDgQzWDdOrgAppFUdP88w0V+nreEZcnr/647v8QC2LNUe6X1Vvrdp4h3VS8qdcs1BYUZFrcXHJi7It5oXjOH/7F6TQHEXHFK4tUPAhDlYGgYUqW+avqj4IOIcepmi9EL81f0CVHZCChJzkmuqPrRS0GwUEABjToUyLyHAeAYTMxwawh+0IbZhKvZIC517Dgqz3htIE0iD7X9a3PL5fFzK1idVYk9oumon5eSxC1FA5zzJw8d+R68bNc9QgJKkoanBCNgtvwzTAV7+HsgyNLcfJhRZ/84HjznfYNCuxoP5jjs98qbMAjvQo9DXDB+xa3mxvKedkP7emTE1pK53cWBI6QaBCnRqqhXXgW+y86xkNLitMvZOg2iV607rhgXkss++HVUT8wNKgsqsHDNAQ49YG/EMlbmTZ8PE5IdMeh9G585hxHTZ2VYYo7Tw4t0zpy7sl6Ein/tSq9XISevnlK1eYLDqjVzQI0gHO9TVeu7tzivIJjZ/G9tD9CD+NE9jU9lv7gLyHtH8pDBl27Qa26uDYsLY8p+/tQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cb30f647-5c53-494c-ee08-08d3fcc5a4bb X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2369;2:fqrc8sl1ZczLmEa+AUifwOoR5JHfXUySpIlmIp9FMhjMfj88Lh8k0k1lGIQK/tKY72IQwN5ArtHe9+dj/0FJEiY2SxpDaPL2emziMUC3k2wCqKaLdKIey7ZTRhWswvo6WzO4ctx74TmR9gVsGfCPuYj2qOEYa5IIDeICdh/xLANX4/2dTJq8xGZLgUAl2+TzHEeOHFIklV7wCJYwZeHHUw==;3:SdvfWYcIhBk5+4TxHEusHk0IaW9+tRNuQqTSAY4kcBO8b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LvMwRY=;4:PU78P7tqAMckKzTTCrMKl+e83SxeU7oK1Wd2yFpC7nYjBXHeG3lG4rekFLKEtwWSAoqZ4kDwCCxWXb59LUD701YZFnpZEcNl2YoE+tzV9JeQTY6z5BbuZdiy28fWijhXw2IwOqTdJ/ujm6JKKGie2re3UhenpsZ2MBut4shXrleg5ppOjw8tdHYvJMvHD6grcTW2Y2ztJdcgy4kY9Go6nwBlRcxkt/16fMw+WiHDzVfogs69PmEOMxc2BsHcfMurByg1aNMxZc0LDcGgdfKUIiexCS3USfnD2aVmpuwjCjCW4uXVgBvdixxBBJbfWpj1+c0TXqe4V0XAMBHsjdom834P5hVSmnU5Rph5z4xY1J2JGqHA8nHWLrwHm0CEXkGWc7lYIMH9NWiFDLX5EJgqLkyA5i/fZLYiHx67MA5by9rLT9ALPy8PtRY1zBih3h7IVCiMaWfUiMRkCpfa+uWKINJmsjsOm4Dqvh5vp/jYJquJNQVOZSN9Gc838FwqDql0 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)(13023025)(13018025)(13015025)(13024025)(13017025)(3002001)(10201501046)(6055026);SRVR:BN3PR03MB2369;BCL:0;PCL:0;RULEID:(400006);SRVR:BN3PR03MB2369; X-Forefront-PRVS: 01068D0A20 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR03MB2369;23:IDJQ9Y1h+krbFt0JylXqMNoq3R+5oUW44Eub8yE4E?= =?us-ascii?Q?2OtUQwDrEGf8Kkqd5Jamf0VFjv5TZ4C/nDEAjn0RfiHiIrcy7J6biWypqRR3?= =?us-ascii?Q?Q0biKzRDjg9eQdLw4HnqXwEPvpdK5IUKQWxCRQLs1IDv/u0DaG0a1TBvAICR?= =?us-ascii?Q?z8eIxf3SvfCDoSwVs6KkekV7Vn7YtsKkOB6zG6cN5GjAOMyUKi+dqiUatchG?= =?us-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uKLrsLvENj3qNxEAU4S4vHeICWwG/mnBIfIae1?= =?us-ascii?Q?4/X3siWRMoIVzRjtCJcr+ohtJCYGxlzOuMrotDnWRE9PEkiykRk9ZcMyzOVX?= =?us-ascii?Q?h+f3bpTIKp7w/ZVefmKEjLrWSKPOH2APwIcZ8mIV3klrmcj4bH/Ss68AaALH?= =?us-ascii?Q?ZEsziMKxm17UsKbL4I=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2369;6:ii14vCM3DxqVKuXwLYUVJRFer0DZIlumQ4f3V6nLWd/91+r/KpXudhzEFFMK3btgvALF7K+hXJ8mywGO1GutLeZDfiXic4wGdBu+3NTSSupWVzQIro3Q2SDH0W5o9m31m5vocvv/Ov7Ks2Xgcpz0i+5Zqaf0FveMLc34GBWU+XpwnBKXqvXqVN3ksS0Y0dJXOdn6+wzlqKUh4BBuBJA/6zaXKB+WicNjd9DXD+noaQqR2wXJ6DYK29m1AeyC57h8r2cREUNFEp7Pl7OsfVQP3Fo4rLjnQx9kZp0rK2MN2JN237+DdPZlNL3MvV5avxWR;5:vnE52fo+louVqFImzM/mKTE1DurnphFa7kIZdAEcLit/8SO3C2Y52qXVZb82hE+GIzODJMb+6UQA3uBu1rcq7KyftvqyZIR5oQuh23BnTqIBGq8KKjkBd7TfBSjhtbpiSS2+HM7+TswmsLqNx90Vg0dD5L4FgHtl5OnK5R9cqnFbsB5BMZz4m+UT3Zjo0oFy;24:aGr5lG6O7N+Oxf9rFx5j8AM+VH7s1Wi/PkX3IzaKRpAmZUIFdY98BUto+W4PSibJ5CTu+HqQbQGKpnd9N+PxzNsIJP01HyLFcrwRbqPwIV0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2369;7:wEpe0UN8usoMr+cnHviQJCECKN5v0yyH9v7nek5IsEx+eicZ1IjazhX6gMTYBunV7TMXFs5sR7jH43k/ch0Wk3s64sYli369wk6F3rg4u6DVtcinuAhj8sfc0oHa7vfpg9M+GUMghdZ63sKAfKkTCuNVPwjv7mnLU+3Z+SN8xwhA6fSca+Q+QVVMio+h0dOTe5P61gejfWIsxh0HVE2jrvqCKCsRHEHDx3YXA9Db8S47iugGlamvV9+HWX7B8J//VCiefUNXfVivx1D3gm6MQyEIzLbcxpTeeo6nrIg5j0dWq/mzT/t64BFtcuAtdDE+3vhw9tVKqLb/iPWcjLwzRlUO14VzkMjW8/F2+8WPNk8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 10:56:58.9568 (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: BN3PR03MB2369 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1555 Lines: 36 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. Sriram Dash (3): usb: dwc3: host: inherit dma configuration from parent dev usb: dwc3: host: Do not use dma_set_coherent_mask usb: dwc3: host: Do not use dma_coerce_mask_and_coherent 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