Re: otg: sharing resources between host and gadget

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

 



Thanks for the answer, Peter.

As far as I understand You are talking about the second variant when
new device is registered / unregistred.
How about suspend/resume variant? Is it possible to report -ESHUTDOWN
if otg works as a gadget but libusb is trying to access a host or may
be bus should be emulated with only roothub on it but not taking
control over the bus ?
Or suspend/resume should not be used for the otg ?

On Mon, Jul 23, 2012 at 2:17 PM, Peter Stuge <peter@xxxxxxxx> wrote:
> Valentin Sitdikov wrote:
>> How should user-space applications handle possibility of switching
>> between host and gadget mode (for example libusb if controller is
>> working as gadget ?)
>
> When switching from host mode libusb simply sees that the other
> device has disconnected, and libusb is not aware of any gadget
> connection that takes it's place.
>
> The libusb API is so far only for host applications. Feel free to
> suggest API additions which would be helpful for you. As always you
> speed things up if you also implement them.
>
>
> //Peter
> --
> 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
--
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