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 17:58:14
Also in: linux-usb, lkml

On Wed, Aug 24, 2022 at 8:40 PM Alan Stern [off-list ref] wrote:

Even this is awkward.  It's silly to look up the endpoint in a table
when you already know that it is endpoint 0.  Just do:

        ep = &udev->ep0;

with no need to check for NULL.
After further checking, I realized that  usb_device udev is created by
ehset_single_step_set_feature and depends on usb_hcd and port. So I do
not get why the endpoint is at udev->ep0. Can you help me with this?

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