DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v2] net/bnxt: fix issue reading sff8436 sfp eeproms
@ 2024-08-12 10:34 Peter Morrow
  2024-10-24  2:05 ` Ajit Khaparde
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Morrow @ 2024-08-12 10:34 UTC (permalink / raw)
  To: dev; +Cc: Peter Morrow, Ajit Khaparde, Somnath Kotur

From: Peter Morrow <peter@graphiant.com>

If a SFP which supports SFF-8436 is present then
currently the DDM information present in the eeprom
is not read. Furthermore bnxt_get_module_eeprom()
will return -EINVAL for these eeproms since the
length of these eeproms is 512 bytes but we are
only ever selecting 2 pages (256 bytes) to read.

Signed-off-by: Peter Morrow <peter@graphiant.com>
---
Corrected sob email address.

 drivers/net/bnxt/bnxt_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index e63febe782..8c4608a1b9 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -4130,7 +4130,6 @@ static int bnxt_get_module_eeprom(struct rte_eth_dev *dev,
 
 	switch (module_info[0]) {
 	case SFF_MODULE_ID_SFP:
-		module_info[SFF_DIAG_SUPPORT_OFFSET] = 0;
 		if (module_info[SFF_DIAG_SUPPORT_OFFSET]) {
 			pg_addr[2] = I2C_DEV_ADDR_A2;
 			pg_addr[3] = I2C_DEV_ADDR_A2;
-- 
2.39.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] net/bnxt: fix issue reading sff8436 sfp eeproms
  2024-08-12 10:34 [PATCH v2] net/bnxt: fix issue reading sff8436 sfp eeproms Peter Morrow
@ 2024-10-24  2:05 ` Ajit Khaparde
  0 siblings, 0 replies; 2+ messages in thread
From: Ajit Khaparde @ 2024-10-24  2:05 UTC (permalink / raw)
  To: Peter Morrow; +Cc: dev, Peter Morrow

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

On Mon, Aug 12, 2024 at 3:34 AM Peter Morrow <pdmorrow@gmail.com> wrote:
>
> From: Peter Morrow <peter@graphiant.com>
>
> If a SFP which supports SFF-8436 is present then
> currently the DDM information present in the eeprom
> is not read. Furthermore bnxt_get_module_eeprom()
> will return -EINVAL for these eeproms since the
> length of these eeproms is 512 bytes but we are
> only ever selecting 2 pages (256 bytes) to read.
>
> Signed-off-by: Peter Morrow <peter@graphiant.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Patch applied to dpdk-next-net-brcm for-next-net branch.

> ---
> Corrected sob email address.
>
>  drivers/net/bnxt/bnxt_ethdev.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index e63febe782..8c4608a1b9 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -4130,7 +4130,6 @@ static int bnxt_get_module_eeprom(struct rte_eth_dev *dev,
>
>         switch (module_info[0]) {
>         case SFF_MODULE_ID_SFP:
> -               module_info[SFF_DIAG_SUPPORT_OFFSET] = 0;
>                 if (module_info[SFF_DIAG_SUPPORT_OFFSET]) {
>                         pg_addr[2] = I2C_DEV_ADDR_A2;
>                         pg_addr[3] = I2C_DEV_ADDR_A2;
> --
> 2.39.2
>

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-24  2:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-12 10:34 [PATCH v2] net/bnxt: fix issue reading sff8436 sfp eeproms Peter Morrow
2024-10-24  2:05 ` Ajit Khaparde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).