Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96AF3C433F5 for ; Thu, 7 Apr 2022 12:28:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DFEC83BBE; Thu, 7 Apr 2022 14:28:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 16CCF83D05; Thu, 7 Apr 2022 14:28:44 +0200 (CEST) Received: from mail-m17640.qiye.163.com (mail-m17640.qiye.163.com [59.111.176.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 777D18209C for ; Thu, 7 Apr 2022 14:28:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=david.wu@rock-chips.com Received: from [172.16.12.94] (unknown [58.22.7.114]) by mail-m17640.qiye.163.com (Hmail) with ESMTPA id 2B0A2540674; Thu, 7 Apr 2022 20:28:27 +0800 (CST) Message-ID: <2d0fe8c8-0f91-ebb5-57f0-d55f255cd43c@rock-chips.com> Date: Thu, 7 Apr 2022 20:28:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/9] net: gmac_rockchip: Fix misuse of GENMASK macro Content-Language: en-US To: Kever Yang , =?UTF-8?Q?Pierre-Cl=c3=a9ment_Tosi?= , u-boot@lists.denx.de Cc: Joe Hershberger , Heiko Stuebner , Tom Rini References: <20220316153948.197650-1-ptosi@google.com> From: David Wu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUlKS0tKN1dZLVlBSVdZDwkaFQgSH1lBWRlCSEpWThhITEhLTB 9OH0JCVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWU9LSFVKSktITUpVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PBQ6Dgw6Mj5OP08fAU4tVhkc NTIaCxVVSlVKTU9CSEhPTktMTEJPVTMWGhIXVR8aDRIfVQwOOwkUGBBWGBMSCwhVGBQWRVlXWRIL WUFZTkNVSUlVTFVKSk9ZV1kIAVlBSEpCQjcG X-HM-Tid: 0a8003ff5836d995kuws2b0a2540674 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Pierre-Clément, Thanks for your correction, there was wrong mask here. Reviewed-by: David Wu 在 2022/4/6 23:08, Kever Yang 写道: > Add David, > > Hi David, > >     Could you help to check this patch? > > > Thanks, > - Kever > On 2022/3/16 23:39, Pierre-Clément Tosi wrote: >> Swap the arguments as that seems to have been the author's intention. >> >> Note: This fix wasn't tested on hardware and will result in more bits >>        being set by the underlying writel() in rk_clrsetreg(), which >>        might bring unexpected behavioural changes. >> >> Fixes: b07911840025 ("net: gmac_rockchip: add support for px30") >> Signed-off-by: Pierre-Clément Tosi >> Cc: Joe Hershberger >> Cc: Heiko Stuebner >> Cc: Kever Yang >> Cc: Tom Rini >> --- >>   drivers/net/gmac_rockchip.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c >> index 04008d2b19..0ecbcdf641 100644 >> --- a/drivers/net/gmac_rockchip.c >> +++ b/drivers/net/gmac_rockchip.c >> @@ -350,7 +350,7 @@ static void px30_gmac_set_to_rmii(struct >> gmac_rockchip_plat *pdata) >>       struct px30_grf *grf; >>       enum { >>           PX30_GMAC_PHY_INTF_SEL_SHIFT = 4, >> -        PX30_GMAC_PHY_INTF_SEL_MASK  = GENMASK(4, 6), >> +        PX30_GMAC_PHY_INTF_SEL_MASK  = GENMASK(6, 4), >>           PX30_GMAC_PHY_INTF_SEL_RMII  = BIT(6), >>       };