[PATCH net-next] net:dsa:mv88e6xxx: use watchdog ops for 6097 chip

2017-02-14 Thread Volodymyr Bendiuga
mv88e6097 chip requires watchdog_ops to be set. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 7658284..0

[PATCH net-next] uapi: fix signess in ethtool_validate_speed()

2017-01-20 Thread Volodymyr Bendiuga
From: Jonas Johansson <jonas.johans...@westermo.se> There is a comparison of speed variable which is unsigned, and SPEED_UNKNOWN which is signed. Signed-off-by: Jonas Johansson <jonas.johans...@westermo.se> Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> ---

[PATCH v3 net-next] phy: increase size of MII_BUS_ID_SIZE and bus_id

2017-01-19 Thread Volodymyr Bendiuga
Some bus names are pretty long and do not fit into 17 chars. Increase therefore MII_BUS_ID_SIZE and phy_fixup.bus_id to larger number. Now mii_bus.id can host larger name. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> Signed-off-by: Magnus Öberg <magnus.ob...@we

[PATCH v2 net-next] phy: increase size of bus_id and MII_BUS_ID_SIZE

2017-01-19 Thread Volodymyr Bendiuga
Some bus names are pretty long and do not fit into 20 chars, therefore bus_id size is increased together with MII_BUS_ID_SIZE to host larger names. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> Signed-off-by: Magnus Öberg <magnus.ob...@westermo.se> --- include/lin

[PATCH net-next] mii_bus: increase MII_BUS_ID_SIZE to 61

2017-01-13 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Some bus names are pretty long and do not fit into 20 chars. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Signed-off-by: Magnus Öberg <magnus.ob...@westermo.se> --- include/linux/phy.h | 2 +-

[PATCH v2 net-next] net:dsa: check for EPROBE_DEFER from dsa_dst_parse()

2017-01-05 Thread Volodymyr Bendiuga
time linux cames back to this function it will try to add only the last dsa switch which returned EPROBE_DEFER. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> Reviewed-by: Andrew Lunn <and...@lunn.ch> --- net/dsa/dsa2.c | 8 +++- 1 file changed, 7 insertions(+)

[PATCH v3 net-next] net:mv88e6xxx: use g2 interrupt for 6097 chip

2017-01-05 Thread Volodymyr Bendiuga
This chip needs MV88E6XXX_FLAG_G2_INT Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> Reviewed-by: Andrew Lunn <and...@lunn.ch> --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/dri

[PATCH v2 net-next] net:mv88e6xxx: use g2 interrupt for 6097 chip

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> This chip needs MV88E6XXX_FLAG_G2_INT Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Reviewed-by: Andrew Lunn <and...@lunn.ch> --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1

[PATCH net-next] net:mv88e6xxx: use g2 interrupt for 6097 chip

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> This chip needs MV88E6XXX_FLAG_G2_INT Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Reviewed-by: Andrew Lunn <and...@lunn.ch> --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1

[PATCH v2 net-next] dsa:mv88e6xxx: allow address 0x1 in smi_init

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Some devices, such as the mv88e6097 do have ADDR[0] external and so it is possible to configure the device to use SMI address 0x1. Remove the restriction, as there are boards using this address. Signed-off-by: Volodymyr Be

Re: [PATCH net-next 1/3] net:dsa:mv88e6xxx: use hashtable to store multicast entries

2016-12-23 Thread Volodymyr Bendiuga
ri, Dec 16, 2016 at 11:26:01AM +0100, Volodymyr Bendiuga wrote: >> Hi Andrew, >> >> I don't have any script right now, the code I have is a part of >> the OS, but I could write simple C program which represents >> what we are doing with mc entries and send it to you f

[PATCH net-next 3/3] net:dsa:mv88e6xxx: use hashtable instead of atu_get

2016-12-12 Thread Volodymyr Bendiuga
are used instead of mv88e6xxx_atu_get(). Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> --- drivers/net/dsa/mv88e6xxx/chip.c | 63 +++- 1 file changed, 17 insertions(+), 46 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drive

[PATCH net-next 2/3] net:dsa:mv88e6xxx: add helper functions to operate on hashtable

2016-12-12 Thread Volodymyr Bendiuga
the hashtable: inserts new entry, deletes/modifies existing one. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> --- drivers/net/dsa/mv88e6xxx/chip.c | 61 1 file changed, 61 insertions(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/d

[PATCH net-next 1/3] net:dsa:mv88e6xxx: use hashtable to store multicast entries

2016-12-12 Thread Volodymyr Bendiuga
Hashtable will make it extremely faster when inserting fdb entries into the forwarding database. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@gmail.com> --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/n

Re: [PATCH net-next v2] dsa:mv88e6xxx: dispose irq mapping for chip->irq

2016-12-07 Thread Volodymyr Bendiuga
? On 2016-12-07 15:11, Andrew Lunn wrote: On Wed, Dec 07, 2016 at 11:35:07AM +0100, Volodymyr Bendiuga wrote: Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> You need some text in the Change log. Say why this change is needed, etc. Looking through other users of of_irq_ge

Re: [PATCH] net:dsa:mv88e6xxx: delete timer and cancel ppu_work

2016-12-07 Thread Volodymyr Bendiuga
This issue seems to be resolved now with new PPU patch set. On 2016-12-06 15:22, Andrew Lunn wrote: On Tue, Dec 06, 2016 at 01:57:42PM +0100, Volodymyr Bendiuga wrote: Signed-off-by: Jonas Johansson <jonas.johans...@westermo.se> Signed-off-by: Volodymyr Bendiuga <volody

Re: [PATCH] net:dsa:mv88e6xxx: delete timer and cancel ppu_work

2016-12-07 Thread Volodymyr Bendiuga
OK, will check it. /Volodymyr On 2016-12-06 15:22, Andrew Lunn wrote: On Tue, Dec 06, 2016 at 01:57:42PM +0100, Volodymyr Bendiuga wrote: Signed-off-by: Jonas Johansson <jonas.johans...@westermo.se> Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> --- dri

Re: [PATCH] net:mv88e6xxx: dispose irq mapping

2016-12-06 Thread Volodymyr Bendiuga
:05:43AM +0100, Volodymyr Bendiuga wrote: If this is not done, then it is not possible to map irq next time, after EPROBE_DEFER. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendi...@westermo.se> Hi Volodymyr Thanks for your patches. Please could you include in the subject line whic