[LEDE-DEV] [PATCH] ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC

John Crispin john at phrozen.org
Sat May 7 21:25:32 PDT 2016


Hi,

this is already in our staging tree. i cherry picked it fromt he owrt
git tree last week

	John

On 07/05/2016 12:35, p.wassi at gmx.at wrote:
> From: Paul Wassi <p.wassi at gmx.at>
> 
> Fix eth0 support for the Ubiquiti UniFi AP AC
> Signed-off-by: Paul Wassi <p.wassi at gmx.at>
> ---
> In openwrt r48937 a patch was introduced which changes the default behaviour
> of ath79_register_eth(). The patch below addresses this issue and provides proper
> device setup. Eth is then working out of the box.
> 
> files/arch/mips/ath79/mach-ubnt-unifiac.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff -rupN a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
> --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
> +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
> @@ -84,6 +84,7 @@  static void __init ubnt_unifiac_setup(vo
>  		       eeprom + UNIFIAC_MAC0_OFFSET, 0);
>  
>  	ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
> +	ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
>  	ath79_eth0_data.phy_mask = BIT(4);
>  	ath79_eth0_pll_data.pll_10 = 0x00001313;
>  
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
> 



More information about the Lede-dev mailing list