On Wed, Dec 15, 2010 at 04:44:14PM +0530, Pavankumar Kondeti wrote:
Some USB controllers have common resources (IRQ, register address space) for Host, Peripheral and OTG. So HCD is added only before entering into Host mode. Root hub initialization is done in different steps to decrease boot up time. But this makes B-device difficult to meet HNP timings. Hence eliminate delays involved in root hub initialization for B-host.
I wonder if this is the best approach. Would it be easier to not touch usbcore, probe the entire stack during boot but have a "core" layer handling synchronization to shared resources ? Maybe you could make your device an MFD device that allocates platform_devices for its children (HCI, UDC, OTG, etc) and pass in a bunch of read/write functions as platform_data for them to use as accessors to shared register space ?!? Would that work ?
This patch also marks hnp_supported flag TURE for B-host while
s/TURE/TRUE -- balbi -- 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