Thread (6 messages) 6 messages, 2 authors, 2022-08-24

Re: [PATCH] usb: host: Use helper function to get endpoint

From: Khalid Masum <hidden>
Date: 2022-08-24 20:37:03
Also in: linux-usb, lkml

On Thu, Aug 25, 2022 at 1:24 AM Alan Stern [off-list ref] wrote:
udev is not a usb_device structure; it is a _pointer_ to a usb_device
structure.  The pointer is created when ehset_single_step_set_feature()
calls usb_hub_find_child(), but the structure itself gets created long
before that, when the USB device is first detected and initialized.

You can see this happening where hub_port_connect() calls
usb_alloc_dev().  The ep0 field is filled in by hub_port_init() and the
routines it calls.
Thanks for clarifying this. That helps a lot.

-- Khalid Masum
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help