mbox series

[v2,0/7] remove some usage of gadget_is_{*}speed() API

Message ID 20230803091053.9714-1-quic_linyyuan@quicinc.com
Headers show
Series remove some usage of gadget_is_{*}speed() API | expand

Message

Linyu Yuan Aug. 3, 2023, 9:10 a.m. UTC
This series try to remove some usage of gadget_is_dualspeed(),
gadget_is_superspeed() and gadget_is_superspeed_plus().

please check each change for details.

V2: fix comments from Oliver Neukum <oneukum@suse.com>

Linyu Yuan (7):
  usb: gadget: use working speed to calcaulate network bitrate and qlen
  usb: gadget: add a inline function gether_bitrate()
  usb: gadget: f_uvc: change endpoint allocation in uvc_function_bind()
  usb: gadget: unconditionally allocate hs/ss descriptor in bind
    operation
  usb: gadget: config: remove max speed check in
    usb_assign_descriptors()
  usb: gadget: composite: cleanup function config_ep_by_speed_and_alt()
  usb: gadget: remove max support speed info in bind operation

 drivers/usb/gadget/composite.c             | 34 ++++++-------
 drivers/usb/gadget/config.c                |  8 ++--
 drivers/usb/gadget/function/f_acm.c        |  4 +-
 drivers/usb/gadget/function/f_ecm.c        | 19 ++------
 drivers/usb/gadget/function/f_eem.c        |  4 +-
 drivers/usb/gadget/function/f_loopback.c   |  4 +-
 drivers/usb/gadget/function/f_midi.c       | 56 +++++++++-------------
 drivers/usb/gadget/function/f_midi2.c      | 44 +++++++----------
 drivers/usb/gadget/function/f_ncm.c        | 23 ++-------
 drivers/usb/gadget/function/f_obex.c       |  3 +-
 drivers/usb/gadget/function/f_rndis.c      | 19 +-------
 drivers/usb/gadget/function/f_serial.c     |  4 +-
 drivers/usb/gadget/function/f_sourcesink.c |  4 +-
 drivers/usb/gadget/function/f_subset.c     |  4 +-
 drivers/usb/gadget/function/f_uvc.c        | 36 +++++---------
 drivers/usb/gadget/function/u_ether.c      |  5 +-
 drivers/usb/gadget/function/u_ether.h      | 13 +++++
 17 files changed, 99 insertions(+), 185 deletions(-)