usleep_range(10, 20);
}
-void fe_reset_fe(struct fe_priv *priv)
+static void fe_reset_fe(struct fe_priv *priv)
{
if (!priv->resets)
return;
struct device_node *port;
int err;
- if (priv->soc->reset_fe)
- priv->soc->reset_fe(priv);
- else
- fe_reset_fe(priv);
+ fe_reset_fe(priv);
if (priv->soc->switch_init) {
err = priv->soc->switch_init(priv);
#define MT7620A_FE_GDMA1_MAC_ADRL (MT7620A_GDMA_OFFSET + 0x0C)
#define MT7620A_FE_GDMA1_MAC_ADRH (MT7620A_GDMA_OFFSET + 0x10)
-#define MT7620A_RESET_FE BIT(21)
-#define MT7620A_RESET_ESW BIT(23)
#define MT7620A_RESET_EPHY BIT(24)
#define RT5350_TX_BASE_PTR0 (RT5350_PDMA_OFFSET + 0x00)
const u16 *reg_table;
void (*init_data)(struct fe_soc_data *data, struct net_device *netdev);
- void (*reset_fe)(struct fe_priv *priv);
void (*set_mac)(struct fe_priv *priv, unsigned char *mac);
int (*fwd_config)(struct fe_priv *priv);
void (*tx_dma)(struct fe_tx_dma *txd);
u32 fe_reg_r32(enum fe_reg reg);
void fe_reset(u32 reset_bits);
-void fe_reset_fe(struct fe_priv *priv);
static inline void *priv_netdev(struct fe_priv *priv)
{
}
}
-static void mt7620_fe_reset(struct fe_priv *priv)
-{
- fe_reset(MT7620A_RESET_FE | MT7620A_RESET_ESW);
-}
-
static void mt7620_rxcsum_config(bool enable)
{
if (enable)
static struct fe_soc_data mt7620_data = {
.init_data = mt7620_init_data,
- .reset_fe = mt7620_fe_reset,
.set_mac = mt7620_set_mac,
.fwd_config = mt7620_fwd_config,
.tx_dma = mt7620_tx_dma,