Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp809828ybv; Sat, 22 Feb 2020 15:52:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwuLQ+herMNVQmboA6+XRj3GW7PtV0hZAnWLvRMrRLSxf8HKvytmLUXhM/wPbFWDlFmXG1v X-Received: by 2002:a9d:2184:: with SMTP id s4mr32646066otb.121.1582415530104; Sat, 22 Feb 2020 15:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582415530; cv=none; d=google.com; s=arc-20160816; b=utVEtcTnzD7VbckgcUJWBPc3j2JKdFVMTkAS3IiLB3J9wx6DfQqcIHSekZL05siHEU BGzHc5hUFvPc86WNLFilE7DQJGzGFZCRrnI/r5WKDQmAR8gqwLrM34sW6q6QuZWh4zRh fBn1IoQQjbmDZbXGw8m1sqUgJKWXJ26fG/6MvKBixgHTIKbjYjt4FpSSkuPulJmZOiS4 0kXsj7a17B+eGtOmjxD8EL5REO3aaxN4lZNRGZrdxTCxWtdt9j57xn/mecmiDtKweoa3 OI5pVqJ5NKxT7yxXISFmHXaWgfHt1/eRCgxcig/2tfpiNnNojClHCFDtF4qZ+wjHZLSH TZlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/2BfxAHj5yHUti8VbaPv2wsHtkdgGzT+vGkFxaxb8I4=; b=UTr6BUPqqv0LbXuDZwLe0bEL8RFPjVFAGHqjZX8aG8n3rwlgok+Trx52fy3oHp3N3D RBrA60/Qj9zx4V8rHYltFZDhH88U9U5sOJEnJCtEaRxP2IUVBuX80EvOnxRWhFezEPK1 RYJJXHWYukx8J2hnqKuI9eTjnH4N9hs1ILZG+yYZCKovB3dt/wE/NeGdA64mpzH95HgR HrXX5eulXbDcHDi4soKhwMiNRN15tZ7Rr5mYtdwJ1AitBAPqeb+2lzpbZY5E7RXuzc9l Jbu6EQkBtLeMeF0IkDNgWHrV/R1SH2uTiixMsrsgPzY9fQAkVV7kl8yTDVLuiw/bCOyi cxTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=ORPcTNcF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65si2878616oih.23.2020.02.22.15.51.57; Sat, 22 Feb 2020 15:52:10 -0800 (PST) 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=@megous.com header.s=mail header.b=ORPcTNcF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726945AbgBVXvs (ORCPT + 99 others); Sat, 22 Feb 2020 18:51:48 -0500 Received: from vps.xff.cz ([195.181.215.36]:34388 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbgBVXvs (ORCPT ); Sat, 22 Feb 2020 18:51:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582415505; bh=cltvQHikJrGK5YS2gg9OUR9Ui1uj17Pe1UWzZvwR4So=; h=From:To:Cc:Subject:Date:From; b=ORPcTNcFH8uBHuJavnP9cy05HTS1KwWse5MdIVoGXMcxMJ5fAmgg8xnov3wVodURv RpnTFrMkYF8DtGqGU6tL7hsNkFQQvHpoLrpg2BYuGcrsgAtnxMddzoWHW8LgZfU4ep fV3/r3FMZV26GMvHLt3IXiikt4Gfd89jz6t2qGdk= From: Ondrej Jirman To: linux-kernel@vger.kernel.org Cc: Ondrej Jirman , Kishon Vijay Abraham I , Kevin Hilman , Neil Armstrong , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support) Subject: [PATCH] phy: phy-meson-g12a-usb2: Fix GENMASK misuse Date: Sun, 23 Feb 2020 00:51:38 +0100 Message-Id: <20200222235142.242732-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arguments to GENMASK should be msb >= lsb. Signed-off-by: Ondrej Jirman --- I just grepped the whole kernel tree for GENMASK argument order issues, and this is one of the three that popped up. No testing was done. drivers/phy/amlogic/phy-meson-g12a-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/amlogic/phy-meson-g12a-usb2.c b/drivers/phy/amlogic/phy-meson-g12a-usb2.c index 9065ffc85eb47..cd7eccab26490 100644 --- a/drivers/phy/amlogic/phy-meson-g12a-usb2.c +++ b/drivers/phy/amlogic/phy-meson-g12a-usb2.c @@ -66,7 +66,7 @@ #define PHY_CTRL_R14 0x38 #define PHY_CTRL_R14_I_RDP_EN BIT(0) #define PHY_CTRL_R14_I_RPU_SW1_EN BIT(1) - #define PHY_CTRL_R14_I_RPU_SW2_EN GENMASK(2, 3) + #define PHY_CTRL_R14_I_RPU_SW2_EN GENMASK(3, 2) #define PHY_CTRL_R14_PG_RSTN BIT(4) #define PHY_CTRL_R14_I_C2L_DATA_16_8 BIT(5) #define PHY_CTRL_R14_I_C2L_ASSERT_SINGLE_EN_ZERO BIT(6) -- 2.25.1