From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEDA41798C; Sun, 10 Nov 2024 13:35:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731245747; cv=none; b=F3X856OoayEDwxeIdpZsCiw7KxqYqkS6hd8V33OV7xKVV6Prxm67dxZCbLuPcnzyIajFZTlYiqdTLtHRnuVVYh+h7BFk4xfi7WNJ0zbH+RqAyaiPbrzKvDl2ZmlMIZgNAmU+0m8pW6GbTzBNo0J7lAp+633n/O3oLmxEn886/ic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731245747; c=relaxed/simple; bh=/Jzva/lnUCOfdvqz4t7Og5xoYDHm+1gt3wfXfs0Sr7Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cwI55usKFmDN0FyNiFlLwf8zBAman2NCKECmhRI3M+9p4TiTTVCqN1DXtQjXpCUAzqEQLkRChfdz/q1ValGKz75R/LM+IPJrCTB+Ihu0MQXbsA6NbHDrTiSNW8QXP1GsD7zD4J5Th/+pSRR7R1mmx3soSoz5fizKbLu0ongJ0AM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BgCRP6kr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BgCRP6kr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E7FBC4CECD; Sun, 10 Nov 2024 13:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731245746; bh=/Jzva/lnUCOfdvqz4t7Og5xoYDHm+1gt3wfXfs0Sr7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BgCRP6kreVpFhy+lQT4TBD1fmiDazlrZiRMTe+UBlJ3EpIaiWGjLkSZ+0CjF+1GJF urnTqcnW3LPRAtnx40v/JVw8DANTMJ8blZO3Empp+4HEheBplcGchYdn0DCTyaWCIw 4BvKwazdIG7KXCtknQ1fmNKAny+pX9mb2Bz/DjA6njntGc5aaNSojuud7aJUTGfugQ DKcW5YVyWp0H/QJacUBCFnUAoO0ngUoeyeKO/1NIEk0iFzAiGViApAMB9ft2764eyS NO5+ZiQaYWcB/GF/RIgWT26HJc4xvcZbHWe2cXwzdiR3oGSRmK8MigWkUC9PhtiUu1 E7nR0Rw1OrQgQ== Date: Sun, 10 Nov 2024 13:35:40 +0000 From: Simon Horman To: Ley Foon Tan Cc: Alexandre Torgue , Jose Abreu , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lftan.linux@gmail.com Subject: Re: [PATCH net-next v3 2/3] net: stmmac: dwmac4: Fix the MTL_OP_MODE_*_MASK operation Message-ID: <20241110133540.GP4507@kernel.org> References: <20241107063637.2122726-1-leyfoon.tan@starfivetech.com> <20241107063637.2122726-3-leyfoon.tan@starfivetech.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241107063637.2122726-3-leyfoon.tan@starfivetech.com> On Thu, Nov 07, 2024 at 02:36:35PM +0800, Ley Foon Tan wrote: > In order to mask off the bits, we need to use the '~' operator to invert > all the bits of _MASK and clear them. > > Signed-off-by: Ley Foon Tan Reviewed-by: Simon Horman