Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp852670rwl; Thu, 5 Jan 2023 05:35:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsQdWuXwt0zDX1u9iA19pm2l5nlkAQStdUtDdpEQwrVjaJam7KEYFucJVvEkUWs3RqcRfkF X-Received: by 2002:a17:907:a4c3:b0:84d:150d:5006 with SMTP id vq3-20020a170907a4c300b0084d150d5006mr428000ejc.49.1672925755735; Thu, 05 Jan 2023 05:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672925755; cv=none; d=google.com; s=arc-20160816; b=cfTfsba5PvabAYiAb8aPZa/Y3eynyrvkULgZVk7L1nEsGYNZCZj9uVZ7wKf3FSFPcU aVjL8OojgoIM1Y9dy7XKqWdMiekm+hjpzkrZzD3kFiZwuHicoe9+up3yxBv/0+T0Asob VFUNWTlUcDcR1RbxfaNUMHhRKp+nTskJa4A3HuFt0ufsLTzhbsTdeYqpIHVGSg0z2Jtz HxLUaea0XW3Wo6w/K/5SRQmVzdEYzMMUj6pGDkVuFQUJiQGIHN5e7T/BGT81WBgKrnd+ I6AM3r5XZ9TOp2VWIBxOD0qww/s3CwvuzEl/qjUPFTPOphv1l2+P56CKdnP+V4I6N+Ar MNUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mMw90mBApb5mSLyBpqWMX7qYa32Iu+xzYV33CTk8gXA=; b=cC7pWmf6XLjyweDzst3nuCZ8EO2smc9Cj6taEz5v+WgfZK9bhQCr7o9Cf/wyi7GsVL vj3tkrJ4QVMJzj63aT46/1AsbzmdcaS5auoPtA/iJB7e4pSDV3dcvtbE5zvptFxYQwUV Ey733/yHNv6GH0pIf9oRIxpqGKbDimGT7MGTqlAzCrrRM7KPGUgZomYDgB7kbCVuIMs/ KfIAAVEHV5ftn60uMLzlWU0/y91S2QRH07WNl25LcycaCMRcm4Jox5AiIuo57uYqnfv6 a/Kvh/kQKajZgyFt/viwieaF9uF4Osih6f2/6qdVs4EnJhQhWbp5RFZq+Vl37R4DIyCe QVqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qTBcf5JB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn7-20020a1709070d0700b007c0b7b5ff5csi36653276ejc.646.2023.01.05.05.35.42; Thu, 05 Jan 2023 05:35:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qTBcf5JB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233501AbjAEMyN (ORCPT + 56 others); Thu, 5 Jan 2023 07:54:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233489AbjAEMx4 (ORCPT ); Thu, 5 Jan 2023 07:53:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BDAE5C1C6; Thu, 5 Jan 2023 04:53:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7EA18619F2; Thu, 5 Jan 2023 12:53:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BEADC433D2; Thu, 5 Jan 2023 12:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672923185; bh=8sOhPJ6cEQDBx/95tSr2Zy0CaclDzG+It2Q7DiPrlYs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qTBcf5JBi2vKT7ruzwq9M5Q0/T5Qtl6xJgqhbME/6TBDRC0XzlDFnU67xkFML5lp9 +Pfe6U53KBlwvQce7HwUD288NYvt3EqwM6S2yHQghy6c75/zEqmFSOxyH3I8Ez6vC6 YtrzsYPZ+JJXcINRfhvAKvWK4zphjc25MrrRWEWgXU4Yme3NMztUXHtPusYvbsu9bK S9jH5rcamdXGkuisOWWvmecE5lfPp4NNMeJkln0OXHowjqZiOA7MULv3NIPIy5w5Wl pIqm2j51ZURq9KHLd7ebECHdtVyOYwDbkkLdq1Z2e4N6quFUcdDDFDFGDJPqo/Gwb2 TL0+fjmJGakAw== Date: Thu, 5 Jan 2023 14:53:01 +0200 From: Leon Romanovsky To: Hariprasad Kelam Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, sgoutham@marvell.com, lcherian@marvell.com, gakula@marvell.com, jerinj@marvell.com, sbhatta@marvell.com, Angela Czubak Subject: Re: [net PATCH] octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable Message-ID: References: <20230104163220.954-1-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104163220.954-1-hkelam@marvell.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2023 at 10:02:20PM +0530, Hariprasad Kelam wrote: > From: Angela Czubak > > PF netdev can request AF to enable or disable reception and transmission > on assigned CGX::LMAC. The current code instead of disabling or enabling > 'reception and transmission' also disables/enable the LMAC. This patch > fixes this issue. > > Fixes: 1435f66a28b4 ("octeontx2-af: CGX Rx/Tx enable/disable mbox handlers") > Signed-off-by: Angela Czubak > Signed-off-by: Hariprasad Kelam > --- > drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > index b2b71fe80d61..724df6398bbe 100644 > --- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > +++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > @@ -774,9 +774,9 @@ int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable) > > cfg = cgx_read(cgx, lmac_id, CGXX_CMRX_CFG); > if (enable) > - cfg |= CMR_EN | DATA_PKT_RX_EN | DATA_PKT_TX_EN; > + cfg |= DATA_PKT_RX_EN | DATA_PKT_TX_EN; > else > - cfg &= ~(CMR_EN | DATA_PKT_RX_EN | DATA_PKT_TX_EN); > + cfg &= ~(DATA_PKT_RX_EN | DATA_PKT_TX_EN); I don't see any usage of CMR_EN after this change. You can delete that define too. Thanks > cgx_write(cgx, lmac_id, CGXX_CMRX_CFG, cfg); > return 0; > } > -- > 2.17.1 >