openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

commit e46f25d8056de8d92dd6fb0fdbc331444b38f802
parent f6c24f2f508aeea306a2e9f5ba93f476367d9010
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Thu, 11 Jul 2019 16:18:55 -0700

SDK-183655: Don't allow clearing of TOP_TSC_ENABLE during flexport operations

Devices: 56980_A0,56980_B0
Module: link

Symptom:
Flex operation causing link status flap in unrelated port macro

Diffstat:
Msdk-6.5.16/src/bcm/esw/xgs5/port.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sdk-6.5.16/src/bcm/esw/xgs5/port.c b/sdk-6.5.16/src/bcm/esw/xgs5/port.c @@ -4758,7 +4758,13 @@ _bcmi_xgs5_pm_enable(int unit, bcmi_xgs5_port_resource_bmp_t *pr_bmp, if (enable) { rval[i] |= (1 << offset); } else { - rval[i] &= ~(1 << offset); + /* Disabling of TOP_TSC_ENABLE for TH3 causes link flapping in + * PMs not being modified, so do not allow TOP_TSC_ENABLE + * to be disabled during TH3 flex + */ + if (!SOC_IS_TOMAHAWK3(unit)) { + rval[i] &= ~(1 << offset); + } } count[i]++; /* If shut down or power up many port blocks at the same time, PCI