[PATCH v3 net-next] net: dsa: mv88e6xxx: 88E6141/6341 SERDES support

2018-05-04 Thread Marek Behún
The 88E6141/6341 switches (also known as Topaz) have 1 SGMII lane, which can be configured the same way as the SERDES lane on 88E6390. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ drivers/net/dsa/mv88e6xxx/serdes.c | 20

Re: [PATCH v1 net-next] net: dsa: mv88e6xxx: Fix name string for 88E6141

2018-05-03 Thread Marek Behún
Hmm, sorry, this is already merged. It seems I forgor to etch new commits for some time. On Thu, 3 May 2018 15:11:43 +0200 Andrew Lunn <and...@lunn.ch> wrote: > On Thu, May 03, 2018 at 03:06:55PM +0200, Marek Behún wrote: > > The structure was copied from 88E6341 but the name

Re: [PATCH v1 net-next] net: dsa: mv88e6xxx: 88E6141/6341 SERDES support

2018-05-03 Thread Marek Behún
Sent v2 On Thu, 3 May 2018 15:15:15 +0200 Andrew Lunn <and...@lunn.ch> wrote: > On Thu, May 03, 2018 at 03:06:48PM +0200, Marek Behún wrote: > > The 88E6141/6341 switches (also known as Topaz) have 1 SGMII lane, > > which can be configured the same way as the S

[PATCH v2 net-next] net: dsa: mv88e6xxx: 88E6141/6341 SERDES support

2018-05-03 Thread Marek Behún
The 88E6141/6341 switches (also known as Topaz) have 1 SGMII lane, which can be configured the same way as the SERDES lane on 88E6390. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ drivers/net/dsa/mv88e6xxx/serdes.c | 20

[PATCH v1 net-next] net: dsa: mv88e6xxx: Fix name string for 88E6141

2018-05-03 Thread Marek Behún
The structure was copied from 88E6341 but the name was not changed. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index

[PATCH v1 net-next] net: dsa: mv88e6xxx: 88E6141/6341 SERDES support

2018-05-03 Thread Marek Behún
The 88E6141/6341 switches (also known as Topaz) have 1 SGMII lane, which can be configured the same way as the SERDES lane on 88E6390. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ drivers/net/dsa/mv88e6xxx/serdes.c | 20

[PATCH v1 6/7] net: mvneta: Don't use GRO on Armada 3720

2018-08-08 Thread Marek Behún
For some reason on Armada 3720 boards (EspressoBin and Turris Mox) the networking driver behaves weirdly when using napi_gro_receive. For example downloading a big file from a local network (low ping) is fast, but when downloading from a remote server (higher ping), the download speed is at first

mv88e6xxx: question: can switch irq be shared?

2018-08-17 Thread Marek Behún
Hello, I am wondering if the main device irq in dsa/mv88e6xxx/chip.c can be requested as shared (see patch below). The reason is that our board is wired so that irqs from all switches come to the same gpio. Marek --- drivers/net/dsa/mv88e6xxx/chip.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH net-next] net: dsa: mv88e6xxx: Share main switch IRQ

2018-08-17 Thread Marek Behún
On some boards the interrupt can be shared between multiple devices. For example on Turris Mox the interrupt is shared between all switches. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [DO NOT MERGE] ARM: dts: vf610-zii-dev-rev-c: add support for SFF modules

2018-08-09 Thread Marek Behún
Hi Andres, I tried your patches on Turris Mox with one 6190 marvell switch with port 9 connected to CPU and port 10 to SFP cage. Seems it works :) Thank you. Marek

Re: Is it currently possible to connect SFP to dsa port?

2018-08-08 Thread Marek Behún
On Tue, 7 Aug 2018 21:58:20 +0200 Andrew Lunn wrote: > Hi Marek > > I'm currently working on exactly this! > > My primary aim is to allow SFP on ports 9 and 10. ports 2-7 can also > be connected to SFPs, but that is a bit harder, so it is going to take > me a little longer. > > I hope i can

Re: [PATCH v1 6/7] net: mvneta: Don't use GRO on Armada 3720

2018-08-21 Thread Marek Behún
On Thu, 9 Aug 2018 20:08:32 +0800 Jisheng Zhang wrote: > On Thu, 9 Aug 2018 19:27:55 +0800 Jisheng Zhang wrote: > > > Hi, > > > > On Thu, 9 Aug 2018 12:40:41 +0800 Jisheng Zhang wrote: > > > > > + more people > > > > >

[PATCH net-next] net: dsa: mv88e6xxx: Share main switch IRQ

2018-08-29 Thread Marek Behún
On some boards the interrupt can be shared between multiple devices. For example on Turris Mox the interrupt is shared between all switches. Signed-off-by: Marek Behun --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH net-next] net: dsa: mc88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed

2018-10-05 Thread Marek Behún
for port 5. Signed-off-by: Marek Behún --- drivers/net/dsa/mv88e6xxx/chip.c | 4 ++-- drivers/net/dsa/mv88e6xxx/port.c | 25 +++-- drivers/net/dsa/mv88e6xxx/port.h | 1 + 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net

[PATCH net-next v2] net: dsa: mv88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed

2018-10-13 Thread Marek Behún
(for (differentiating 100mbps vs 200mbps). The SERDES port does not support more than 2500mbps, so alt_bit does not make any difference. Signed-off-by: Marek Behún --- drivers/net/dsa/mv88e6xxx/chip.c | 4 ++-- drivers/net/dsa/mv88e6xxx/port.c | 25 +++-- drivers/net/dsa