On Sat, Dec 7, 2013 at 5:26 AM, David Miller [off-list ref] wrote:
From: Chen-Yu Tsai <redacted>
Date: Sat, 7 Dec 2013 01:29:35 +0800
quoted
@@ -47,6 +47,7 @@ static int stmmac_probe_config_dt(struct
platform_device *pdev,
quoted
plat->bus_id = 0;
of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr);
+ plat->force_sf_dma_mode = of_property_read_bool(np,
"snps,force_sf_dma_mode");
Will this do the right thing for when the property is not present?
Right now the force_sf_dma_mode value is always false.
of_property_read_bool will return false when the property is not present.
In fact won't it override the explicit settings done elsewhere in the
driver?
Point taken. The current implementation will override settings passed from
platform data. ORing the two would be better.
Thanks
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.