|
@@ -1345,9 +1345,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
|
|
|
priv->netdev = netdev;
|
|
|
priv->dev = &pdev->dev;
|
|
|
|
|
|
- priv->rxdes0_edorr_mask = BIT(15);
|
|
|
- priv->txdes0_edotr_mask = BIT(15);
|
|
|
-
|
|
|
spin_lock_init(&priv->tx_lock);
|
|
|
|
|
|
/* initialize NAPI */
|
|
@@ -1381,6 +1378,16 @@ static int ftgmac100_probe(struct platform_device *pdev)
|
|
|
FTGMAC100_INT_PHYSTS_CHG |
|
|
|
FTGMAC100_INT_RPKT_BUF |
|
|
|
FTGMAC100_INT_NO_RXBUF);
|
|
|
+
|
|
|
+ if (of_machine_is_compatible("aspeed,ast2400") ||
|
|
|
+ of_machine_is_compatible("aspeed,ast2500")) {
|
|
|
+ priv->rxdes0_edorr_mask = BIT(30);
|
|
|
+ priv->txdes0_edotr_mask = BIT(30);
|
|
|
+ } else {
|
|
|
+ priv->rxdes0_edorr_mask = BIT(15);
|
|
|
+ priv->txdes0_edotr_mask = BIT(15);
|
|
|
+ }
|
|
|
+
|
|
|
if (pdev->dev.of_node &&
|
|
|
of_get_property(pdev->dev.of_node, "use-ncsi", NULL)) {
|
|
|
if (!IS_ENABLED(CONFIG_NET_NCSI)) {
|