[PATCH u-boot-marvell 04/11] usb: host: make PHY handling more generic
Marek Behun
marek.behun at nic.cz
Mon Apr 20 12:40:03 CEST 2020
On Mon, 20 Apr 2020 12:20:38 +0200
Marek Vasut <marex at denx.de> wrote:
> On 4/20/20 11:27 AM, Marek Behun wrote:
> > On Mon, 20 Apr 2020 03:41:49 +0200
> > Marek Vasut <marex at denx.de> wrote:
> >
> >>> + ret = generic_phy_set_mode(&phy, PHY_MODE_USB_HOST_SS, 0);
> >>
> >> How can this ever work with EHCI , which is HS/FS/LS , but not SS ?
> >>
> >
> > Marek, this is how kernel does it in
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/core/hcd.c#n2628
> > First PHY_MODE_USB_HOST_SS is tried, then PHY_MODE_USB_HOST.
>
> That seems unnecessary, considering that we already know SS-mode will fail.
Hmm, I guess phy_mode could be passed as a parameter to the
usb_phys_setup function.
More information about the U-Boot
mailing list