From: Denis Pryazhennikov <denis.pryazhenni...@arknetworks.am>

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

Signed-off-by: Denis Pryazhennikov <denis.pryazhenni...@arknetworks.am>
Reviewed-by: Andy Moreton <andy.more...@amd.com>
Reviewed-by: Richard Houldsworth <richard.houldswo...@amd.com>
Reviewed-by: Ivan Malov <ivan.ma...@arknetworks.am>
---
 .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 <ricardo.salv...@linaro.org>
 Richael Zhuang <richael.zhu...@arm.com>
 Richard Donkin <richard.don...@corigine.com>
 Richard Eklycke <richard.ekly...@ericsson.com>
-Richard Houldsworth <rhoul...@xilinx.com> <rhouldswo...@solarflare.com>
+Richard Houldsworth <richard.houldswo...@amd.com> <rhoul...@xilinx.com> 
<rhouldswo...@solarflare.com>
 Richard Walsh <richard.wa...@intel.com>
 Rich Lane <rich.l...@bigswitch.com>
 Ricky Li <ricky...@intel.com>
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