From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 40CCB28371; Mon, 20 Oct 2025 00:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760919819; cv=none; b=b083koyHU8VvnjREznO/udpYPP3C0gXew+1VT9+cHN3AHDFi2vQfFxUXe5j0mz6p3DsPseiPfZvo25meXmvtkLcpGRt7tjVTXlydD6BdVkX8yXxnbPyCPkyqOlH2cEl6oeMDV8Xw0+VY9ub5TOZpTyuyG4ilhYkh7o5tI6Q3bSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760919819; c=relaxed/simple; bh=HiIULQSuyslydFWpUxy0SQSmiRBnl+8P9lhWbi1iaPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IEZ2/Y4ue1TlrAZxoN4FwrulkZy85oWi6WlsGwkRjW6u2QqoDCpx1tmG5qmzYIPcgqQFZf9IA7W/LCW8GbonjcNTerqQu1iml4e4R7dxsZ5TmWSLepgOLjo+xT0yZkBAzAnnBfSJt6E8ZhQhgiXk8xpaQnoDd30m6iQ2xc/ftT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2) (envelope-from ) id 1vAdgL-000000000rQ-2ti0; Mon, 20 Oct 2025 00:23:25 +0000 Date: Mon, 20 Oct 2025 01:23:12 +0100 From: Daniel Golle To: Jakub Kicinski Cc: Hauke Mehrtens , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Paolo Abeni , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Schirm , Lukas Stockmann , Alexander Sverdlin , Peter Christen , Avinash Jayaraman , Bing tao Xu , Liang Xu , Juraj Povazanec , "Fanni (Fang-Yi) Chan" , "Benny (Ying-Tsan) Weng" , "Livia M. Rosu" , John Crispin Subject: Re: [PATCH net-next v3 4/7] net: dsa: lantiq_gswip: manually convert remaining uses of read accessors Message-ID: References: <20251019152545.524ac596@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: <20251019152545.524ac596@kernel.org> On Sun, Oct 19, 2025 at 03:25:45PM -0700, Jakub Kicinski wrote: > On Sun, 19 Oct 2025 13:48:36 +0100 Daniel Golle wrote: > > + for (i = 0; i < ARRAY_SIZE(tbl->key); i++) { > > + err = regmap_read(priv->gswip, GSWIP_PCE_TBL_KEY(i), &tmp); > > + if (err) > > + return err; > > + tbl->key[i] = tmp; > > + } > > + for (i = 0; i < ARRAY_SIZE(tbl->val); i++) { > > + err = regmap_read(priv->gswip, GSWIP_PCE_TBL_VAL(i), &tmp); > > + if (err) > > + return err; > > + tbl->val[i] = tmp; > > + } > > > > - tbl->mask = gswip_switch_r(priv, GSWIP_PCE_TBL_MASK); > > + err = regmap_read(priv->gswip, GSWIP_PCE_TBL_MASK, &tmp); > > + if (err) > > + return err; > > > > - crtl = gswip_switch_r(priv, GSWIP_PCE_TBL_CTRL); > > + tbl->mask = tmp; > > + err = regmap_read(priv->gswip, GSWIP_PCE_TBL_CTRL, &tmp); > > + if (err) > > + return err; > > Coccicheck points out we're holding a mutex here, can't return directly. Correct. Thank you for pointing that out. I will fix this in v4.