tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing head: 0e781c2258ffb2a42bf44f62dea8662f38cbfd34 commit: 8a1b2725a60d3267135c15e80984b4406054f650 [5/38] usb: define USB_SPEED_SUPER_PLUS speed for SuperSpeedPlus USB3.1 devices config: x86_64-rhel (attached as .config) reproduce: git checkout 8a1b2725a60d3267135c15e80984b4406054f650 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/usb/host/xhci.c: In function 'xhci_drop_ep_from_interval_table': >> drivers/usb/host/xhci.c:2440:2: warning: enumeration value 'USB_SPEED_SUPER_PLUS' not handled in switch [-Wswitch] switch (udev->speed) { ^ drivers/usb/host/xhci.c: In function 'xhci_add_ep_to_interval_table': drivers/usb/host/xhci.c:2499:2: warning: enumeration value 'USB_SPEED_SUPER_PLUS' not handled in switch [-Wswitch] switch (udev->speed) { ^ vim +/USB_SPEED_SUPER_PLUS +2440 drivers/usb/host/xhci.c 2b698999 Sarah Sharp 2011-09-13 2424 * this check is only valid for HS/FS/LS devices. 2b698999 Sarah Sharp 2011-09-13 2425 */ 2b698999 Sarah Sharp 2011-09-13 2426 if (list_empty(&virt_ep->bw_endpoint_list)) 2b698999 Sarah Sharp 2011-09-13 2427 return; 2e27980e Sarah Sharp 2011-09-02 2428 /* For LS/FS devices, we need to translate the interval expressed in 2e27980e Sarah Sharp 2011-09-02 2429 * microframes to frames. 2e27980e Sarah Sharp 2011-09-02 2430 */ 2e27980e Sarah Sharp 2011-09-02 2431 if (udev->speed == USB_SPEED_HIGH) 2e27980e Sarah Sharp 2011-09-02 2432 normalized_interval = ep_bw->ep_interval; 2e27980e Sarah Sharp 2011-09-02 2433 else 2e27980e Sarah Sharp 2011-09-02 2434 normalized_interval = ep_bw->ep_interval - 3; 2e27980e Sarah Sharp 2011-09-02 2435 2e27980e Sarah Sharp 2011-09-02 2436 if (normalized_interval == 0) 2e27980e Sarah Sharp 2011-09-02 2437 bw_table->interval0_esit_payload -= ep_bw->max_esit_payload; 2e27980e Sarah Sharp 2011-09-02 2438 interval_bw = &bw_table->interval_bw[normalized_interval]; 2e27980e Sarah Sharp 2011-09-02 2439 interval_bw->num_packets -= ep_bw->num_packets; 2e27980e Sarah Sharp 2011-09-02 @2440 switch (udev->speed) { 2e27980e Sarah Sharp 2011-09-02 2441 case USB_SPEED_LOW: 2e27980e Sarah Sharp 2011-09-02 2442 interval_bw->overhead[LS_OVERHEAD_TYPE] -= 1; 2e27980e Sarah Sharp 2011-09-02 2443 break; 2e27980e Sarah Sharp 2011-09-02 2444 case USB_SPEED_FULL: 2e27980e Sarah Sharp 2011-09-02 2445 interval_bw->overhead[FS_OVERHEAD_TYPE] -= 1; 2e27980e Sarah Sharp 2011-09-02 2446 break; 2e27980e Sarah Sharp 2011-09-02 2447 case USB_SPEED_HIGH: 2e27980e Sarah Sharp 2011-09-02 2448 interval_bw->overhead[HS_OVERHEAD_TYPE] -= 1; :::::: The code at line 2440 was first introduced by commit :::::: 2e27980e6eb78114c4ecbaad1ba71836e3887d18 xhci: Track interval bandwidth tables per port/TT. :::::: TO: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data