[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZuKGNc3GaALRYnuA@HYD-DK-UNGSW21.microchip.com>
Date: Thu, 12 Sep 2024 11:42:05 +0530
From: Raju Lakkaraju <Raju.Lakkaraju@...rochip.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
CC: Raju Lakkaraju <Raju.Lakkaraju@...rochip.com>, <netdev@...r.kernel.org>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <bryan.whitehead@...rochip.com>,
<UNGLinuxDriver@...rochip.com>, <linux@...linux.org.uk>,
<maxime.chevallier@...tlin.com>, <rdunlap@...radead.org>, <andrew@...n.ch>,
<Steen.Hegelund@...rochip.com>, <daniel.machon@...rochip.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next V2 1/5] net: lan743x: Add SFP support check flag
Hi Christophe,
Thank you for review the patches.
The 09/11/2024 18:44, Christophe JAILLET wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Le 11/09/2024 à 18:10, Raju Lakkaraju a écrit :
> > Support for SFP in the PCI11x1x devices is indicated by the "is_sfp_support_en"
> > flag in the STRAP register. This register is loaded at power up from the
> > PCI11x1x EEPROM contents (which specify the board configuration).
> >
> > Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@...rochip.com>
> > ---
> > Change List:
> > ============
> > V1 -> V2:
> > - Change variable name from "chip_rev" to "fpga_rev"
> > V0 -> V1:
> > - No changes
> >
> > drivers/net/ethernet/microchip/lan743x_main.c | 34 +++++++++++++++----
> > drivers/net/ethernet/microchip/lan743x_main.h | 3 ++
> > 2 files changed, 30 insertions(+), 7 deletions(-)
> >
> > netif_dbg(adapter, drv, adapter->netdev,
> > "SGMII I/F %sable\n", adapter->is_sgmii_en ? "En" : "Dis");
> > + netif_dbg(adapter, drv, adapter->netdev,
> > + "SFP support %sable\n", adapter->is_sfp_support_en ?
> > + "En" : "Dis");
>
> Hi,
>
> Maybe using str_enable_disable() or str_enabled_disabled()?
>
Accepted. I will use str_enabled_disabled( ).
> CJ
>
> > +
> > + return 0;
> > }
> >
>
--
Thanks,
Raju
Powered by blists - more mailing lists