Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1913007imm; Thu, 24 May 2018 02:49:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpA6Wk3mmdEYb93eLatIcQ9vYexrZU6Vgnk3UPE8dpOx/kJ1CIabQOBOgjB/kSidreMy9NW X-Received: by 2002:a62:a044:: with SMTP id r65-v6mr6364781pfe.235.1527155386795; Thu, 24 May 2018 02:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527155386; cv=none; d=google.com; s=arc-20160816; b=yD6kfRD98C8tpm7ZJQhMy+/IS0lqUkcYKhDr3ocgJdFxM90olhy8NLIn7026yccYTN uC/vjZR+G18HHWjByzRI9eERMwzlX8AL62RcNOU1fmGBigUD8nBlk3WmGbqu8Jk6DDkl nBQHHnooXiGOkPFZ5I7LBcjy2vYjrywQtsel+lfMZTQbWZgXHPQt4E/fpTRp8h7a4Ij5 Paw3JQxJWI73zNf8yFTTNuttWQdD9ft1crs0BhKeoaJKIGAKP/5i9OYR1G2yUDGrrRdf HcsQkDGOofTfQfTgLqhwvznqsmshnApOeW8DclZELprPF661Gzg+RVL3mp5NiOVNEF9u KIag== 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=uiGdUTbsaUSOWmpWmP+edvEc8J4ohrlZBsppbzB8ThQ=; b=mvppXdhH+ACzbKfUrFvRbXn6nojoGB+jY944wBT++YedspFgwla9u8wa2dhI7ic+vE C+6xImQSGF9j/isM1nCaqyeM5Sea599RoBanV3br7f745S5mxNaP0VBYSwGRRfDbg2xm KkChbRHumdC0nK5qWSU4GuzPt+HYwBER287b4hTQ2o+jv5okXr8ppPTGLwS4bvlVwuCi ZdFl4ZsZ39OAU6+uBuFb39h5pTwgWlcQkcH8IpcIyBvMVX3VWy3KmVBEkFGho/wmBy7k Sth1cLjJgI0iJxPvE9yksj0blpe/maXaKOsScWkg9rhJQMhu5Pbv3u3JvsANrF5Y+8rp p0/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WJDLwvTf; 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 g10-v6si15506732plq.523.2018.05.24.02.49.32; Thu, 24 May 2018 02:49:46 -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=WJDLwvTf; 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 S967237AbeEXJse (ORCPT + 99 others); Thu, 24 May 2018 05:48:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:33684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967222AbeEXJs1 (ORCPT ); Thu, 24 May 2018 05:48:27 -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 1B95120847; Thu, 24 May 2018 09:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155306; bh=7Pwi0hnO+rGoMHQGatXeu5jYPo2/BakmTqjokgaT2W0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WJDLwvTfBi35ZgyGsf6MjosH5Gg57Z0TGCyDTfnPcMAxpojivE3EPge7xXQN25eMA noXLWsBWu8sGxiituxVvzrCB6v2d/CRLAZLUFtVdhjT0nItkie2MyCBDIDGIOLxJ6a wqwXHxU9bi8Vsa/TNAqgnBqB3X56RAAT0YQk31Wg= 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.9 39/96] usb: dwc2: Fix interval type issue Date: Thu, 24 May 2018 11:38:22 +0200 Message-Id: <20180524093607.795045924@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: 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 @@ -209,7 +209,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;