[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 --- 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..03dc886 100644 --- a/drivers/net/dsa

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

2017-01-20 Thread Volodymyr Bendiuga
From: Jonas Johansson There is a comparison of speed variable which is unsigned, and SPEED_UNKNOWN which is signed. Signed-off-by: Jonas Johansson Signed-off-by: Volodymyr Bendiuga --- include/uapi/linux/ethtool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[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 Signed-off-by: Magnus Öberg --- include/linux/phy.h | 8 ++-- 1 file changed, 2

[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 Signed-off-by: Magnus Öberg --- include/linux/phy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

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

2017-01-13 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga Some bus names are pretty long and do not fit into 20 chars. Signed-off-by: Volodymyr Bendiuga Signed-off-by: Magnus Öberg --- include/linux/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index

[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 Reviewed-by: Andrew Lunn --- net/dsa/dsa2.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c

[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 Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h index dcb1b81..474e715

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

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga This chip needs MV88E6XXX_FLAG_G2_INT Signed-off-by: Volodymyr Bendiuga Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx

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

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga This chip needs MV88E6XXX_FLAG_G2_INT Signed-off-by: Volodymyr Bendiuga Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx

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

2017-01-03 Thread Volodymyr Bendiuga
From: Volodymyr Bendiuga 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 Bendiuga Reviewed-by: Andrew Lunn --- drivers

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

2016-12-23 Thread Volodymyr Bendiuga
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 for profiling. >

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

2016-12-12 Thread Volodymyr Bendiuga
used instead of mv88e6xxx_atu_get(). Signed-off-by: Volodymyr Bendiuga --- drivers/net/dsa/mv88e6xxx/chip.c | 63 +++- 1 file changed, 17 insertions(+), 46 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index

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

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

[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 --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net

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 You need some text in the Change log. Say why this change is needed, etc. Looking through other users of of_irq_get(), i don't see any disposing o

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 Signed-off-by: Volodymyr Bendiuga --- drivers/net/dsa/mv88e6xxx/chip.c | 5 - 1 file

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 Signed-off-by: Volodymyr Bendiuga --- drivers/net/dsa/mv88e6xxx/chip.c | 5 - 1 file changed, 4 insertions(+), 1

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 Hi Volodymyr Thanks for your patches. Please could you include in the subject line which tree it is for. See Documentation