From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cooper Subject: Re: [PATCH V3 6/6] usb: host: Add ability to build new Broadcom STB USB drivers Date: Tue, 6 Nov 2018 14:33:04 -0500 Message-ID: References: <1541453493-34981-1-git-send-email-alcooperx@gmail.com> <1541453493-34981-7-git-send-email-alcooperx@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: ": Linux Kernel Mailing List" , Alan Stern , Alban Bedel , Alex Elder , Andrew Morton , Avi Fishman , bcm-kernel-feedback-list@broadcom.com, Bjorn Andersson , chunfeng yun , "David S. Miller" , DTML , Dmitry Osipenko , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Hans de Goede , James Hogan , Johan Hovold , Kees Cook , USB list List-Id: devicetree@vger.kernel.org On Tue, Nov 6, 2018 at 1:22 PM Arnd Bergmann wrote: > > On 11/6/18, Alan Cooper wrote: > > On Tue, Nov 6, 2018 at 6:09 AM Arnd Bergmann wrote: > >> > >> On 11/5/18, Al Cooper wrote: > >> > >> > + > >> > +config USB_BRCM > >> > + tristate "Broadcom STB USB support" > >> > + depends on ARCH_BRCMSTB > >> > + select USB_OHCI_HCD_PLATFORM if USB_OHCI_HCD > >> > + select USB_EHCI_BRCM if USB_EHCI_HCD > >> > + select USB_XHCI_BRCM if USB_XHCI_HCD > >> > + select USB_XHCI_PLATFORM if USB_XHCI_HCD > >> > + select BRCM_USB_PHY if USB_OHCI_HCD || USB_EHCI_HCD || > >> > USB_XHCI_HCD > >> > + select GENERIC_PHY if BRCM_USB_PHY > >> > + default ARCH_BRCMSTB > >> > >> Is there a build time dependency on the PHY layer? If not, I would > >> suggest > >> dropping the last two 'select' statements. I would also suggest > >> making the dependency 'depends on ARCH_BRCMSTB || COMPILE_TEST' > >> to allow building it on other architecture for better build testing, and > >> dropping the 'default' line. Just add this to the defconfig like the > >> other > >> drivers you have. > > > > I added COMPILE_TEST and dropped the last 2 select lines. > > Most of our other drivers default to "y" for "ARCH_BRCMSTB", would it > > be better if I changed it to "default y"? > > No, "default ARCH_BRCMSTB" is better than "default y", but I'd recommend > to just not have non-essential drivers default-on. > > Arnd Okay. Thanks Al