Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2376590ybx; Fri, 8 Nov 2019 03:31:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxUPIuYOx/QAZ8XG5g/bTcouC8YO5yDsQe0Io6s38S4tTz4+Bsqv7N0ISvKR9qbf6SYB+MC X-Received: by 2002:a50:fc8e:: with SMTP id f14mr9629203edq.83.1573212661628; Fri, 08 Nov 2019 03:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573212661; cv=none; d=google.com; s=arc-20160816; b=kCfhh9oOhE9KKaKYblt8ug8zSmbPpIE7xFjOoubzYGw66aMfBpBLoBZJT9OWOrEtJg 8n+6pRoFi/5eYBt42H3J0YPPWA2U6Sc4Fd+nQ4cvqdQJKxdY1sJhpU3uhGwmbeBx0Vmc VBVa1CyC/6pEgP20muT2zxa4MeHe306wlV3YeDXogQtjyCJ5idrbBJYSz0g3VAum+8P2 1a7fPDwNWDbfTRtBanaBg8Xd9wdShBVAuTMQaxcK6kwlo3VsyB7iokpDeYcn0evsn5EH YoHhXgDAnpejBMoitymb+NUQ4zo4SZouHV2qrqirFzscGZ/Uqgox3ngBf1WymmYKvWp1 wJbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date; bh=ep9iJT4UcpfIjdeA1O2fRdU/PcRRjV9iqyxNs5fm8XE=; b=zgZOo0u5fRciRQj9yw6lTS728Y4KY2BhLrTzpepFrDW/0I+s3yhmcFDwkgzLspzgud XoZrhvytE/+JcEHsft8KoaPuzAYQauBMPN4PatOBAAhlSiZ0pVI3XA3xNGbwKgmQlRqG F5EdTGAih7firlyR5KL866zlYfG8KtDk/dYDVESKLTR3xZiiCaVO5XnEShgBAbQCJLjE JSuwLqELV+Y6zCI68QThQOs9ek2XFaX4ljAUWmB88jYUed/t/UVfcdVncNJil8bVeIa0 tjkwLlBjxqcewDk8Ng1JylpYTLxYURR7fxWPRPmUgmZnHRTUiK6iXT3tTgMWwRUrd91N z7tA== ARC-Authentication-Results: i=1; mx.google.com; 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 e6si4711765edc.238.2019.11.08.03.30.37; Fri, 08 Nov 2019 03:31:01 -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; 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 S1731358AbfKHL3z convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Nov 2019 06:29:55 -0500 Received: from hermes.aosc.io ([199.195.250.187]:34250 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbfKHL3y (ORCPT ); Fri, 8 Nov 2019 06:29:54 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id C845041447; Fri, 8 Nov 2019 11:29:51 +0000 (UTC) Date: Fri, 08 Nov 2019 19:29:21 +0800 In-Reply-To: <20191107214514.kcz42mcehyrrif4o@core.my.home> References: <20191020134229.1216351-3-megous@megous.com> <20191107204645.13739-1-rikard.falkeborn@gmail.com> <20191107214514.kcz42mcehyrrif4o@core.my.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] phy: allwinner: Fix GENMASK misuse To: =?UTF-8?Q?Ond=C5=99ej_Jirman?= , Rikard Falkeborn CC: arnd@arndb.de, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, kishon@ti.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, mark.rutland@arm.com, mripard@kernel.org, paul.kocialkowski@bootlin.com, robh+dt@kernel.org, tglx@linutronix.de, wens@csie.org From: Icenowy Zheng Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2019年11月8日 GMT+08:00 上午5:45:14, "Ondřej Jirman" 写到: >Hello Rikard, > >On Thu, Nov 07, 2019 at 09:46:45PM +0100, Rikard Falkeborn wrote: >> Arguments are supposed to be ordered high then low. >> >> Signed-off-by: Rikard Falkeborn >> --- >> Spotted while trying to add compile time checks of GENMASK arguments. >> Patch has only been compile tested. > >thank you! > >Tested-by: Ondrej Jirman Does it affect or fix the performance? > >regards, > o. > >> drivers/phy/allwinner/phy-sun50i-usb3.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/phy/allwinner/phy-sun50i-usb3.c >b/drivers/phy/allwinner/phy-sun50i-usb3.c >> index 1169f3e83a6f..b1c04f71a31d 100644 >> --- a/drivers/phy/allwinner/phy-sun50i-usb3.c >> +++ b/drivers/phy/allwinner/phy-sun50i-usb3.c >> @@ -49,7 +49,7 @@ >> #define SUNXI_LOS_BIAS(n) ((n) << 3) >> #define SUNXI_LOS_BIAS_MASK GENMASK(5, 3) >> #define SUNXI_TXVBOOSTLVL(n) ((n) << 0) >> -#define SUNXI_TXVBOOSTLVL_MASK GENMASK(0, 2) >> +#define SUNXI_TXVBOOSTLVL_MASK GENMASK(2, 0) >> >> struct sun50i_usb3_phy { >> struct phy *phy; >> -- >> 2.24.0 >>