Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2024811imm; Thu, 24 May 2018 04:43:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrIM1xqFVHhQmYCg/SZp83wv5DiDuf+0/I6r4+5TvDO/2zYnvB4+mo5QgDsVSSSXx12T4F X-Received: by 2002:a65:65c8:: with SMTP id y8-v6mr5653737pgv.320.1527162185394; Thu, 24 May 2018 04:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162185; cv=none; d=google.com; s=arc-20160816; b=G9Zl1ht90CMYXB1OrDk9f2w1kg57Q2Xi8KMxvOtzGEMBHMOzRfcRdJ7oLs5Lgck1cp tSjW4ow12wVDQYXw7ujEFatjfCJD6aZK+FNJccyA4teJCYFJS/m5F7dKPd2ZBC9kfnwp o1fA+DpCqMnUwE769wGch6u9bhoCnM1uG7GfD7szo2XsSpcjIBz/ko36DQHUrt75zwRQ ayO3Y8b1mCppeFrJXjruwPDkpgDVhf4HkE1qtSzainZBEpvms9furSgtuIZ1tBl1JVIe 5nk6k3Trm8T4uhMO0fyD0m5yk4JoZNFjPDD6t3Gnbtx2dZobkR/w28xGY30eGI6ljiM/ rHSw== 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=W/zk9wMpztVxasYmtjLcF7cuBArHPEzN1cmhvgHckNk=; b=jeX7/0Yv/axAL3Uq6paXPoW0FxoGCxO0VLhs8/NAMUoAg6FBQ3EwDQJyqlXdshUvHq YizPzxUep3nzCm+a9Qnp5zhAkxXSHjkbcMpvGvmg2wAAgB92z/dDoscjh2QbjcpetKOa LGvC4JzEuoIf2ZzKYSpfof7KeuKiUltUvUocC5jURX2xLLNKuhwCIuHvf6nLNBkBKzvE 8zKoBDY5MGGMdZT/njhRZchvHUS20Ji9hnZFWe+EN8UQg65HjZvmAKSY8eVoCMvVEBvx rkTbrVIhahnTPHfGNi6E/qIFcSB5WV2ePBys8kQed6hQEBzNhEMXTTWqsLjUOvwpouSi SkSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=teqVMbQ8; 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 f85-v6si20908300pfj.125.2018.05.24.04.42.50; Thu, 24 May 2018 04:43:05 -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=teqVMbQ8; 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 S969195AbeEXLln (ORCPT + 99 others); Thu, 24 May 2018 07:41:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:34162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967252AbeEXJsl (ORCPT ); Thu, 24 May 2018 05:48:41 -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 6DD8C20899; Thu, 24 May 2018 09:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155320; bh=isGdY7zHySmw4pYCl50l6xTKIb85t0q+yyMgfV+gTwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=teqVMbQ87xC7yU+vHm5Ad9u6EILzCufKBj+w6nMfs74ZEUbkWxKUYbQqZPMo4oKwP s23fwJYDEf6PRBv5mSH8hikitzxnP8+6ETCPuNXv79iLfUJEpBJKYVCTtqk524mn/h dTpdOcwD9330+A1uMwAlzMBojiPTf3w4Pgxll1HI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Wolfram Sang , Felipe Balbi , Sasha Levin Subject: [PATCH 4.9 43/96] usb: gadget: udc: change comparison to bitshift when dealing with a mask Date: Thu, 24 May 2018 11:38:26 +0200 Message-Id: <20180524093607.989213851@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: Wolfram Sang [ Upstream commit ac87e560f7c0f91b62012e9a159c0681a373b922 ] Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Reported-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/goku_udc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/gadget/udc/goku_udc.h +++ b/drivers/usb/gadget/udc/goku_udc.h @@ -28,7 +28,7 @@ struct goku_udc_regs { # define INT_EP1DATASET 0x00040 # define INT_EP2DATASET 0x00080 # define INT_EP3DATASET 0x00100 -#define INT_EPnNAK(n) (0x00100 < (n)) /* 0 < n < 4 */ +#define INT_EPnNAK(n) (0x00100 << (n)) /* 0 < n < 4 */ # define INT_EP1NAK 0x00200 # define INT_EP2NAK 0x00400 # define INT_EP3NAK 0x00800