mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 19:22:08 -04: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user