Re: [PATCH net v2 2/2] net: sfp: avoid EEPROM read of absent SFP module

From: Andrew Lunn
Date: Thu Apr 06 2023 - 10:07:57 EST


On Thu, Apr 06, 2023 at 04:08:33PM +0300, Ivan Bornyakov wrote:
> If SFP module is not present, it is sensible to fail sfp_module_eeprom()
> and sfp_module_eeprom_by_page() early to avoid excessive I2C transfers
> which are garanteed to fail.
>
> Suggested-by: Andrew Lunn <andrew@xxxxxxx>
> Signed-off-by: Ivan Bornyakov <i.bornyakov@xxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew