RE: [PATCH v2 01/25] usb: otg: add unified otg_notify function for usb_otg_event notification

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

 



>On Sat, Dec 11, 2010 at 12:54:59PM +0800, Wu, Hao wrote:
>> >On Sat, Dec 11, 2010 at 12:40:44AM +0800, Hao Wu wrote:
>> >> This patch adds a unified otg_notify function to otg_transceiver data
>> >> structure. It is used for USB host/peripheral to notify otg related event
>> >> to otg_transceiver.
>> >
>> >Will this work for all OTG devices?
>>
>> This function will be more useful for OTG implementation which uses
>> host driver/transceiver driver/peripheral driver architecture.
>
>So, no other?
>
>> In that case, USB host/peripheral needs to notify otg events to
>> transceiver driver (depends on OTG implementation). So made it
>> A unified otg_notify member of otg_transceiver data seems to be a way
>> to share/reuse the same code in similar implementation.
>
>But no other hardware is like this today?

Intel Langwell and Penwell have almost the same implementation, so they can share the same code.
For other hardware, I am not sure, but I had found some implementations accepted in kernel are different.

For kernel OTG implementation, we did not have any spec like host side EHCI or something like peripheral side gadget framework to follow.
So it seems quite hard to dig out a real common code for otg. So I hope more comments on those patches, then i will try to make it really useful to other otg stuffs.

BRs
Hao

--
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