From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-op-o12.zoho.com (sender4-op-o12.zoho.com [136.143.188.12]) (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 80F6D19A for ; Thu, 12 Jun 2025 19:17:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.12 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749755843; cv=pass; b=jd8mnC04v59NcXmAaRvxX5zH61osWvEncNX0pePQpIdIxiXGttUj5qFXy+gIehszMRJINE0rejojcsBof6qHTqNmoHhVsznjVkDbyPHjo6mAN/juMurKmt70UPmXirgEChU/vwbhZyPPa5z5a+yI31BuWGyqTJOV1sHt5S/JFI0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749755843; c=relaxed/simple; bh=sXrcw6tTsI/Mmww8u6JL7diNrWJf4Q7mj9O1jvIgM/8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i9/4K2ZHfMWjIURMe+r7nv5dGXh5deF84VaO3RfiAhrSmAcj+T0ItCj4vfulgeq82HByF9/dWFgW1nIP7bPdKQzroSl9SBdNVZx18sQ9sNZ3jhEZMySGBs+MvSTFqrLqg/z9KLhLkgFrA4TcJCcBU7ZehrX/QRFvh5Y6lDeMZ+4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=jdBSKwBQ; arc=pass smtp.client-ip=136.143.188.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="jdBSKwBQ" ARC-Seal: i=1; a=rsa-sha256; t=1749755784; cv=none; d=zohomail.com; s=zohoarc; b=EFH1gBrXRxnEbdwN8NuKJttxVfo8otLAVWOqMjccSlAJPieQGoreQOALJFOFSNWr7sTm1nnCQDuu/HsQkPOtQ/3OSYvQ4RyjyXBtSHjqSQpOvG+rol3y4CMkvAvX4S8y9ER4JY1+I1De1RTZCspz3nMo9hgIs9GEa29Bt5D3wzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749755784; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=sAz8u8Of8VgXN3BQQ00U/F57NlhrS7p1nuOTfYJkSLY=; b=gx56POiNw+tPyzwOMUrXJdu8LXA3Wx0Fc7fpLgAxdL2NAvF06jUmFzQXXgdclEPvSot/sq5wjbKw4wosmJTvqvr3D2Ol7BcVPeIHRceQLb93o93NE842mu2MIU+ewqzhHXcOyn6sA+I1W7R4ndFqRO48pbEglbjFxLxjTpMHRfE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1749755783; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=sAz8u8Of8VgXN3BQQ00U/F57NlhrS7p1nuOTfYJkSLY=; b=jdBSKwBQJwbK7Wgb1BeOkKDHoXCKiMSRe7vNwtqecSYRDrLuqn7O5OZawJAn+DCb 1ShpLyDr//VBXzQCMKFW7XHKGS1I5U54aXGur+fPFzehkfen3wY4iloFKJZGU5HBeiY CPvZ+rLtAcn7WQvK9zh7a9yesjqizAMrfxYGbQiQ= Received: by mx.zohomail.com with SMTPS id 1749755781436118.00228707547853; Thu, 12 Jun 2025 12:16:21 -0700 (PDT) From: Nicolas Frattaroli To: Andrew Lunn Cc: Yury Norov , Rasmus Villemoes , Jaehoon Chung , Ulf Hansson , Heiko Stuebner , Shreeya Patel , Mauro Carvalho Chehab , Sandy Huang , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Vinod Koul , Kishon Vijay Abraham I , Nicolas Frattaroli , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Shawn Lin , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Chanwoo Choi , MyungJoo Ham , Kyungmin Park , Qin Jian , Michael Turquette , Stephen Boyd , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , kernel@collabora.com, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-sound@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 15/20] net: stmmac: dwmac-rk: switch to HWORD_UPDATE macro Date: Thu, 12 Jun 2025 21:16:09 +0200 Message-ID: <10689894.nUPlyArG6x@workhorse> In-Reply-To: <5947475f-ef38-44cb-857e-0c7378023ccd@lunn.ch> References: <20250612-byeword-update-v1-0-f4afb8f6313f@collabora.com> <20250612-byeword-update-v1-15-f4afb8f6313f@collabora.com> <5947475f-ef38-44cb-857e-0c7378023ccd@lunn.ch> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" On Thursday, 12 June 2025 21:08:20 Central European Summer Time Andrew Lunn wrote: > On Thu, Jun 12, 2025 at 08:56:17PM +0200, Nicolas Frattaroli wrote: > > The era of hand-rolled HIWORD_UPDATE macros is over, at least for those > > drivers that use constant masks. > > > > Like many other Rockchip drivers, dwmac-rk has its own HIWORD_UPDATE > > macro. Its semantics allow us to redefine it as a wrapper to the shared > > bitfield.h HWORD_UPDATE macros though. > > > > Replace the implementation of this driver's very own HIWORD_UPDATE macro > > with an instance of HWORD_UPDATE from bitfield.h. This keeps the diff > > easily reviewable, while giving us more compile-time error checking. > > > > The related GRF_BIT macro is left alone for now; any attempt to rework > > the code to not use its own solution here would likely end up harder to > > review and less pretty for the time being. > > > > Signed-off-by: Nicolas Frattaroli > > Please split this out into a patch for net-next. I would be surprised if it didn't apply to net-next. > Also, Russell King has just posted a number of patches for this driver, > so you will probably want to wait for them to be merged, so you post > something which will merged without any fuzz. I would be surprised if an automatic merge did not produce correct code here, as I specifically replaced the implementation of the macro with an instance of the new macro and adjusted semantics on purpose. If it compiles, it's correct. Would you still prefer for me to re-send this patch based against net-next once the new macro is merged and within net-next? > > Andrew > Best regards, Nicolas Frattaroli