[PATCH 07/11] MXS: Add separate MXS EHCI HCD driver
Chen Peter-B29397
B29397 at freescale.com
Sun Apr 22 21:44:10 EDT 2012
> 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.
More information about the linux-arm-kernel
mailing list