summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorLinyu Yuan <quic_linyyuan@quicinc.com>2023-08-03 11:10:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-22 14:48:33 +0200
commit8165763f82bd87d742b91ffef2874e7c8d1f6d2b (patch)
tree3f74dd8d84e869ae8809c21dd8ad40376260aacf /drivers/usb/host/xhci-ring.c
parentusb: gadget: use working speed to calcaulate network bitrate and qlen (diff)
downloadlinux-8165763f82bd87d742b91ffef2874e7c8d1f6d2b.tar.xz
linux-8165763f82bd87d742b91ffef2874e7c8d1f6d2b.zip
usb: gadget: add a inline function gether_bitrate()
In function ecm_bitrate(), it is not support report bit rate for super speed plus mode, but it can use same bit rate value defined in ncm and rndis. Add a common inline function gether_bitrate() which report different for all possible speeds, it can be used by ecm, ncm and rndis, also remove old function from them. Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com> Link: https://lore.kernel.org/r/20230803091053.9714-3-quic_linyyuan@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
0 files changed, 0 insertions, 0 deletions