Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936636AbcKKUbd (ORCPT ); Fri, 11 Nov 2016 15:31:33 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:60884 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936471AbcKKUba (ORCPT ); Fri, 11 Nov 2016 15:31:30 -0500 From: Arnd Bergmann To: Felipe Balbi Cc: Sriram Dash , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, mathias.nyman@intel.com, gregkh@linuxfoundation.org, suresh.gupta@nxp.com, stern@rowland.harvard.edu, pku.leo@gmail.com Subject: Re: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration Date: Fri, 11 Nov 2016 21:31:09 +0100 Message-ID: <4169621.fqZP0OpVbR@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <87fumzha30.fsf@linux.intel.com> References: <1478766001-26463-1-git-send-email-sriram.dash@nxp.com> <1478766001-26463-6-git-send-email-sriram.dash@nxp.com> <87fumzha30.fsf@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:nAohLIzi2amyhKcMTD9TyurP4UjeeIBoYtm9f8MZTMfIqgpgAUi qr65mrQMyYF9DrTJsxqEoVWlrcWhaVZNOXHRiYDzr1kq51YKawbLB+AJVrUzhEVe6tk6ACP /lM3gOjQRWQ1+7DUMVQleoG36zwYxgHHcfkts4MODo79Ns/PEI2lF8vEQIgLcvaAaJcUoZ2 Tv2cYKCImas/HlOJ/ysuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:M9Fg7gM9u6Y=:oLZtl5PX4S9wQktLXJNYd+ TKGtVq1H4gHxUqxzvm9kfujzyzoys4sfIKNWYPlhY3W0wHz0dpP1H9yRKS8bTXgh5dfZVPcoq Yh60tul42ucA8LAg4eN7QI0xmp23hSINnGH7UG/p8lHWxELO/ZUgCI72dGay267hezLFvzeiS VLDjKKo7EvI4BktVnuXO0Xhxjob9Mtf3ycmoeSXW/klvmn8Y066QUYQT4RKwXAq9OnK95dApK LsUyAR2sIrRLtXH44ZEj60h5m8xPAskwPVWkg0VLpetb1EQzJ/3/m2yzc7u+boMll45rdODA9 AJtdEdZcyNY4jg9vOtVXfZPINlKEQQOSNs4r45/Mhfwp/R7pioqCG5McYqHRS8sv11K2Nmk2i CTfjYT5YHEqy+i3XsEK/Mfd8hoggvgAbslzv0EmmPPSmcRMhKjlk79urhPqAUpCzabAiAeJV1 YG5OZTrelXabb+plgCsMUDJDSVx9Z/18/CVF8XcUn7m/Ed9TrNjEOLNVOuYxFgnXkOxzkS6A/ II3uQMrDSbiVThinQon+l+gsS4bqS/4aGl2VUh6xDJsRUjFrta91Q++wMbfyxyoxfjEMbIcRY pdF6zcuJr54XNeIAYuSbo0qYQsxpVMTc2H55Kvk1Rf80IwhcYXO2CZsRL9rYTqi8DARP8cUik YO1wUeugZ3z5wlO38pxQWjWRRLiQb36CO6TkzTtyMTu/rDk0XcjWZLBo36mymRUWhclnJL7PR mU1jgOU66SW0HROR Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 22 On Thursday, November 10, 2016 1:02:11 PM CET Felipe Balbi wrote: > > @@ -123,8 +119,8 @@ int dwc3_host_init(struct dwc3 *dwc) > > void dwc3_host_exit(struct dwc3 *dwc) > > { > > phy_remove_lookup(dwc->usb2_generic_phy, "usb2-phy", > > - dev_name(&dwc->xhci->dev)); > > + dev_name(dwc->dev)); > > phy_remove_lookup(dwc->usb3_generic_phy, "usb3-phy", > > - dev_name(&dwc->xhci->dev)); > > + dev_name(dwc->dev)); > > this looks unrelated to $subject. Care to explain? bus->sysdev is used for retrieving any information that comes from the platform (DT or otherwise), and the phy lookup in has to be done through sysdev as well because the platform cannot add it to the child device it has no knowledge of. When we set the sysdev to the parent, the phy lookup has to be added to that device as well, rather than the child device. Arnd