Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1947540imm; Thu, 24 May 2018 03:25:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpkEZNqdi5inRdTEBt+LJqgiyYGFWh5z24vDvHAf2K+EXAKYepQormKvaqfEXklNdEhWSX/ X-Received: by 2002:a62:bd2:: with SMTP id 79-v6mr6616353pfl.4.1527157537024; Thu, 24 May 2018 03:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527157537; cv=none; d=google.com; s=arc-20160816; b=Zx5J9l0fcrLtTQV59CM0BF/xdMtUqNicCWG8SgqZ3G+E4aqdc3H/q9+GTZtz0UNWYs TEh/nc8H0WLS/iTLpYfizqChPLCjxanRj/se5adAJrUkVh3WIy5XX3oSb6a+79JLQszy LWk1EYszkTbtCKmRw49HrVCUjrD6T+fELQ1Q1tuyCO8kfO/Q4ntyPafNz2RZ2iTuoVw5 GfaSmSBqoOXQJeBZMjN9eaZR+jDC5sDby6YqH092pr39Ch9rJaxxJIDN+knun4A2+Bj9 VlIhztbtieakTwdoYg0ZhS8/yArC+vj9k8wQch8UXxdksXEoxX70f/zOiFQRmb/lDGtg yo1A== 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=Cjr0tJe4E8mAA81uXFsFXmlbU9EgGImzcchp1Kp4Ltk=; b=O5xD2mHGACZdOwXnzM63srV+tl07Nhkkei7BR9wigXY+kpuEUoQ8GAi/kYaNReFBCL lGuoxqx7QbuqUQHq1bqtII1f5U9zPUeuyoyqY4T8ikuG71uR1ABVWhYm+1qyJIMKdjcv 02VQNt1Nn97lDqcPsFfCvpTHwgrsWFs0Aex0s9GxwdGrUjnK23522Mte7PgGwqPuy0po kXvYUCCjynKeH+MajS6Nsme/uIPQs40VwxdzsQHDrTXcfQEkwPumYLcNL8+spIIsGzKh ZkYLKMI1uOmfXIHBOYzu2nPkAm8JXvj7UTs7dVVBnoAiDEuf3yxxWmtczFKlyc11miIt 7nRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WfFBxhFJ; 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 6-v6si21073115pft.35.2018.05.24.03.25.22; Thu, 24 May 2018 03:25:36 -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=WfFBxhFJ; 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 S1031997AbeEXKYv (ORCPT + 99 others); Thu, 24 May 2018 06:24:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:48632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031077AbeEXKCT (ORCPT ); Thu, 24 May 2018 06:02:19 -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 D1B42208A0; Thu, 24 May 2018 10:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156138; bh=QwYmQmpOoIdi29zp4rjKyN0FNTr8c+IxlBjoky2fy9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WfFBxhFJkXRTRNA9W6tPOib/l01Kdm7rnMmEzOKscGzd78h1GZIWx/m5TmB07bpRM Wo2W4C4dlTvkRjygyLDlm+Z9L4VKPjiydMpj97q2ejvAxttsUfXhRJVCC6lkMsr7P/ h4Uajbz52yeuctl7ttPCUvcrqewwTBPzQ+/hTX2k= 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.16 078/161] usb: gadget: udc: change comparison to bitshift when dealing with a mask Date: Thu, 24 May 2018 11:38:23 +0200 Message-Id: <20180524093027.891883897@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@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.16-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 @@ -25,7 +25,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