[PATCH 07/11] MXS: Add separate MXS EHCI HCD driver
Marek Vasut
marex at denx.de
Sun Apr 22 22:11:15 EDT 2012
Dear Chen Peter-B29397,
> > NOTE: I still haven't figured out how to enable/disable the disconnection
> > detector, it can't be enabled all the time, so I toggle PHY stuff from
> > this
> > driver, which I doubt is correct.
>
> Hi Marek, I have already explain how to use high speed disconnect detector
> in early email.
>
> > +
> > +static irqreturn_t mxs_ehci_irq(struct usb_hcd *hcd)
> > +{
> > + struct ehci_hcd *ehci = hcd_to_ehci(hcd);
> > + struct usb_phy *phy = usb_get_transceiver();
> > + uint32_t status;
> > + static uint32_t discon;
> > +
> > + if (phy && phy->otg && phy->otg->set_vbus) {
> > + status = ehci_readl(ehci, &ehci->regs->status);
> > + status = !!(status & STS_PCD);
> > + if (status != discon) {
> > + discon = status;
> > + phy->otg->set_vbus(phy->otg, status);
> > + }
> > + }
>
> Conflict with your phy interrupt code.
Yes, this should have been removed, rebase issue. Damn
Best regards,
Marek Vasut
More information about the linux-arm-kernel
mailing list