From patchwork Mon Feb 1 16:18:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101007 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp118838lbb; Mon, 1 Feb 2016 08:19:14 -0800 (PST) X-Received: by 10.66.158.37 with SMTP id wr5mr39652913pab.48.1454343554764; Mon, 01 Feb 2016 08:19:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hs5si19371687pac.243.2016.02.01.08.19.14; Mon, 01 Feb 2016 08:19:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753729AbcBAQTN (ORCPT + 30 others); Mon, 1 Feb 2016 11:19:13 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:60084 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbcBAQTK (ORCPT ); Mon, 1 Feb 2016 11:19:10 -0500 Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0LdEht-1ZhtsQ0Lon-00iV0R; Mon, 01 Feb 2016 17:18:43 +0100 From: Arnd Bergmann To: linux-usb@vger.kernel.org Cc: Mathias Nyman , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] usb: xhci: fix build error for USB_SPEED_SUPER_PLUS Date: Mon, 01 Feb 2016 17:18:41 +0100 Message-ID: <1508874.HIZbDSzAVR@wuerfel> User-Agent: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tj+DrDl/GfDdUPom M2mzqah7Yh6shkDo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A recent patch introduced support for superspeed plus (USB3.1), but that caused a new gcc warning in the XHCI code: usb/host/xhci.c: In function 'xhci_drop_ep_from_interval_table': usb/host/xhci.c:2440:2: error: enumeration value 'USB_SPEED_SUPER_PLUS' not handled in switch [-Werror=switch] This changes the XHCI driver to handle USB_SPEED_SUPER_PLUS the same way as USB_SPEED_SUPER in the xhci_drop_ep_from_interval_table and xhci_add_ep_to_interval_table functions, explicitly ignoring it. Signed-off-by: Arnd Bergmann Fixes: 8a1b2725a60d ("usb: define USB_SPEED_SUPER_PLUS speed for SuperSpeedPlus USB3.1 devices") --- Found on ARM randconfig builds last week diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 26a44c0e969e..a74beec879b4 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -2448,6 +2448,7 @@ void xhci_drop_ep_from_interval_table(struct xhci_hcd *xhci, interval_bw->overhead[HS_OVERHEAD_TYPE] -= 1; break; case USB_SPEED_SUPER: + case USB_SPEED_SUPER_PLUS: case USB_SPEED_UNKNOWN: case USB_SPEED_WIRELESS: /* Should never happen because only LS/FS/HS endpoints will get @@ -2507,6 +2508,7 @@ static void xhci_add_ep_to_interval_table(struct xhci_hcd *xhci, interval_bw->overhead[HS_OVERHEAD_TYPE] += 1; break; case USB_SPEED_SUPER: + case USB_SPEED_SUPER_PLUS: case USB_SPEED_UNKNOWN: case USB_SPEED_WIRELESS: /* Should never happen because only LS/FS/HS endpoints will get