From: Denis Pryazhennikov <[email protected]>

Add handling for the port mode in the Medford4 driver logic,
enabling support for two single network ports.

Signed-off-by: Denis Pryazhennikov <[email protected]>
Reviewed-by: Andy Moreton <[email protected]>
Reviewed-by: Richard Houldsworth <[email protected]>
Reviewed-by: Ivan Malov <[email protected]>
---
 .mailmap                               |  2 +-
 drivers/common/sfc_efx/base/ef10_nic.c | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index afebbb32e6..1fbad1e1ae 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1295,7 +1295,7 @@ Ricardo Salveti <[email protected]>
 Richael Zhuang <[email protected]>
 Richard Donkin <[email protected]>
 Richard Eklycke <[email protected]>
-Richard Houldsworth <[email protected]> <[email protected]>
+Richard Houldsworth <[email protected]> <[email protected]> 
<[email protected]>
 Richard Walsh <[email protected]>
 Rich Lane <[email protected]>
 Ricky Li <[email protected]>
diff --git a/drivers/common/sfc_efx/base/ef10_nic.c 
b/drivers/common/sfc_efx/base/ef10_nic.c
index 0e00ff64d4..e28978e4cc 100644
--- a/drivers/common/sfc_efx/base/ef10_nic.c
+++ b/drivers/common/sfc_efx/base/ef10_nic.c
@@ -1972,6 +1972,16 @@ static struct ef10_external_port_map_s {
                (1U << TLV_PORT_MODE_4x1_4x1),                  /* mode 26 */
                { 0, 4, EFX_EXT_PORT_NA, EFX_EXT_PORT_NA }
        },
+       /*
+        * Modes that on Medford4 allocate each port number to a separate cage.
+        *      port 0 -> cage 1
+        *      port 1 -> cage 2
+        */
+       {
+               EFX_FAMILY_MEDFORD4,
+               (1U << TLV_PORT_MODE_1x4_1x4),                  /* mode 3 */
+               { 0, 1, EFX_EXT_PORT_NA, EFX_EXT_PORT_NA }
+       },
        /* FIXME: review Medford4 port modes */
 };
 
-- 
2.39.5

Reply via email to