Received: by 10.213.65.68 with SMTP id h4csp1724775imn; Mon, 19 Mar 2018 11:30:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELtfpzoKoQcBkKxJWShkWWppoAaAPOipbWxdYlfonGJ5VmrsKmJ6J+JD2IQL1cZlOYJJCLY9 X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr13169118plg.388.1521484225841; Mon, 19 Mar 2018 11:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484225; cv=none; d=google.com; s=arc-20160816; b=uj51+kwBpiCqfmALpBDtBInuoXkDTviLVtjooxYkuNjeuiTzQT3WGuZE8I2I+dUzFu rSq0MeleVEfaRrWgMULHR6CBZ9AhW6+okDpSlqQBVRt8iysIa8XwYaJ+ROBVrpYk3tS7 qqNOjkO+JE6t8S2kQN9/QNsTqWtQWhh3ZrCj3zrIniSnyzZQ7x7seqUbkYc6eWJJIEjy 1pCfe10fu619Dlf/URPhvCuNB2vYYBlNm2pCIy/cgMaa8dOOOvZRq7F8R58fWBIbn3oH 5O+HHK9Q13AXpdNils+NQ9eLQeRjb3F0oh0vHSh9Z2u7oC7gh5qizA4Zkc+jRAIRXx1L YTFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=anYGwOQNaT6EQ5Ea4uSTWj8sZlCLZmxCOIUpzK2iJmc=; b=kfeaMwhCaUmzfsQKMjmyvJbDwGfM9UhmPfA4+WB1IahePGl0GN3UOssruU2z7a9J3S Qp5xQgSEIuUdni4lQKM+q2yUKNyvROQQwVjdU9Vgp5Xha/Xwd4nlTs6aNhB9lBqb8Ml8 wMhTaEP+DZXaPRz3vkoyRxoAbT3KkUqeW0s6plrVOnzChW+t6VSEZ4BSFzyeEMr+WKpd eD1791o/jIsUIryIlL3ILLkvFa7T8vT3lPxyGIzSy7Hg4rYdeyYJ+zXK7B02D08EzafB CnL/kSUEeMxAZkSPbU/qLXQHTECfZS9LS6XdYOQKbz88giCG3kHk7M2LggY+wWH31051 i9Vw== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11-v6si429122pll.155.2018.03.19.11.30.11; Mon, 19 Mar 2018 11:30:25 -0700 (PDT) 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 S1031784AbeCSS2t (ORCPT + 99 others); Mon, 19 Mar 2018 14:28:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52334 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031748AbeCSS2n (ORCPT ); Mon, 19 Mar 2018 14:28:43 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E9FA7D28; Mon, 19 Mar 2018 18:28:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thinh Nguyen , Felipe Balbi Subject: [PATCH 4.9 240/241] usb: dwc3: Fix GDBGFIFOSPACE_TYPE values Date: Mon, 19 Mar 2018 19:08:25 +0100 Message-Id: <20180319180801.105762772@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thinh Nguyen commit b16ea8b9492e99e03b1269fe93ebdbf8e4eabf8a upstream. The FIFO/Queue type values are incorrect. Correct them according to DWC_usb3 programming guide section 1.2.27 (or DWC_usb31 section 1.2.25). Additionally, this patch includes ProtocolStatusQ and AuxEventQ types. Fixes: cf6d867d3b57 ("usb: dwc3: core: add fifo space helper") Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/core.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -159,13 +159,15 @@ #define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0) #define DWC3_GDBGFIFOSPACE_SPACE_AVAILABLE(n) (((n) >> 16) & 0xffff) -#define DWC3_TXFIFOQ 1 -#define DWC3_RXFIFOQ 3 -#define DWC3_TXREQQ 5 -#define DWC3_RXREQQ 7 -#define DWC3_RXINFOQ 9 -#define DWC3_DESCFETCHQ 13 -#define DWC3_EVENTQ 15 +#define DWC3_TXFIFOQ 0 +#define DWC3_RXFIFOQ 1 +#define DWC3_TXREQQ 2 +#define DWC3_RXREQQ 3 +#define DWC3_RXINFOQ 4 +#define DWC3_PSTATQ 5 +#define DWC3_DESCFETCHQ 6 +#define DWC3_EVENTQ 7 +#define DWC3_AUXEVENTQ 8 /* Global RX Threshold Configuration Register */ #define DWC3_GRXTHRCFG_MAXRXBURSTSIZE(n) (((n) & 0x1f) << 19)