Re: How to detect connection on USB device port?

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

 



On Wed, Dec 7, 2011 at 4:44 PM, Felipe Balbi <balbi@xxxxxx> wrote:

>
> Yes, I'm just concerned if that's something that should be part of
> gadget or PHY layer. It can be done on both places, easily, and I like
> your idea for the contents. Will see what I can do quickly. Maybe just
> add a "status" enumeration to struct usb_udc and add a udc_set_status()
> call which will update that field and sysfs_notify() the correct
> attribute. How does that sound ? UDC drivers would be required to call
> that correctly though.
>
Yes, just like we do for speed,  we can add "status" at struct usb_gadget,
and create sys entry at udc-core.c.
The question is how many status are needed?
connected/reset/addressed/suspended/disconnected?

> --
> balbi



-- 
BR,
Peter Chen
--
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