> -Original Message-
> From: Marcus Comstedt
> Sent: Monday, May 15, 2023 6:44 PM
> To: u-boot@lists.denx.de
> Cc: Marcus Comstedt ; Claudiu Manoil
> ; Joe Hershberger ;
> Ramon Fried
> Subject: [PATCH] net: dsa: Fix OF fallback lookup for ports
>
> T
>-Original Message-
>From: Vladimir Oltean
>Sent: Monday, January 25, 2021 2:24 PM
>To: Tom Rini ; Joe Hershberger
>; Simon Glass ; Bin Meng
>; u-boot@lists.denx.de
>Cc: Michael Walle ; Alexandru Marginean
>; Claudiu Manoil
>
>Subject: [PATCH v4 2/7] net: p
>-Original Message-
>From: Vladimir Oltean
>Sent: Monday, January 25, 2021 2:24 PM
>To: Tom Rini ; Joe Hershberger
>; Simon Glass ; Bin Meng
>; u-boot@lists.denx.de
>Cc: Michael Walle ; Alexandru Marginean
>; Claudiu Manoil
>
>Subject: [PATCH v4 1/7] n
>-Original Message-
>From: Michael Walle
>Sent: Wednesday, January 20, 2021 12:44 AM
>To: Claudiu Manoil
>Cc: Joe Hershberger ; Simon Glass
>; Bin Meng ; u-
>b...@lists.denx.de; Vladimir Oltean ; Alexandru
>Marginean
>Subject: Re: [PATCH v2 3/5] drivers: net:
to the switch on LS1028A, it is
not used in U-Boot and was disabled. Ethernet port aliases were also
added to better manage the multitude of ports available now.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
v2: Switch node structure defined in dtsi now consistent with the Linux
switch
be
used with the typical network commands like tftp.
Signed-off-by: Alex Marginean
Signed-off-by: Vladimir Oltean
Signed-off-by: Claudiu Manoil
---
v2: none
drivers/net/fsl_enetc.h | 5 +
drivers/net/mscc_eswitch/Kconfig| 8 +
drivers/net/mscc_eswitch/Makefile
From: Alex Marginean
The switch driver for LS1028A Ethernet switch is now compiled in for
both LS1028A boards.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
v2: none
configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++
configs/ls1028aqds_tfa_defconfig | 2
and
they are expected to support the typical networking commands.
DSA switches may be cascaded, DSA class code does not currently support
this.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
Reviewed-by: Simon Glass
---
v2: none
drivers/net/Kconfig| 14 ++
include/dm/uclass-id.h
e made with the addition of
extra eth interfaces used by the dsa unit tests. The additional eth
interfaces also require MAC addresses, these have been added to the
sandbox default environment.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
Reviewed-by: Simon Glass
---
v2: none
arch/K
et: Add Felix DSA switch driver
arm: dts: ls1028a: Add Ethernet switch node and dependencies
configs: ls1028a: Enable the Ethernet switch driver in defconfig
Claudiu Manoil (2):
net: Introduce DSA class for Ethernet switches
sandbox: Add a DSA sandbox driver and unit test
arch/Kconfig
>-Original Message-
>From: Michael Walle
>Sent: Thursday, January 14, 2021 5:40 PM
>To: Claudiu Manoil
>Cc: Joe Hershberger ; Simon Glass
>; Bin Meng ; u-
>b...@lists.denx.de; Vladimir Oltean ; Alexandru
>Marginean
>Subject: Re: [PATCH 4/5] arm: dts: ls1028
>-Original Message-
>From: Simon Glass
>Sent: Thursday, January 14, 2021 5:42 PM
>To: Claudiu Manoil
>Cc: Joe Hershberger ; Bin Meng
>; Michael Walle ; U-Boot Mailing
>List ; Vladimir Oltean ;
>Alexandru Marginean
>Subject: Re: [PATCH 1/5] net: Introduce DSA
>-Original Message-
>From: Michael Walle
>Sent: Wednesday, January 13, 2021 10:11 PM
[...]
>> --- a/arch/arm/dts/fsl-ls1028a.dtsi
>> +++ b/arch/arm/dts/fsl-ls1028a.dtsi
>> @@ -14,6 +14,17 @@
>> #address-cells = <2>;
>> #size-cells = <2>;
>>
>> +aliases {
>> +
the multitude of ports available now, and to
enforce the order in which master and slave ports are probed.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
arch/arm/dts/fsl-ls1028a-rdb.dts | 36 +
arch/arm/dts/fsl-ls1028a.dtsi| 55 +++-
2
e made with the addition of
extra eth interfaces used by the dsa unit tests. The additional eth
interfaces also require MAC addresses, these have been added to the
sandbox default environment.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
arch/Kconfig | 1 +
arch/sandb
be
used with the typical network commands like tftp.
Signed-off-by: Alex Marginean
Signed-off-by: Vladimir Oltean
Signed-off-by: Claudiu Manoil
---
drivers/net/fsl_enetc.h | 5 +
drivers/net/mscc_eswitch/Kconfig| 8 +
drivers/net/mscc_eswitch/Makefile | 1
From: Alex Marginean
The switch driver for LS1028A Ethernet switch is now compiled in for
both LS1028A boards.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++
configs/ls1028aqds_tfa_defconfig | 2 ++
configs
and
they are expected to support the typical networking commands.
DSA switches may be cascaded, DSA class code does not currently support
this.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
drivers/net/Kconfig| 14 ++
include/dm/uclass-id.h | 1 +
include/net.h | 6
ce the last submission, except for the DSA API function calls.
Alex Marginean (3):
drivers: net: Add Felix DSA switch driver
arm: dts: ls1028a: Add Ethernet switch node and dependencies
configs: ls1028a: Enable the Ethernet switch driver in defconfig
Claudiu Manoil (2):
net: Introduce DSA
>-Original Message-
>From: Priyanka Jain (OSS)
[...]
>
>Kindly fix build error for target
>BUILDMAN="sandbox x86" TOOLCHAIN="i386"
>
>https://travis-ci.org/github/p-priyanka-jain/u-boot/jobs/711090082
>
>
Hi Priyanka,
I will look into rebasing the patches and addressing these new
>-Original Message-
>From: U-Boot On Behalf Of Claudiu Manoil
>Sent: Tuesday, May 5, 2020 8:43 PM
>To: u-boot@lists.denx.de
>Cc: joe.hershber...@ni.com; Alexandru Marginean
>; Vladimir Oltean
>
>Subject: [PATCH v4 0/6] Introduce DSA Ethernet switch class and Fel
be
used with the typical network commands like tftp.
Signed-off-by: Alex Marginean
Tested-by: Michael Walle
Signed-off-by: Vladimir Oltean
Signed-off-by: Claudiu Manoil
---
drivers/net/fsl_enetc.h | 5 +
drivers/net/mscc_eswitch/Kconfig| 8 +
drivers/net
devices in U-Boot and
they are expected to support the typical networking commands.
DSA switches may be cascaded, DSA class code does not currently support
this.
Signed-off-by: Alex Marginean
Signed-off-by: Vladimir Oltean
Signed-off-by: Claudiu Manoil
---
drivers/net/Kconfig| 13
.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
arch/Kconfig | 1 +
arch/sandbox/dts/test.dts | 49 +
include/configs/sandbox.h | 4 +++
test/dm/Makefile | 1 +
test/dm/dsa.c | 58
From: Alex Marginean
The switch driver for LS1028A Ethernet switch is now compiled in for
both LS1028A boards.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++
configs/ls1028aqds_tfa_defconfig | 2 ++
configs
.
Signed-off-by: Alex Marginean
Signed-off-by: Claudiu Manoil
---
drivers/net/Kconfig | 8 ++
drivers/net/Makefile | 1 +
drivers/net/dsa_sandbox.c | 272 ++
3 files changed, 281 insertions(+)
create mode 100644 drivers/net/dsa_sandbox.c
diff
DSA stands for Distributed Switch Architecture and it is a subsystem
introduced in the Linux kernel to support switches that:
- have an Ethernet link up to the CPU
- use some form of tagging to identify the source/destination port for
Rx/Tx
- may be cascaded in tree-like structures.
DSA is
of ports available now, and to
enforce the order in which master and slave ports are probed.
Signed-off-by: Alex Marginean
Tested-by: Michael Walle
Signed-off-by: Claudiu Manoil
---
arch/arm/dts/fsl-ls1028a-rdb.dts | 36 +
arch/arm/dts/fsl-ls1028a.dtsi| 55
>-Original Message-
>From: Bin Meng [mailto:bmeng...@gmail.com]
>Sent: Tuesday, July 10, 2018 5:43 AM
>To: York Sun
>Cc: Alison Wang ; Prabhakar Kushwaha
>; U-Boot Mailing List ;
>Claudiu Manoil
>Subject: Re: ls1021atwr: Convert to use driver model TSEC driver
in accordance with the H/W specifications.
Fixes: 52d00a8 ls102xa: etsec: Add etsec support for LS102xA
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +-
board/freescale/ls1021aqds/ls1021aqds.c | 3 ++-
board/freescale
Hello,
Would you please consider applying these two net tree patches?
http://patchwork.ozlabs.org/patch/299620/
(net: Merge asm/fsl_enet.h into fsl_mdio.h)
http://patchwork.ozlabs.org/patch/299447/
(net: tsec: Fix NULL access in case init_phy() fails)
Thanks,
Claudiu
)
p1_p2_rdb_pc.c:373:24:expected struct tsec_mii_mng [noderef]
asn:2*regs
p1_p2_rdb_pc.c:373:24:got struct tsec_mii_mng *noident
Use TSEC_GET_MDIO_REGS_BASE() for the remaining mdio 'regs'
initializations to remove the __iomem warnings and for consistency.
Signed-off-by: Claudiu Manoil
dependency, merge the content of
asm/fsl_enet.h into fsl_mdio.h.
Some files (like fm_eth.h) were simply including fsl_enet.h
only for phy.h. These were updated to include phy.h instead.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
arch/powerpc/include/asm/fsl_enet.h | 24
If the PHY is not recognized don't access phydev (NULL)
and return 0 to signal failure.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index e9138f0..65fb2b0 100644
On 10/5/2013 5:49 PM, Timur Tabi wrote:
On Sat, Oct 5, 2013 at 9:31 AM, Timur Tabi ti...@tabi.org wrote:
+ out_be32(regs-tbase, (u32)txbd[0]);
+ out_be32(regs-rbase, (u32)rxbd[0]);
rxbd[0] is a virtual address.
Doesn't rbase require a physical address? You're assuming that virt == phys.
On 10/5/2013 5:31 PM, Timur Tabi wrote:
On Fri, Oct 4, 2013 at 11:25 AM, Claudiu Manoil
claudiu.man...@freescale.com wrote:
[v3] declaring the BDs as __iomem to avoid casting submitted:
http://patchwork.ozlabs.org/patch/280664/
+ out_be32(regs-tbase, (u32)txbd[0]);
+ out_be32(regs-rbase
On 10/3/2013 9:37 PM, Scott Wood wrote:
On Thu, 2013-10-03 at 14:48 +0300, Claudiu Manoil wrote:
+static inline u16 read_txbd_stat(uint idx)
+{
+ return in_be16((u16 __iomem *)txbd[idx].status);
+}
+
+static inline void write_txbd_stat(uint idx, u16 status)
+{
+ out_be16((u16
On 10/4/2013 6:12 AM, Timur Tabi wrote:
On Mon, Sep 30, 2013 at 4:44 AM, Claudiu Manoil
claudiu.man...@freescale.com wrote:
+#define GET_BD_STAT(T, i) be16_to_cpu((__force __be16)T##BD(i).status)
+#define SET_BD_STAT(T, i, v) T##BD(i).status = (__force __u16)cpu_to_be16(v)
+#define GET_BD_BLEN
the correctness
of these changes.
Cc: Scott Wood scottw...@freescale.com
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
v2:
* used portable I/O accessors (in_be/out_be)
* replaced macro usage
* retested on p1020 (ping, tftp)
v3:
* txbd, rxbd declared as __iomem to avoid casting
On 10/4/2013 6:50 PM, Scott Wood wrote:
On Fri, 2013-10-04 at 11:27 +0300, Claudiu Manoil wrote:
On 10/3/2013 9:37 PM, Scott Wood wrote:
On Thu, 2013-10-03 at 14:48 +0300, Claudiu Manoil wrote:
+static inline u16 read_txbd_stat(uint idx)
+{
+ return in_be16((u16 __iomem *)txbd[idx
the correctness
of these changes.
Cc: Scott Wood scottw...@freescale.com
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
v2:
* used portable I/O accessors (in_be/out_be)
* replaced macro usage
* retested on p1020 (ping, tftp)
drivers/net/tsec.c | 108
On 10/3/2013 1:15 AM, Scott Wood wrote:
[snip]
Yeah, it doesn't help when both types of accesses show up when searching
for the ring, and accessors exist with both possible argument orderings.
Especially when a driver has custom accessors.
It's OK to use explicit synchronization rather than
On 10/1/2013 9:50 PM, Scott Wood wrote:
On Tue, 2013-10-01 at 14:38 +0300, Claudiu Manoil wrote:
On 10/1/2013 2:22 AM, Scott Wood wrote:
On Mon, 2013-09-30 at 12:44 +0300, Claudiu Manoil wrote:
+static RTXBD rtx __aligned(8);
+#define RXBD(i) rtx.rxbd[i]
+#define TXBD(i) rtx.txbd[i]
+#define
On 10/1/2013 2:22 AM, Scott Wood wrote:
On Mon, 2013-09-30 at 12:44 +0300, Claudiu Manoil wrote:
+static RTXBD rtx __aligned(8);
+#define RXBD(i) rtx.rxbd[i]
+#define TXBD(i) rtx.txbd[i]
+#define GET_BD_STAT(T, i) be16_to_cpu((__force __be16)T##BD(i).status)
+#define SET_BD_STAT(T, i, v) T
-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/rtl8139.c | 2 +-
drivers/net/tsec.c| 4 ++--
include/net.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index 4186699..208ce5c 100644
--- a/drivers/net
[noderef] asn:2*phyregs_sgmii
[...]
tsec.c:680:19: warning: incorrect type in assignment (different address
spaces)
tsec.c:680:19:expected struct tsec_mii_mng *regs
tsec.c:680:19:got struct tsec_mii_mng [noderef] asn:2*noident
[...]
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
leads to removal of the unused (faulty) privlist[]
and related global static vars. Note that mcast() can be
called only after eth_device allocation and init, and hence
after priv area allocation, so dev-priv is correctly
initialized upon mcast() call.
Signed-off-by: Claudiu Manoil claudiu.man
(see NetReceive(), NetRxPackets[]).
Claudiu Manoil (9):
net: Fix mcast function pointer prototype
net: tsec: Fix and cleanup tsec_mcast_addr()
net: tsec: Fix priv pointer in tsec_mcast_addr()
net: tsec: Cleanup tsec regs init and fix __iomem warns
net: fsl_mdio: Fix warnings for __iomem
mapped register regions.
This solves the sparse warnings for mixig normal pointers
with __iomem pointers for tsec.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 26 +-
include/tsec.h | 39 +--
2
: tempval.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 5dfdc94..44cead9 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
Use cross arch portable u32 instead of uint for the
tsec registers. Remove the typedefs for the register
struct definitions in the process. Fix long lines.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 2 +-
include/tsec.h | 278
Fix bufPtr and the rxIdx/ txIdx occurrences to
solve the related checkpatch warnings for the
coming patches.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 60 +++---
include/tsec.h | 4 ++--
2 files
to insure that the big endian
buffer descriptors are correctly accessed by the little
endian cpus too. Sparse tool was also used to verify the
correctness of these conversion macros.
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 89
* corrected some comment slips
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 31 +++
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 3428dd0..9ffc801 100644
--- a/drivers/net
* corrected some comment slips
Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/tsec.c | 31 +++
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 3428dd0..9ffc801 100644
--- a/drivers/net
-by: Claudiu Manoil claudiu.man...@freescale.com
---
drivers/net/rtl8139.c | 2 +-
drivers/net/tsec.c| 4 ++--
include/net.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index 4186699..208ce5c 100644
--- a/drivers/net
leads to removal of the unused (faulty) privlist[]
and related global static vars. Note that mcast() can be
called only after eth_device allocation and init, and hence
after priv area allocation, so dev-priv is correctly
initialized upon mcast() call.
Signed-off-by: Claudiu Manoil claudiu.man
...@gmail.com
Claudiu Manoil (3):
net: Fix mcast function pointer prototype
net: tsec: Fix and cleanup tsec_mcast_addr()
net: tsec: Fix priv pointer in tsec_mcast_addr()
drivers/net/rtl8139.c | 2 +-
drivers/net/tsec.c| 47 ---
include/net.h
58 matches
Mail list logo