Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755205AbbDTMdc (ORCPT ); Mon, 20 Apr 2015 08:33:32 -0400 Received: from mga02.intel.com ([134.134.136.20]:47061 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755184AbbDTMd3 (ORCPT ); Mon, 20 Apr 2015 08:33:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,609,1422950400"; d="scan'208";a="697933013" Message-ID: <5534F296.8000104@linux.intel.com> Date: Mon, 20 Apr 2015 15:35:34 +0300 From: Mathias Nyman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Roger Quadros , mathias.nyman@intel.com, Maxime Ripard CC: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] usb: xhci: plat: Create both HCDs before adding them References: <1427977409-7671-1-git-send-email-rogerq@ti.com> <1427977409-7671-3-git-send-email-rogerq@ti.com> In-Reply-To: <1427977409-7671-3-git-send-email-rogerq@ti.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 38 Hi On 02.04.2015 15:23, Roger Quadros wrote: > As xhci_hcd is now allocated by usb_create_hcd(), we don't > need to add the primary HCD before creating the shared HCD. > > Creating the shared HCD before adding the primary HCD is particularly > useful for the OTG use case so that we know at the OTG core if > the HCD is in single configuration or dual (primary + shared) > configuration. > This doesn't apply as commit 7b8ef22ea547b80475ac7feab06fb15e0fc143d8 usb: xhci: plat: Add USB phy support changed xhci-plat.c since. I rebased it, and the changed version is sitting in the for-usb-next branch in: git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git But it appeared to me that usb_add_hcd() and usb_remove_hcd() will also call phy init and remove functions. As the order how hcds are created and added would change I'd need some more eyes on this to see if it will cause regression. Or maybe in the best case we could get rid of the "Add USB phy support" patch as we will call xhci_add_hcd() for the first hcd much later, and it could maybe init the phy for us? I don't have a board that enumerates xhci using xhci-plat.c myself. -Mathias -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/