Skip to content

Commit

Permalink
net: stmmac: Honor DT parameter to force DMA store and forward mode
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
Chen-Yu Tsai authored and David S. Miller committed Jan 20, 2014
1 parent 1f370c5 commit 6aedb8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6aedb8c

Please sign in to comment.