Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1993543imm; Thu, 24 May 2018 04:11:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCuElcRYDDMQz3xduaRwGKbq8dTIzdlSWB5ipG+X4/9we6zN/JzksJHZ3jDR+FQiNFGo6z X-Received: by 2002:a17:902:8f94:: with SMTP id z20-v6mr6942178plo.391.1527160270390; Thu, 24 May 2018 04:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527160270; cv=none; d=google.com; s=arc-20160816; b=GE6Dq/k0srtXWXEYO7PTTVnGTRfntYWC+bBeT+MXlpSjZslO3u8EBR/eNvvGr5+QNm PGQbJbNHoTwUCA3SD+V3WiOiKFloD8Bc4OuvLJ+gT1zRKiSScOSoQqLXye+QW529mSLD JtJ7sIupAoL0dVGF+OPZ0VsmaDZgtTfJd2o7C4i3zuMFm7joT9HjtPiU/W94qyveJfAC yGOlgJ/kbTlGcvkqFbgSjoXr7kKIjMt++QEb1gMgpqzcj6zvc/TW3S1S8JRFykwdPczJ othY4u7kkvEdQZnhiEjH3dHERnCS7FOw29a4Dy2SOW+cbAEvj6tUgluMdY7Zs4qSsDtZ waVw== 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:dkim-signature :arc-authentication-results; bh=XXWlA3xJJpo5UUywVsJ92OqUVPh93WBhjN1+DXZcWfU=; b=YPNg3Ok8O8IR/KRdrRGDnQ3qoUQjTSW4l1jeLzrpHmM43EanMtc7DYvdFELPiPL6kT b0Sh0FpZkBnWJn+ZF5y/oW/tNF7b96ApJXqWJifE2K+4hCSEIw+1xjcPee8ps2o0/l43 gzVVQCtgxV3sSTcO5UgsrSHbVMmtOkhEGhmJ34nuii+eMUI8E7D7ypXHxCD6unBCjYgL tdgMjB5v6pZ63C44kI/bi7OjaJt1Ph01xMimWm8OdGh7feHMxyuKO/TU7ffqMhdz5F0V HdGZrMmsY0amHjOtPG9NBxR/0pWdZ2upzY2OOImQ/DtsRBau/YBY39KRi3nF/y9D+OL6 Y1iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arQRMlis; 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 d30-v6si21101757pld.528.2018.05.24.04.10.55; Thu, 24 May 2018 04:11:10 -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; dkim=pass header.i=@kernel.org header.s=default header.b=arQRMlis; 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 S967698AbeEXJyd (ORCPT + 99 others); Thu, 24 May 2018 05:54:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:34484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968158AbeEXJyX (ORCPT ); Thu, 24 May 2018 05:54:23 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1E4220891; Thu, 24 May 2018 09:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155663; bh=aWarHnL3C91VTn5Teq6uufepGDHEw1cTP+DT9BVeODM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=arQRMlissmPyWY9faF4GtwEh/FGx2784SAt/YIejzvhlAmlpya00kCem/y1I538fC cVkHpUAq9o7NnsgIw50GdnQo4PeZbxzCqE4qj/yRYDSyxCQDgIrR7hoLJ+naG/3qnt 5yi7cWkmBdlF54mDyJeyJk2lY8ttPvnXdQuR84tE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thinh Nguyen , Felipe Balbi , Sasha Levin Subject: [PATCH 4.14 070/165] usb: dwc3: Update DWC_usb31 GTXFIFOSIZ reg fields Date: Thu, 24 May 2018 11:37:56 +0200 Message-Id: <20180524093624.848187934@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thinh Nguyen [ Upstream commit 0cab8d26d6e5e053b2bed3356992aaa71dc93628 ] Update two GTXFIFOSIZ bit fields for the DWC_usb31 controller. TXFDEP is a 15-bit value instead of 16-bit value, and bit 15 is TXFRAMNUM. The GTXFIFOSIZ register for DWC_usb31 is as follows: +-------+-----------+----------------------------------+ | BITS | Name | Description | +=======+===========+==================================+ | 31:16 | TXFSTADDR | Transmit FIFOn RAM Start Address | | 15 | TXFRAMNUM | Asynchronous/Periodic TXFIFO | | 14:0 | TXFDEP | TXFIFO Depth | +-------+-----------+----------------------------------+ Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/core.h | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -249,6 +249,8 @@ #define DWC3_GUSB3PIPECTL_TX_DEEPH(n) ((n) << 1) /* Global TX Fifo Size Register */ +#define DWC31_GTXFIFOSIZ_TXFRAMNUM BIT(15) /* DWC_usb31 only */ +#define DWC31_GTXFIFOSIZ_TXFDEF(n) ((n) & 0x7fff) /* DWC_usb31 only */ #define DWC3_GTXFIFOSIZ_TXFDEF(n) ((n) & 0xffff) #define DWC3_GTXFIFOSIZ_TXFSTADDR(n) ((n) & 0xffff0000)