]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
net: stmmac: Honor DT parameter to force DMA store and forward mode
[~andy/linux] / drivers / net / ethernet / stmicro / stmmac / stmmac_platform.c
index 704a5e0069c071653b78d32274b2be28f25b1785..634260e7dd3bcd355bd30e5fc670606ee8672f0a 100644 (file)
@@ -56,6 +56,8 @@ static int stmmac_probe_config_dt(struct platform_device *pdev,
                                           sizeof(struct stmmac_mdio_bus_data),
                                           GFP_KERNEL);
 
+       plat->force_sf_dma_mode = of_property_read_bool(np, "snps,force_sf_dma_mode");
+
        /*
         * Currently only the properties needed on SPEAr600
         * are provided. All other properties should be added