Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2025007imm; Thu, 24 May 2018 04:43:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoG9cLZh2yq0gG9vnjUuBlbDzRweq3dmomNGmzUCNMOtgkc9lbY5D5q1J5PD48tgMenrjjH X-Received: by 2002:a63:ba51:: with SMTP id l17-v6mr5452577pgu.295.1527162196805; Thu, 24 May 2018 04:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162196; cv=none; d=google.com; s=arc-20160816; b=COqPqcy1eHG6CWJZnhLfkw7Ivb6BU9JDjx4sVS1wJM3i3nhpYLXsiTEqFYgoS/1U4a /EhDy0BJKCyL/7E6VnSe0MlS7oKic+bXuHIC1pToPpmQZl+9CaJ6lmvjxHN4xWDdJOeE GSKATm7DGw+FPAdTG7BQ3D0fKb6FXq6PZDwiJhxUBSGbm69VHRCvrwwexNLcQlKGSH7q lQgLIskxs/jDt52qDGEryFD4zrmYesGOnWGRQFpiRH67wO1ealefEJToXOloT+6444bh cPWr4u3ZYyWka6jvGvHrU8/4aQwwUsiHqYv/X/EqU/+hHcF9aP2gVgpmFmVqiFjHFonj VWiw== 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=i6y4T5HX8EPlBrDNimZc+K7XW29SbJcgvoW59XJpJgg=; b=LxLuO2mhvYIdUB5444U+PHiZmHUPV1T939M5Dxs0Tw5WlxyRnZCCsNEeRTucpXJ4N7 EInFtxmWJDbf0KOFjgDp7H7Ck585uxZEOARCsrmoBJeX+isIHIcrW34R5tXHcANwV5p1 YyLJO7jIoF9U1raJp/2u095G6L3kkhTBTHsdDpl1tuKkUbPn7avs/tm2ZAUO+v3TLFhj eU+CA+bUTQ6A98I0MXgwjhCuFHN+/Duf/bvWnErTK3YeWhWyO2nS1nQJd0tMTD/7g7ki COD0NbfeWUDMMQA4mj3q/KSgvFpyN0rO68enIv5fA087TmhQ3II5Rozn2NETUwWuRtIh UgJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oUr6qQ1K; 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 n14-v6si9409640plp.534.2018.05.24.04.43.02; Thu, 24 May 2018 04:43:16 -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=oUr6qQ1K; 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 S967221AbeEXJs0 (ORCPT + 99 others); Thu, 24 May 2018 05:48:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967208AbeEXJsV (ORCPT ); Thu, 24 May 2018 05:48:21 -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 BECC020894; Thu, 24 May 2018 09:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155301; bh=riJ+cxv6TtWEiZhSJMzSBwqsoY+ynfj5SuwuWeyrU9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oUr6qQ1KpT0XK/t6o80UAeXkci9hwoexkebkJs/bqUtfbXGnrFAzUEDIRgfruxFAC ebyd5RZL4NypS6P2P9zQGsrwcBOt5N1/JI7js5xVXFLFe0bdrIBYe+iKzoPxMMAL1a rwG1mfh/AUvvIvKLxaF2ONTBWIfhspQgsm9zQ5ak= 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.9 37/96] usb: dwc3: Update DWC_usb31 GTXFIFOSIZ reg fields Date: Thu, 24 May 2018 11:38:20 +0200 Message-Id: <20180524093607.696816162@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@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 [ 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 @@ -238,6 +238,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)