kernel: add missing config symbols to 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 191-stmmac-honor-DT-params.patch
1 From a2acf761e37031737300c47284181a21b6bc0cc2 Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Sat, 7 Dec 2013 01:29:35 +0800
4 Subject: [PATCH] net: stmmac: Honor DT parameter to force DMA store and
5  forward mode
6
7 "snps,force_sf_dma_mode" is documented in stmmac device tree bindings,
8 but is never handled by the driver.
9
10 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
11 ---
12  drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 1 +
13  1 file changed, 1 insertion(+)
14
15 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
16 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
17 @@ -47,6 +47,7 @@ static int stmmac_probe_config_dt(struct
18                 plat->bus_id = 0;
19  
20         of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr);
21 +       plat->force_sf_dma_mode = of_property_read_bool(np, "snps,force_sf_dma_mode");
22  
23         plat->mdio_bus_data = devm_kzalloc(&pdev->dev,
24                                            sizeof(struct stmmac_mdio_bus_data),