Re: [PATCH net-next V2 1/5] net: lan743x: Add SFP support check flag

From: Raju Lakkaraju
Date: Thu Sep 12 2024 - 02:18:35 EST


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@xxxxxxxxxxxxx>
> > ---
> > 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