mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
net: ftgmac100: Simplify condition on HW arbitration
The MAC ID is sufficient to indicate this is a ast2600. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com> Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-13-ad28a9067ea7@aspeedtech.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
0855b43d82
commit
96b4887a71
|
|
@ -2046,13 +2046,13 @@ static int ftgmac100_probe(struct platform_device *pdev)
|
|||
err = ftgmac100_setup_clk(priv);
|
||||
if (err)
|
||||
goto err;
|
||||
|
||||
/* Disable ast2600 problematic HW arbitration */
|
||||
if (priv->mac_id == FTGMAC100_AST2600)
|
||||
iowrite32(FTGMAC100_TM_DEFAULT,
|
||||
priv->base + FTGMAC100_OFFSET_TM);
|
||||
}
|
||||
|
||||
/* Disable ast2600 problematic HW arbitration */
|
||||
if (priv->mac_id == FTGMAC100_AST2600)
|
||||
iowrite32(FTGMAC100_TM_DEFAULT,
|
||||
priv->base + FTGMAC100_OFFSET_TM);
|
||||
|
||||
/* Default ring sizes */
|
||||
priv->rx_q_entries = priv->new_rx_q_entries = DEF_RX_QUEUE_ENTRIES;
|
||||
priv->tx_q_entries = priv->new_tx_q_entries = DEF_TX_QUEUE_ENTRIES;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user