]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
driver:net:stmmac: Disable DMA store and forward mode if platform data force_thresh_d...
[karo-tx-linux.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_platform.c
index da8be6e630961bac8478565741afe03b7b36a046..74a89a4aef886beed1754adfb0b86d9014b8d6f4 100644 (file)
@@ -79,6 +79,11 @@ static int stmmac_probe_config_dt(struct platform_device *pdev,
        of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl);
        dma_cfg->fixed_burst = of_property_read_bool(np, "snps,fixed-burst");
        dma_cfg->mixed_burst = of_property_read_bool(np, "snps,mixed-burst");
+       plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode");
+       if (plat->force_thresh_dma_mode) {
+               plat->force_sf_dma_mode = 0;
+               pr_warn("force_sf_dma_mode is ignored if force_thresh_dma_mode is set.");
+       }
 
        return 0;
 }