net: stmmac: Honor DT parameter to force DMA store and forward mode
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Jan 2014 13:24:44 +0000 (21:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2014 04:02:02 +0000 (20:02 -0800)
"snps,force_sf_dma_mode" is documented in stmmac device tree bindings,
but is never handled by the driver.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
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