Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1986772imm; Thu, 24 May 2018 04:04:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/Ndt86HYHmew+gnQkcYNa4/Ytc3AAZ7TXIkB5YuSUm+IYZlIBmTd7KDgQsKFT1pKZ30oS X-Received: by 2002:a62:990f:: with SMTP id d15-v6mr6746272pfe.115.1527159894861; Thu, 24 May 2018 04:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159894; cv=none; d=google.com; s=arc-20160816; b=M8XdTvfJydScRFuED51eiZARl8EL/+kn0itWqOuE3/iEX1TG32jmKJunAIX+DwoDp9 IWRtdjT+N2z8awUw9ehaeDobVj1ilZzYb3WhzP6rqX1CGeGQnaF2wTnYRSCCV4zvEbdM hbLR6ac2jhTAibOWDsdOshWSwvKPM0sOug2DnKnZOXm7IdSewoc92kZ96HS2oUZLBSdM 1VXUJiWrwQPGjafDnHjVCnsctNzq8jxMP7LcCtaTAN4jL5E3xLyeX/AAwsGuDQkJ5lvZ iWB/New83FLan+kA30tz9eJ67LuDm3629FdowX/hP0rTGp+2n65KKqtWiW6bFk+NzAQn kblw== 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=Kwh1j6476XiSZNOW/sOd3ig0j64gM2MegvEjbh7px8s=; b=NdZxonR7/ZjZ6B9K5DBdA8ILHrYv9xDrMzEc3s/SDstTn+EiipdkpqMIT33J62/UOZ 3ow6tGmJRR98E4VHAPqFbwdaj+eMLDa7h2p8KJkq9h9xlSi7UBzQ3OraOpT0KmXD+wSp 9IK0DzTisgRYM2tqn0yOkpcaKmd/zDVvhbnDoACfDLmkREFDu4kHPH7iPd0k4u+NW1II f+BG+o5be2XYraEae+4wHJGi6vGlaAWusIzfSEeu/KhRNvVS//JtGHGmsiWdg+cWYHMw w/zNbPatLHJJnsi6KQnLS6RAGnOiWWLBSpeJroKncPtzy7wmGVh1eD0lFJ1VhXpGaPsI 2Yag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RAKAJzgt; 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 u70-v6si3583561pgc.376.2018.05.24.04.04.35; Thu, 24 May 2018 04:04:54 -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=RAKAJzgt; 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 S968390AbeEXJzh (ORCPT + 99 others); Thu, 24 May 2018 05:55:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:35626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968361AbeEXJzc (ORCPT ); Thu, 24 May 2018 05:55: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 467E820891; Thu, 24 May 2018 09:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155731; bh=iqgnTE3I6CU59aUIMcb9kLTl1zuU3rsUefX1Wa52VEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RAKAJzgtNXJg9upaE2BfPgTGtAk4gmLE3DLBjFfSX+wrHMx80E8ZhNS8PN4g0/FC7 aeNfVsQB2iuqaUCRsZX1KZ+uzV/C98TDDMI8gat9E9iEpYsvg954zdmNt3inDnqtit LEFLmgGfA3BYIhjHC5t5f5lQRYopDq9JmlahNfiY= 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.14 079/165] usb: gadget: udc: change comparison to bitshift when dealing with a mask Date: Thu, 24 May 2018 11:38:05 +0200 Message-Id: <20180524093625.218270231@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: 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