Adding OTG support to xHCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Felipe, all,

I am adding an otg driver for dwc3 core (hope that I will release it for
RFC soon) and I have some questions about the xHCI driver, since I guess I
need to do some changes in the xHCI to regirtser itself to the otg.

First, I understand that there is secondary and primary hcd ? can you give
me more insight on this ?

Second, I see that in the xHCI-pci-probe the usb_add_hcd is called on the
secondary (right?) while the irq are set only if the hcd is primary (so
how it works?)

Do I need to change in the xhci-pci-probe to be something like this:

otg = usb_get_transceiver();
if (otg) {
    retval = otg_set_host(otg, hcd_to_bus(xhci->shared_hcd));
}
else {
    retval = usb_add_hcd(xhci->shared_hcd, dev->irq,
			IRQF_SHARED);
}

I will really appreciate your guidelines,
Thanks,
Ido
-- 
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux