[PATCH v3 2/2] Documentation: net: dsa: b53: Describe b53 configuration

2019-07-05 Thread Benedikt Spranger
Document the different needs of documentation for the b53 driver. Signed-off-by: Benedikt Spranger --- Documentation/networking/dsa/b53.rst | 183 + Documentation/networking/dsa/index.rst | 1 + 2 files changed, 184 insertions(+) create mode 100644 Documentation

[PATCH v3 0/2] Document the configuration of b53

2019-07-05 Thread Benedikt Spranger
parts of the configuration. - target comments by Andrew Lunn and Florian Fainelli. - make changes visible to build system Benedikt Spranger (2): Documentation: net: dsa: Describe DSA switch configuration Documentation: net: dsa: b53: Describe b53 configuration Documentation/networking/dsa/b53

[PATCH v3 1/2] Documentation: net: dsa: Describe DSA switch configuration

2019-07-05 Thread Benedikt Spranger
Document DSA tagged and VLAN based switch configuration by showcases. Signed-off-by: Benedikt Spranger Reviewed-by: Andrew Lunn --- .../networking/dsa/configuration.rst | 292 ++ Documentation/networking/dsa/index.rst| 1 + 2 files changed, 293 insertions

Re: [RFC PATCH v2 2/2] Documentation: net: dsa: b53: Describe b53 configuration

2019-07-02 Thread Benedikt Spranger
Am Mon, 1 Jul 2019 19:35:50 +0200 schrieb Andrew Lunn : > > +Configuration without tagging support > > +- > > How does this differ to the text you just added in the previous patch? The b53 has some implementation specific detail: The b53 DSA driver tags the CP

[RFC PATCH v2 0/2] Document the configuration of b53

2019-07-01 Thread Benedikt Spranger
Hi, this is the second RFC to document the configuration of a b53 supported switch. Thanks for the comments. Regards Bene Spranger v1..v2: - split out generic parts of the configuration. - target comments by Andrew Lunn and Florian Fainelli. - make changes visible to build system Benedikt

[RFC PATCH v2 2/2] Documentation: net: dsa: b53: Describe b53 configuration

2019-07-01 Thread Benedikt Spranger
Document the different needs of documentation for the b53 driver. Signed-off-by: Benedikt Spranger --- Documentation/networking/dsa/b53.rst | 174 + Documentation/networking/dsa/index.rst | 1 + 2 files changed, 175 insertions(+) create mode 100644 Documentation

[RFC PATCH v2 1/2] Documentation: net: dsa: Describe DSA switch configuration

2019-07-01 Thread Benedikt Spranger
Document DSA tagged and VLAN based switch configuration by showcases. Signed-off-by: Benedikt Spranger --- .../networking/dsa/configuration.rst | 292 ++ Documentation/networking/dsa/index.rst| 1 + 2 files changed, 293 insertions(+) create mode 100644

[PATCH 1/1] net: dsa: b53: Disable all ports on setup

2019-06-28 Thread Benedikt Spranger
configured by DSA i.e. a port can be active, while the DSA subsystem reports the port is inactive. Disable all ports and not only the unused ones to put all ports into a well defined state. Signed-off-by: Benedikt Spranger --- drivers/net/dsa/b53/b53_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 0/1] Disable all ports on b53 setup

2019-06-28 Thread Benedikt Spranger
ports were inactive after the reset. Disable the ports on switch setup to get a consistent view of things between real life and DSA. Benedikt Spranger (1): net: dsa: b53: Disable all ports on setup drivers/net/dsa/b53/b53_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [RFC PATCH 1/1] Documentation: net: dsa: b53: Describe b53 configuration

2019-06-28 Thread Benedikt Spranger
Am Thu, 27 Jun 2019 09:38:16 -0700 schrieb Florian Fainelli : > On 6/27/19 3:15 AM, Benedikt Spranger wrote: > > Document the different needs of documentation for the b53 driver. > > > > Signed-off-by: Benedikt Spranger > > --- > > Documenta

Re: [RFC PATCH 1/1] Documentation: net: dsa: b53: Describe b53 configuration

2019-06-27 Thread Benedikt Spranger
Am Thu, 27 Jun 2019 15:49:29 +0200 schrieb Andrew Lunn : > On Thu, Jun 27, 2019 at 12:15:06PM +0200, Benedikt Spranger wrote: > > Hi Benedikt > > > +Configuration with tagging support > > +-- > > + > > +The tagging based con

