On Sun, Apr 11, 2021 at 09:50:17PM +0300, Vladimir Oltean wrote:
> On Sun, Apr 11, 2021 at 08:01:35PM +0200, Marek Behun wrote:
> > On Sat, 10 Apr 2021 15:34:46 +0200
> > Ansuel Smith wrote:
> >
> > > Hi,
> > > this is a respin of the Marek series in hope t
On Sun, Apr 11, 2021 at 08:39:12PM +0200, Andrew Lunn wrote:
> On Sun, Apr 11, 2021 at 08:01:35PM +0200, Marek Behun wrote:
> > On Sat, 10 Apr 2021 15:34:46 +0200
> > Ansuel Smith wrote:
> >
> > > Hi,
> > > this is a respin of the Marek series in hope t
On Mon, Apr 12, 2021 at 11:35:25AM +0800, DENG Qingfang wrote:
> On Sat, Apr 10, 2021 at 03:34:47PM +0200, Ansuel Smith wrote:
> > Allow for multiple CPU ports in a DSA switch tree. By default the first
> > CPU port is assigned mimic the original assignement logic. A DSA driver
&
On Sun, Apr 11, 2021 at 08:01:35PM +0200, Marek Behun wrote:
> On Sat, 10 Apr 2021 15:34:46 +0200
> Ansuel Smith wrote:
>
> > Hi,
> > this is a respin of the Marek series in hope that this time we can
> > finally make some progress with dsa supporting multi-cpu port.
&
From: Marek Behún
In DSA the iflink value is used to report to which CPU port a given
switch port is connected to. Since we want to support multi-CPU DSA, we
want the user to be able to change this value.
Add ndo_set_iflink method into the ndo strucutre to be a pair to
ndo_get_iflink. Also creat
-off-by: Ansuel Smith
---
net/dsa/slave.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 992fcab4b552..c68dbd3ab21a 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -63,6 +63,36 @@ static int dsa_slave_get_iflink
Allow to change the interface to which a given interface is linked to.
This is useful in the case of multi-CPU port DSA, for changing the CPU
port of a given user port.
Signed-off-by: Marek Behún
Cc: David Ahern
Cc: Stephen Hemminger
---
ip/iplink.c | 16 +---
man/man8/ip
wan <-> eth1
There are two CPU port and the port_get_preferred assign a preference
for every port: (wan port with CPU1 everything else CPU0)
lan1 <-> eth0
lan2 <-> eth0
lan3 <-> eth0
lan4 <-> eth0
wan <-> eth1
Signed-off-by: Marek Behún
Signed-off-by
half their capabilities. (qca8k and mv88e6xxx)
This current series is tested with qca8k.
Ansuel Smith (1):
net: dsa: allow for multiple CPU ports
Marek Behún (2):
net: add ndo for setting the iflink property
net: dsa: implement ndo_set_netlink for chaning port's CPU port
include/linux/n
On Fri, Apr 09, 2021 at 11:15:37AM -0700, Florian Fainelli wrote:
>
>
> On 4/5/2021 10:16 PM, Ansuel Smith wrote:
> > On Wed, Apr 07, 2021 at 02:41:02AM +0200, Andrew Lunn wrote:
> >> On Tue, Apr 06, 2021 at 06:50:40AM +0200, Ansuel Smith wrote:
> >>> qca8k
On Wed, Apr 07, 2021 at 02:41:02AM +0200, Andrew Lunn wrote:
> On Tue, Apr 06, 2021 at 06:50:40AM +0200, Ansuel Smith wrote:
> > qca8k 83xx switch have 2 cpu ports. Rework the driver to support
> > multiple cpu port. All ports can access both cpu ports by default as
> >
qca8k 83xx switch have 2 cpu ports. Rework the driver to support
multiple cpu port. All ports can access both cpu ports by default as
they support the same features.
Signed-off-by: Ansuel Smith
---
drivers/net/dsa/qca8k.c | 18 +-
drivers/net/dsa/qca8k.h | 2 --
2 files changed
In preparation for the future when dsa will support multi cpu port,
dsa_cpu_ports can be useful for switch that has multiple cpu port to
retrieve the cpu mask for ACL and bridge table.
Signed-off-by: Ansuel Smith
---
include/net/dsa.h | 12
1 file changed, 12 insertions(+)
diff
In preparation for the future when dsa will support multi cpu port,
dsa_cpu_ports can be useful for switch that has multiple cpu port to
retrieve the cpu mask for ACL and bridge table.
Signed-off-by: Ansuel Smith
---
include/net/dsa.h | 12
1 file changed, 12 insertions(+)
diff
thing else.
Tested-on: QCA9984 hw1.0 PCI 10.4
Signed-off-by: Ansuel Smith
---
drivers/net/wireless/ath/ath10k/core.c | 52 +-
drivers/net/wireless/ath/ath10k/core.h | 3 ++
2 files changed, 53 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k
ress' cell.
Mac-address defined in the dts have priority than any other address found.
Tested-on: QCA9984 hw1.0 PCI 10.4
Signed-off-by: Ansuel Smith
---
drivers/net/wireless/ath/ath10k/core.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/c
partition and increments it by one for the
wifi. mac-address-increment-byte bindings is used to tell what byte of
the mac-address has to be increased (if not defined the last byte is
increased) and mac-address-increment tells how much the byte decided
early has to be increased.
Signed-off-by: Ansuel
.
- mac-address-increment-byte is used to tell what byte must be
incremented (if not set the last byte is increased)
- mac-address-increment is used to tell how much to increment of the
extracted mac-address decided byte.
Signed-off-by: Ansuel Smith
---
.../bindings/net/ethernet
#x27;nvmem-cell' tag. The subpartition must have the
'nvmem-provider' tag or the subpartition will not register the cell to
the nvmem api.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/mtd/partition.txt | 59 +++
1 file changed, 59 insertions(
Introduce 2 new bindings for the mtd structure.
Mtd partitions can be set as 'nvmem-provider' and any subpartition defined
with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser
and registred as a nvmem cell by the nvmem api.
Signed-off-by: Ansuel Smi
, since this would remove many patch used to get mac-address
and other nvmem data.
[1] https://lore.kernel.org/patchwork/patch/765435/
Changes:
v3:
* Fix const discard warning in of_net.c
* Add some info about overflow/underflow of mac-increment
* Limit mac-increment-bytes to the last 3 bytes
v2:
* F
partition and increments it by one for the
wifi. mac-address-increment-byte bindings is used to tell what byte of
the mac-address has to be increased (if not defined the last byte is
increased) and mac-address-increment tells how much the byte decided
early has to be increased.
Signed-off-by: Ansuel
.
- mac-address-increment-byte is used to tell what byte must be
incremented (if not set the last byte is increased)
- mac-address-increment is used to tell how much to increment of the
extracted mac-address decided byte.
Signed-off-by: Ansuel Smith
---
.../bindings/net/ethernet
#x27;nvmem-cell' tag. The subpartition must have the
'nvmem-provider' tag or the subpartition will not register the cell to
the nvmem api.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/mtd/partition.txt | 59 +++
1 file changed, 59 insertions(
, since this would remove many patch used to get mac-address
and other nvmem data.
[1] https://lore.kernel.org/patchwork/patch/765435/
Changes:
v2:
* Fix compile error (missing mtd_node in mtdcore)
Ansuel Smith (4):
mtd: Add nvmem support for mtd nvmem-providers
dt-bindings: mtd: partiti
Introduce 2 new bindings for the mtd structure.
Mtd partitions can be set as 'nvmem-provider' and any subpartition defined
with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser
and registred as a nvmem cell by the nvmem api.
Signed-off-by: Ansuel Smi
.
- mac-address-increment-byte is used to tell what byte must be
incremented (if not set the last byte is increased)
- mac-address-increment is used to tell how much to increment of the
extracted mac-address decided byte.
Signed-off-by: Ansuel Smith
---
.../bindings/net/ethernet
, since this would remove many patch used to get mac-address
and other nvmem data.
[1] https://lore.kernel.org/patchwork/patch/765435/
Ansuel Smith (4):
mtd: Add nvmem support for mtd nvmem-providers
dt-bindings: mtd: partition: Document use of nvmem-provider
of_net: add mac-address-incre
#x27;nvmem-cell' tag. The subpartition must have the
'nvmem-provider' tag or the subpartition will not register the cell to
the nvmem api.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/mtd/partition.txt | 59 +++
1 file changed, 59 insertions(
partition and increments it by one for the
wifi. mac-address-increment-byte bindings is used to tell what byte of
the mac-address has to be increased (if not defined the last byte is
increased) and mac-address-increment tells how much the byte decided
early has to be increased.
Signed-off-by: Ansuel
Introduce 2 new bindings for the mtd structure.
Mtd partitions can be set as 'nvmem-provider' and any subpartition defined
with the tag 'nvmem-cell' are skipped by the 'fixed-partitions' parser
and registred as a nvmem cell by the nvmem api.
Signed-off-by: Ansuel Smi
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to
define from where the driver will load the pre-cal data in the defined
mtd partition.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +---
1 file changed, 9 insertions(+), 3
everything else.
Tested-on: QCA9984 hw1.0 PCI 10.4
Signed-off-by: Ansuel Smith
---
v2:
* Fix missing condition for cal_mode in transposing source to ath repo
drivers/net/wireless/ath/ath10k/core.c | 80 +-
drivers/net/wireless/ath/ath10k/core.h | 3 +
2 files changed, 81
everything else.
Tested-on: QCA9984 hw1.0 PCI 10.4
Signed-off-by: Ansuel Smith
---
drivers/net/wireless/ath/ath10k/core.c | 74 ++
drivers/net/wireless/ath/ath10k/core.h | 3 ++
2 files changed, 77 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/core.c
b
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to
define from where the driver will load the pre-cal data in the defined
mtd partition.
Signed-off-by: Ansuel Smith
---
.../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +---
1 file changed, 9 insertions(+), 3
35 matches
Mail list logo