Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-27 Thread Felipe Balbi
Hi, Heikki Krogerus writes: > On Tue, Apr 26, 2016 at 08:57:39PM +0800, Jisheng Zhang wrote: >> @@ -232,22 +265,44 @@ static int xhci_plat_probe(struct platform_device >> *pdev) >> if (HCC_MAX_PSA(xhci->hcc_params) >= 4) >> xhci->shared_hcd->can_do_streams = 1; >> >> +hc

Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-27 Thread Heikki Krogerus
Hi, On Tue, Apr 26, 2016 at 08:57:39PM +0800, Jisheng Zhang wrote: > @@ -232,22 +265,44 @@ static int xhci_plat_probe(struct platform_device *pdev) > if (HCC_MAX_PSA(xhci->hcc_params) >= 4) > xhci->shared_hcd->can_do_streams = 1; > > + hcd->phy = devm_phy_get(&pdev->dev,

Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-27 Thread Felipe Balbi
Hi, Jisheng Zhang writes: >> > +static void xhci_plat_phy_exit(struct usb_hcd *hcd) >> > +{ >> > + if (hcd->phy) { >> > + phy_power_off(hcd->phy); >> > + phy_exit(hcd->phy); >> > + } else { >> > + usb_phy_shutdown(hcd->usb_phy); >> > + } >> > +} >> > + >> > static

Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-26 Thread Jisheng Zhang
Dear Felipe, On Wed, 27 Apr 2016 08:35:58 +0300 Felipe Balbi wrote: > Hi, > > Jisheng Zhang writes: > > Marvell BG4CT SoC needs two phy: one for usb2 and another for usb3. Add > > the calls to retrieve generic PHY to xhci plat in order to support this. > > > > Signed-off-by: Jisheng Zhang > >

Re: [RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-26 Thread Felipe Balbi
Hi, Jisheng Zhang writes: > Marvell BG4CT SoC needs two phy: one for usb2 and another for usb3. Add > the calls to retrieve generic PHY to xhci plat in order to support this. > > Signed-off-by: Jisheng Zhang > --- > drivers/usb/host/xhci-plat.c | 87 > ++---

[RESEND PATCH v2 6/7] usb: xhci: plat: add generic PHY support

2016-04-26 Thread Jisheng Zhang
Marvell BG4CT SoC needs two phy: one for usb2 and another for usb3. Add the calls to retrieve generic PHY to xhci plat in order to support this. Signed-off-by: Jisheng Zhang --- drivers/usb/host/xhci-plat.c | 87 ++-- 1 file changed, 75 insertions(+), 12 d