[OpenWrt-Devel] RFT: ar71xx/mac80211 update

Koen Vandeputte koen.vandeputte at ncentric.com
Thu Aug 23 10:13:44 EDT 2018



On 2018-08-22 16:14, Koen Vandeputte wrote:
>
>>
>>
>> ar71xx:
>>
>> I'm now currently testing your ar71xx 4.14 bump (comitted today in 
>> master) on a few different targets:
>>
>> - Gl-mifi
>> - Rocket-m5
>> - RB912
>> - RB2011
>> ...
>>
>> Will let you know the results.
> Hi John,
>
> I started with trying on a Mikrotik RB2011 as these have a Serial port.
>
> Ethernet does not function correctly.
> I see it transmitting packets,  but receiving fails.
>
>
>
> Logs from kernel 4.9:
>
> [    1.052813] switch0: Atheros AR8327 rev. 4 switch registered on 
> ag71xx-mdio.0
> [    1.766947] libphy: ag71xx_mdio: probed
> [    2.400863] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 
> [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
> [    2.412536] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
> [    3.041177] ag71xx-mdio.1: Found an AR934X built-in switch
> [    3.093580] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
> [    3.101108] NET: Registered protocol family 10
>
>
>
> Logs from kernel 4.14
>
> [    1.066007] switch0: Atheros AR8327 rev. 4 switch registered on 
> ag71xx-mdio.0
> [    1.073409] Atheros AR8216/AR8236/AR8316: probe of ag71xx-mdio.0:00 
> failed with error -22
> [    1.102455] libphy: ag71xx_mdio: probed
> [    1.737938] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 
> [uid=004dd034, driver=Generic PHY]
> [    1.747994] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
> [    2.377642] ag71xx-mdio.1: Found an AR934X built-in switch
> [    2.429938] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
> [    2.437637] NET: Registered protocol family 10
>
>
Hi John,

I've digged a little bit deeper into the issue and compared/tested the 
driver code between 4.9 and 4.14

The main problem is that within ar8327_hw_config_pdata()  [1]
pdata is NULL when this function gets called ..


[1] 
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/generic/files/drivers/net/phy/ar8327.c;h=7bfc1875094f1bcb149898b2184035040dfce2fd;hb=HEAD#l486


I can confirm that the board_info data gets loaded in the list though.
No idea currently why platform_data would be NULL currently ..


Koen

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list