[RFC PATCH 1/1] Documentation: net: dsa: b53: Describe b53 configuration

2019-06-27 Thread Benedikt Spranger
Document the different needs of documentation for the b53 driver. Signed-off-by: Benedikt Spranger --- Documentation/networking/dsa/b53.rst | 300 +++ 1 file changed, 300 insertions(+) create mode 100644 Documentation/networking/dsa/b53.rst diff --git a/Documentation

[RFC PATCH 0/1] Document the configuration of b53

2019-06-27 Thread Benedikt Spranger
justification to upstream changes to tools like ifupdown. Regards Bene Spranger Benedikt Spranger (1): Documentation: net: dsa: b53: Describe b53 configuration Documentation/networking/dsa/b53.rst | 300 +++ 1 file changed, 300 insertions(+) create mode 100644

Re: [RFC PATCH 0/2] enable broadcom tagging for bcm531x5 switches

2019-06-25 Thread Benedikt Spranger
On Sat, 22 Jun 2019 19:24:10 -0700 Florian Fainelli wrote: > Something like this should take care of that (untested). You might > have to explicitly set the IMP port (port 8) in B53_UC_FWD_EN and > B53_MC_FWD_EN, though since you turn on management mode, this may not > be required. I might have s

Re: [RFC PATCH 0/2] enable broadcom tagging for bcm531x5 switches

2019-06-19 Thread Benedikt Spranger
On Tue, 18 Jun 2019 11:16:23 -0700 Florian Fainelli wrote: > How is that a problem for other machines? Does that lead to some kind > of broadcast storm because there are machines that keep trying to > respond to ARP solicitations? Mirroring broadcast packages on the interface they are coming in,

[RFC PATCH 0/2] enable broadcom tagging for bcm531x5 switches

2019-06-18 Thread Benedikt Spranger
Hi, while puting a Banana Pi R1 board into operation I faced network hickups and get into serious trouble from my coworkers: Banana Pi network setup: PC (eth1) <--> BPi R1 (wan) / BPi R1 (lan4) <--> DUT (eth0) 10.0.32.1 10.0.32.2 172.16.0.1 172.16.0.2 ---8<--- #! /bin/bash # cr

[RFC PATCH 1/2] net: dsa: b53: Turn on managed mode and set IMP port

2019-06-18 Thread Benedikt Spranger
. We need to have bcm_sf2 stop overwriting the SWMODE register and let b53 deal with that now. Fixes: 7edc58d614d4 ("net: dsa: b53: Turn on Broadcom tags") Signed-off-by: Florian Fainelli Signed-off-by: Benedikt Spranger --- drivers/net/dsa/b53/b53_common.c | 19 +++ drive

[RFC PATCH 2/2] net: dsa: b53: enbale broadcom tags on bcm531x5

2019-06-18 Thread Benedikt Spranger
handled. Reviewed-by: Kurt Kanzenbach Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Benedikt Spranger --- drivers/net/dsa/b53/b53_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index

[[PATCH net-next] 2/2] net: xilinx_emaclite: use readx_poll_timeout() in mdio wait function

2019-05-19 Thread Benedikt Spranger
ore_eq(end, jiffies)) --> false positive error report Replace the current code with readx_poll_timeout() which takes care of the situation. Signed-off-by: Kurt Kanzenbach Signed-off-by: Benedikt Spranger --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 16 ++-- 1 file c

[[PATCH net-next] 1/2] net: axienet: use readx_poll_timeout() in mdio wait function

2019-05-19 Thread Benedikt Spranger
) if (time_before_eq(end, jiffies)) --> false positive error report Replace the current code with readx_poll_timeout() which take care of the situation. Signed-off-by: Kurt Kanzenbach Signed-off-by: Benedikt Spranger --- drivers/net/ethernet/xilinx/xilinx_axienet.h | 5 + .../net/ethern

[[PATCH net-next] 0/2] Convert mdio wait function to use readx_poll_timeout()

2019-05-19 Thread Benedikt Spranger
Hi, On loaded systems with a preemptible kernel both functions axienet_mdio_wait_until_ready() and xemaclite_mdio_wait() may report a false positive error return. Convert both functions to use readx_poll_timeout() to handle the situation in a safe manner. Regards Benedikt Spranger Kurt