aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-06-09 23:08:07 +0200
committerAlexander Couzens <lynxis@fe80.eu>2021-06-25 10:52:50 +0200
commit3fa01db4793e9aedb798df90a7889fc0124bb2c7 (patch)
tree03238e2c77605d72a45d3f28f51103a477f213c3 /target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
parentd50e129399e3e9016b63a2c6757245a5136697d5 (diff)
downloadupstream-3fa01db4793e9aedb798df90a7889fc0124bb2c7.tar.gz
upstream-3fa01db4793e9aedb798df90a7889fc0124bb2c7.tar.bz2
upstream-3fa01db4793e9aedb798df90a7889fc0124bb2c7.zip
ramips: ethernet: ralink: add fe_reset_fe() to reset fe via reset controller
The dts defines the reset fe for all architectures. However the soc code used direct register access of the reset controller. Replace the custom soc reset with a generic fe_reset_fe(). Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
index ab3ac1e4f3..f36904950d 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
@@ -19,8 +19,6 @@
#include "mtk_eth_soc.h"
#include "mdio_rt2880.h"
-#define RT2880_RESET_FE BIT(18)
-
static void rt2880_init_data(struct fe_soc_data *data,
struct net_device *netdev)
{
@@ -33,11 +31,6 @@ static void rt2880_init_data(struct fe_soc_data *data,
/* netdev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM; */
}
-void rt2880_fe_reset(struct fe_priv *priv)
-{
- fe_reset(RT2880_RESET_FE);
-}
-
static int rt2880_fwd_config(struct fe_priv *priv)
{
int ret;
@@ -55,7 +48,6 @@ static int rt2880_fwd_config(struct fe_priv *priv)
struct fe_soc_data rt2880_data = {
.init_data = rt2880_init_data,
- .reset_fe = rt2880_fe_reset,
.fwd_config = rt2880_fwd_config,
.pdma_glo_cfg = FE_PDMA_SIZE_8DWORDS,
.checksum_bit = RX_DMA_L4VALID,