From: Ido Schimmel <idosch@nvidia.com>
This patchset contains small patches for various issues I noticed while
working on the module EEPROM parsing code.
v2:
* Patch #1: Do not assume the CLEI code is NULL terminated
Ido Schimmel (7):
cmis: Fix CLEI code parsing
cmis: Fix wrong define name
cmis: Correct comment
sff-8636: Remove incorrect comment
sff-8636: Fix incorrect function name
sff-8636: Convert if statement to switch-case
sff-8636: Remove extra blank lines
cmis.c | 12 +++++++-----
cmis.h | 6 +++---
qsfp.c | 18 +++++++++---------
3 files changed, 19 insertions(+), 17 deletions(-)
--
2.31.1
From: Ido Schimmel <idosch@nvidia.com>
In CMIS, unlike SFF-8636, there is no presence indication for the CLEI
code (Common Language Equipment Identification) field. The field is
always present, but might not be supported. In which case, "a value of
all ASCII 20h (spaces) shall be entered".
Therefore, remove the erroneous check which seems to be influenced from
SFF-8636 and only print the string if it is supported and has a non-zero
length.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
cmis.c | 8 +++++---
cmis.h | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
From: Ido Schimmel <idosch@nvidia.com>
The file is concerned with CMIS support, not QSFP-DD which is the
physical form factor.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
cmis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -64,7 +64,7 @@staticstructsff8636_aw_flags{constchar*str;/* Human-readable string, null at the end */-intoffset;/* A2-relative address offset */+intoffset;__u8value;/* Alarm is on if (offset & value) != 0. */}sff8636_aw_flags[]={{"Laser bias current high alarm (Chan 1)",
From: Ido Schimmel <idosch@nvidia.com>
The indentation is wrong and the statement can be more clearly
represented using a switch-case statement. Convert it.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
qsfp.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
On Fri, Oct 01, 2021 at 06:06:20PM +0300, Ido Schimmel wrote:
From: Ido Schimmel <idosch@nvidia.com>
This patchset contains small patches for various issues I noticed while
working on the module EEPROM parsing code.
v2:
* Patch #1: Do not assume the CLEI code is NULL terminated
Hello:
This series was applied to ethtool/ethtool.git (master)
by Michal Kubecek [off-list ref]:
On Fri, 1 Oct 2021 18:06:20 +0300 you wrote:
From: Ido Schimmel <idosch@nvidia.com>
This patchset contains small patches for various issues I noticed while
working on the module EEPROM parsing code.
v2:
* Patch #1: Do not assume the CLEI code is NULL terminated
[...]