ar8216: fix ATU flushing
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 19:41:51 +0000 (19:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 19:41:51 +0000 (19:41 +0000)
commitae7769af49f1e104e701ff96e51b4c3a655ba2b6
tree84c0c90745bad8b498f05a9e5e3ce730180986c9
parentf1b7de863d1b26361784b6c0f02bef3900b1239d
ar8216: fix ATU flushing

The functionality to flush the address translation table contains two bugs
which luckily compensate each other.
1. Just setting the operation is not sufficient to perform the flushing.
   The "active" bit needs to be set to actually trigger an action.
   For the vtu operations this is implemented correctly.
2. ar8xxx_phy_read_status is called every 2s by the phy state machine
   to check for link changes. This would have caused an ATU flush
   every 2s.

Fix the chip-specific ATU flush functions and remove the ATU flush call
from ar8xxx_phy_read_status.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44101 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8327.c