Hi Tristam!
On Wed, Dec 16, 2020 at 06:33:06AM +, tristram...@microchip.com wrote:
static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u32 *vlan)
{
- int index;
- u16 *data;
- u16 addr;
+ u16 addr = vid / dev->phy_port_cnt;
u64 buf;
- data
> static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u32 *vlan)
> {
> - int index;
> - u16 *data;
> - u16 addr;
> + u16 addr = vid / dev->phy_port_cnt;
> u64 buf;
>
> - data = (u16 *)&buf;
> - addr = vid / dev->phy_port_cnt;
> - index
We add support for the ksz8863 and ksz8873 chips which are
using the same register patterns but other offsets as the
ksz8795.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
v4 -> v5: - added clear of reset bit for ksz8863 reset code
-