lkml.org 
[lkml]   [2022]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] usb: host: Use helper function to get endpoint
On Wed, Aug 24, 2022 at 8:40 PM Alan Stern <stern@rowland.harvard.edu> 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

\
 
 \ /
  Last update: 2022-08-24 19:59    [W:0.073 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site