aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-03-21 01:16:48 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-03-21 13:11:56 +0000
commit786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186 (patch)
tree926fecb2b1f6ce1e42ba7ef4c7aab8e68dfd214c /target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch
parent9470160c350d15f765c33d6c1db15d6c4709a64c (diff)
downloadupstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.tar.gz
upstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.tar.bz2
upstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.zip
kernel: delete Linux 5.4 config and patches
As the upcoming release will be based on Linux 5.10 only, remove all kernel configuration as well as patches for Linux 5.4. There were no targets still actively using Linux 5.4. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 3a14580411adfb75f9a44eded9f41245b9e44606)
Diffstat (limited to 'target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch')
-rw-r--r--target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch131
1 files changed, 0 insertions, 131 deletions
diff --git a/target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch b/target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch
deleted file mode 100644
index e17c2a7a4d..0000000000
--- a/target/linux/layerscape/patches-5.4/701-net-0055-sdk_fman-DPAA-dTSEC-ports-fail-to-work-when-link-cha.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-From 2b3d05ed1cb560b3a0b0721435c2fd73a19bd9bc Mon Sep 17 00:00:00 2001
-From: Iordache Florinel-R70177 <florinel.iordache@nxp.com>
-Date: Mon, 29 May 2017 09:25:24 +0300
-Subject: [PATCH] sdk_fman: DPAA-dTSEC ports fail to work when link changes
-
-Signed-off-by: Iordache Florinel-R70177 <florinel.iordache@nxp.com>
----
- .../freescale/sdk_fman/Peripherals/FM/MAC/dtsec.c | 57 ++++++++++++++++++----
- 1 file changed, 48 insertions(+), 9 deletions(-)
-
---- a/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/MAC/dtsec.c
-+++ b/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/MAC/dtsec.c
-@@ -386,6 +386,7 @@ static void FreeInitResources(t_Dtsec *p
- static t_Error GracefulStop(t_Dtsec *p_Dtsec, e_CommMode mode)
- {
- struct dtsec_regs *p_MemMap;
-+ int pollTimeout = 0;
-
- ASSERT_COND(p_Dtsec);
-
-@@ -408,16 +409,32 @@ static t_Error GracefulStop(t_Dtsec *p_D
- }
-
- if (mode & e_COMM_MODE_TX)
--#if defined(FM_GTS_ERRATA_DTSEC_A004) || defined(FM_GTS_AFTER_MAC_ABORTED_FRAME_ERRATA_DTSEC_A0012)
-- if (p_Dtsec->fmMacControllerDriver.fmRevInfo.majorRev == 2)
-- DBG(INFO, ("GTS not supported due to DTSEC_A004 errata."));
--#else /* not defined(FM_GTS_ERRATA_DTSEC_A004) ||... */
--#ifdef FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014
-- DBG(INFO, ("GTS not supported due to DTSEC_A0014 errata."));
--#else /* FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014 */
-+ {
-+#if defined(FM_GTS_ERRATA_DTSEC_A004)
-+ if (p_Dtsec->fmMacControllerDriver.fmRevInfo.majorRev == 2)
-+ DBG(INFO, ("GTS not supported due to DTSEC_A004 errata."));
-+#else /* not defined(FM_GTS_ERRATA_DTSEC_A004) */
-+
- fman_dtsec_stop_tx(p_MemMap);
--#endif /* FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014 */
--#endif /* defined(FM_GTS_ERRATA_DTSEC_A004) ||... */
-+
-+#if defined(FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014) || defined(FM_GTS_AFTER_MAC_ABORTED_FRAME_ERRATA_DTSEC_A0012)
-+ XX_UDelay(10);
-+#endif /* FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014 || FM_GTS_AFTER_MAC_ABORTED_FRAME_ERRATA_DTSEC_A0012 */
-+#endif /* defined(FM_GTS_ERRATA_DTSEC_A004) */
-+ }
-+
-+ /* Poll GRSC/GTSC bits in IEVENT register until both are set */
-+#if defined(FM_GRS_ERRATA_DTSEC_A002) || defined(FM_GTS_ERRATA_DTSEC_A004) || defined(FM_GTS_AFTER_MAC_ABORTED_FRAME_ERRATA_DTSEC_A0012) || defined(FM_GTS_UNDERRUN_ERRATA_DTSEC_A0014) || defined(FM_GTS_AFTER_DROPPED_FRAME_ERRATA_DTSEC_A004839)
-+ XX_UDelay(10);
-+#else
-+ while (fman_dtsec_get_event(p_MemMap, DTSEC_IMASK_GRSCEN | DTSEC_IMASK_GTSCEN) != (DTSEC_IMASK_GRSCEN | DTSEC_IMASK_GTSCEN))
-+ {
-+ if (pollTimeout == 100)
-+ break;
-+ XX_UDelay(1);
-+ pollTimeout++;
-+ }
-+#endif
-
- return E_OK;
- }
-@@ -632,7 +649,12 @@ static t_Error DtsecSetTxPauseFrames(t_H
- " value should be greater than 320."));
- #endif /* FM_BAD_TX_TS_IN_B_2_B_ERRATA_DTSEC_A003 */
-
-+ GracefulStop(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- fman_dtsec_set_tx_pause_frames(p_Dtsec->p_MemMap, pauseTime);
-+
-+ GracefulRestart(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- return E_OK;
- }
-
-@@ -653,8 +675,12 @@ static t_Error DtsecRxIgnoreMacPause(t_H
- SANITY_CHECK_RETURN_ERROR(p_Dtsec, E_INVALID_STATE);
- SANITY_CHECK_RETURN_ERROR(!p_Dtsec->p_DtsecDriverParam, E_INVALID_STATE);
-
-+ GracefulStop(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- fman_dtsec_handle_rx_pause(p_Dtsec->p_MemMap, accept_pause);
-
-+ GracefulRestart(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- return E_OK;
- }
-
-@@ -787,8 +813,13 @@ static t_Error DtsecModifyMacAddress (t_
- /* Initialize MAC Station Address registers (1 & 2) */
- /* Station address have to be swapped (big endian to little endian */
- p_Dtsec->addr = ENET_ADDR_TO_UINT64(*p_EnetAddr);
-+
-+ GracefulStop(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- fman_dtsec_set_mac_address(p_Dtsec->p_MemMap, (uint8_t *)(*p_EnetAddr));
-
-+ GracefulRestart(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- return E_OK;
- }
-
-@@ -1076,8 +1107,12 @@ static t_Error DtsecSetWakeOnLan(t_Handl
- SANITY_CHECK_RETURN_ERROR(p_Dtsec, E_INVALID_STATE);
- SANITY_CHECK_RETURN_ERROR(!p_Dtsec->p_DtsecDriverParam, E_INVALID_STATE);
-
-+ GracefulStop(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- fman_dtsec_set_wol(p_Dtsec->p_MemMap, en);
-
-+ GracefulRestart(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- return E_OK;
- }
-
-@@ -1098,11 +1133,15 @@ static t_Error DtsecAdjustLink(t_Handle
- enet_speed = (enum enet_speed) ENET_SPEED_FROM_MODE(p_Dtsec->enetMode);
- p_Dtsec->halfDuplex = !fullDuplex;
-
-+ GracefulStop(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- err = fman_dtsec_adjust_link(p_Dtsec->p_MemMap, enet_interface, enet_speed, fullDuplex);
-
- if (err == -EINVAL)
- RETURN_ERROR(MAJOR, E_CONFLICT, ("Ethernet interface does not support Half Duplex mode"));
-
-+ GracefulRestart(p_Dtsec, e_COMM_MODE_RX_AND_TX);
-+
- return (t_Error)err;
- }
-