Received: by 10.213.65.68 with SMTP id h4csp1732025imn; Mon, 19 Mar 2018 11:43:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELvJ4zalH0Lb1/v+9NlxSFz/QPj9ZtZZtrnTeXLTmquJSJqjY3M7r9b8j2bN5MLS5Y1l9nyH X-Received: by 10.98.214.218 with SMTP id a87mr2868341pfl.124.1521484995917; Mon, 19 Mar 2018 11:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484995; cv=none; d=google.com; s=arc-20160816; b=L5E+f51dlXdnjywja5msVqQZ3+QwaySBPpNBunz6CvGtO7PupN8EbqqakR8EHNJ76T /rJuIkw4XAHhNbBLFtaKKM5tlFYu302IkBD17fhl8jGw+T3+JZzGXjLBtaGCvymNvQ/u Xyq01fyn6tioymEXv1AGwRkCsqGEgSthwg9P/vUS0AKzfcotsTpT8qpE79OSl/q5Mx/n DCuVk0qEfO8Qt/16eaGwgPB3DXy/mrHJPS/ljMa5clTeoPn2w+Ddh8DPu6+HBweE9A+Z La69fLa27VxmU5FK4TZb/iz/eVKEcw7FpRu+hDzDFBVV7+cWfGEmKM64OQV5HEMlTjFV Xbpw== 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=WXWY8IrAp++qSRMY/VWdKJx9LcZ1/aIh7mm3lQMRC7s=; b=jk2HUubiVde1AoLcu8sfWJx0oEyMv4RjJ9HqZ8h+ha+1RWu9bIwf2Kq4LlxovWGmMn Mwldlj0uI4h3mkSrwaNNmbJ1cyhJe494Ud1U01ybAE+ATKNVFVxVU3qVI1p9f6sgwdgk 5OW6EI6nhdRDPLfIdT6xMuDp3TOkFyMQi8/BtKmjvjP1pk/AIrrIFumhDYyBVuMCqRO6 aaBAnxUoOQqRLbxbdW6F8xriykfepKg7JnjELOI1zfZSpjh4Ebd2d5epXysv6sYbCVZl OfrWO8Oawk0GO6bDcuxk2BJST39/Jn80WbIEitIeJV3wIFJ27xlOROro9MM1udjx87p3 tFNw== 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 l5si331456pgn.723.2018.03.19.11.43.01; Mon, 19 Mar 2018 11:43:15 -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 S970415AbeCSSl3 (ORCPT + 99 others); Mon, 19 Mar 2018 14:41:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970353AbeCSScs (ORCPT ); Mon, 19 Mar 2018 14:32:48 -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 1AB7A11CE; Mon, 19 Mar 2018 18:32:47 +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.15 45/52] usb: dwc3: Fix GDBGFIFOSPACE_TYPE values Date: Mon, 19 Mar 2018 19:08:43 +0100 Message-Id: <20180319180737.470290454@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180734.976730813@linuxfoundation.org> References: <20180319180734.976730813@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.15-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 @@ -158,13 +158,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)