| .. | .. |
|---|
| 288 | 288 | val &= ~NSS_COMMON_GMAC_CTL_PHY_IFACE_SEL; |
|---|
| 289 | 289 | break; |
|---|
| 290 | 290 | default: |
|---|
| 291 | | - dev_err(&pdev->dev, "Unsupported PHY mode: \"%s\"\n", |
|---|
| 292 | | - phy_modes(gmac->phy_mode)); |
|---|
| 293 | | - err = -EINVAL; |
|---|
| 294 | | - goto err_remove_config_dt; |
|---|
| 291 | + goto err_unsupported_phy; |
|---|
| 295 | 292 | } |
|---|
| 296 | 293 | regmap_write(gmac->nss_common, NSS_COMMON_GMAC_CTL(gmac->id), val); |
|---|
| 297 | 294 | |
|---|
| .. | .. |
|---|
| 308 | 305 | NSS_COMMON_CLK_SRC_CTRL_OFFSET(gmac->id); |
|---|
| 309 | 306 | break; |
|---|
| 310 | 307 | default: |
|---|
| 311 | | - dev_err(&pdev->dev, "Unsupported PHY mode: \"%s\"\n", |
|---|
| 312 | | - phy_modes(gmac->phy_mode)); |
|---|
| 313 | | - err = -EINVAL; |
|---|
| 314 | | - goto err_remove_config_dt; |
|---|
| 308 | + goto err_unsupported_phy; |
|---|
| 315 | 309 | } |
|---|
| 316 | 310 | regmap_write(gmac->nss_common, NSS_COMMON_CLK_SRC_CTRL, val); |
|---|
| 317 | 311 | |
|---|
| .. | .. |
|---|
| 328 | 322 | NSS_COMMON_CLK_GATE_GMII_TX_EN(gmac->id); |
|---|
| 329 | 323 | break; |
|---|
| 330 | 324 | default: |
|---|
| 331 | | - /* We don't get here; the switch above will have errored out */ |
|---|
| 332 | | - unreachable(); |
|---|
| 325 | + goto err_unsupported_phy; |
|---|
| 333 | 326 | } |
|---|
| 334 | 327 | regmap_write(gmac->nss_common, NSS_COMMON_CLK_GATE, val); |
|---|
| 335 | 328 | |
|---|
| .. | .. |
|---|
| 351 | 344 | plat_dat->bsp_priv = gmac; |
|---|
| 352 | 345 | plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; |
|---|
| 353 | 346 | plat_dat->multicast_filter_bins = 0; |
|---|
| 347 | + plat_dat->tx_fifo_size = 8192; |
|---|
| 348 | + plat_dat->rx_fifo_size = 8192; |
|---|
| 354 | 349 | |
|---|
| 355 | 350 | err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); |
|---|
| 356 | 351 | if (err) |
|---|
| .. | .. |
|---|
| 358 | 353 | |
|---|
| 359 | 354 | return 0; |
|---|
| 360 | 355 | |
|---|
| 356 | +err_unsupported_phy: |
|---|
| 357 | + dev_err(&pdev->dev, "Unsupported PHY mode: \"%s\"\n", |
|---|
| 358 | + phy_modes(gmac->phy_mode)); |
|---|
| 359 | + err = -EINVAL; |
|---|
| 360 | + |
|---|
| 361 | 361 | err_remove_config_dt: |
|---|
| 362 | 362 | stmmac_remove_config_dt(pdev, plat_dat); |
|---|
| 363 | 363 | |
|---|