lkml.org 
[lkml]   [2023]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re: [PATCH] USB: add usbfs ioctl to get specific superspeedplus rates
On Fri, Aug 04, 2023 at 12:06:15AM +0800, Dingyan Li wrote:
> So after usb_device_speed is extended with Gen2x1, Gen1x2 and Gen2x2,
> it feels that enum usb_ssp_rate becomes useless. Is it okay to just delete it?
> I'm asking this since it is also used in several other source files so the fix may
> not be as trivial as it looks.

As long as the file is being used by other source files, don't delete
it. If you want to fix up all those other places and then delete the
file, that's fine. But of course, it would have to be a separate set of
patches.

It will also be necessary to audit the places in the kernel that
currently use usb_device_speed. Some of them may need to be extended to
handle the new entries properly. (Including, obviously, the parts of
the code that store the device's speed in the first place.)

Alan Stern

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