From 942dc614706293cdedc7dede7dc09d8fdf9583f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 12:34:19 +0200 Subject: Adding upstream version 1:6.10. Signed-off-by: Daniel Baumann --- qsfp.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'qsfp.c') diff --git a/qsfp.c b/qsfp.c index a2921fb..a3a919d 100644 --- a/qsfp.c +++ b/qsfp.c @@ -1038,8 +1038,15 @@ sff8636_memory_map_init_pages(struct cmd_context *ctx, sff8636_request_init(&request, 0x3, SFF8636_PAGE_SIZE); ret = nl_get_eeprom_page(ctx, &request); - if (ret < 0) - return ret; + if (ret < 0) { + /* Page 03h is not available due to a bug in the driver. + * This is a non-fatal error and sff8636_dom_parse() + * handles this correctly. + */ + fprintf(stderr, "Failed to read Upper Page 03h, driver error?\n"); + return 0; + } + map->page_03h = request.data - SFF8636_PAGE_SIZE; return 0; -- cgit v1.2.3