Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1992765imm; Thu, 24 May 2018 04:10:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdvYK6cyJ6S2lPghdytKlMIeRWKi3f1Kku0m04gqEqj8ynvHtrtgvLYxDm4zg/q1I0Dm8h X-Received: by 2002:a65:6557:: with SMTP id a23-v6mr5445457pgw.319.1527160227528; Thu, 24 May 2018 04:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527160227; cv=none; d=google.com; s=arc-20160816; b=xF7qww+tPQCSg7Gbhdg4xNgV2kAqUfdCnf90bwjAZS/A8W0n1Sz9lMj14Mg5jap170 rcKlk3RYGzEw2x2CF1f8crJIOPUXTVQxTlaS+/NKIquMSPlCZwqXuCTwazSB5dGbq7dG Cmlkkg2db1p0YcGAAane/98TIcOBMl8PPqq25gQ63GY/D9YV5I+nicnqNYOJtzRJX2RT Yws1eRy+nROklJd+I/Wcge7XGCOtOLYg3BzI7QdGzVqKC6G6q/KgPMY0pJAKNfv+ophW 0Oxhgc2ugFGHnNcvVw4eQeLm3t+p5T1aIFrtQfbyOjqozHryrYqnfUcTLauEF+L4kQqb kaIg== 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=fe1B6IV+0BHhMC1aOYZL46mO23ugesSZdugOHtHs1e8=; b=ZhXlcVFnZbZF0NUD5erd8gS50gLw/U2UJvN3Dql/HvxbkL0QEil7gWgO0mZJCQVDJX 6A2QRahrP0EDccsDirITrsqId3gcJVOqbOtbqD/V75oZeMFjL032rqbHnejN2JCFASjI EOi4xxcEKMoA2ftNmngnygZ/1q3IfcMW5F76goVEloZTmXYIhWJxISbC7C9LNvwgMsy4 VmMzqwy8aHjd7Z/JFnI5ieBW0uu2T8NmE6P/l20Q1O5B+js761bGR2x3NqHttTuG0Wtr zNfbkyBbR4FzSWvNmNT3EJzl2Qmp0uJDlz8WB7KTjg6f1r19NSqhFEqRl8vUlkBvEnTS CuoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EzqdgrdW; 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 a92-v6si21196521pla.291.2018.05.24.04.09.50; Thu, 24 May 2018 04:10:27 -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=EzqdgrdW; 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 S1032977AbeEXLJH (ORCPT + 99 others); Thu, 24 May 2018 07:09:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:34640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968187AbeEXJyc (ORCPT ); Thu, 24 May 2018 05:54:32 -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 6172820892; Thu, 24 May 2018 09:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155671; bh=gUDiaF0FUfcLIr+04/CDZ9GYnAxGwN7fHfdpz1pvjBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EzqdgrdW3mIQl2Y5X+d5lgN899mHXG3OeRxbE29PpYBuK8Gys6NBqHeFeWN93WWiL AT1scnllul5x9w4e0hYNoYhZBk3xs9u47dxge8plvXVTwKTxFY8Z1t4ITH4idG98JA SXTscCg/EOQ+Og4MsBlZhqgFS2/wGT8DkZ/K6uzQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grigor Tovmasyan , Felipe Balbi , Sasha Levin Subject: [PATCH 4.14 073/165] usb: dwc2: Fix interval type issue Date: Thu, 24 May 2018 11:37:59 +0200 Message-Id: <20180524093624.969066759@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: Grigor Tovmasyan [ Upstream commit 12814a3f8f9b247531d7863170cc82b3fe4218fd ] The maximum value that unsigned char can hold is 255, meanwhile the maximum value of interval is 2^(bIntervalMax-1)=2^15. Signed-off-by: Grigor Tovmasyan Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc2/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -216,7 +216,7 @@ struct dwc2_hsotg_ep { unsigned char dir_in; unsigned char index; unsigned char mc; - unsigned char interval; + u16 interval; unsigned int halted:1; unsigned int periodic:1;