[openEuler-5.10 512/557] cxgb4: fix eeprom len when diagnostics not implemented