[PATCH 5/8] net: fsl-mc: sync DPNI MC APIs

2023-05-31 Thread Ioana Ciornei
is not changed in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpni.c | 582 +++ drivers/net/fsl-mc/mc.c | 14 +- drivers/net/ldpaa_eth/ldpaa_eth.c | 22 +- include/fsl-mc/fsl_dpni.h | 1101 ++--- 4 files changed, 990

[PATCH 8/8] net: fsl-mc: sync remaining MC commands

2023-05-31 Thread Ioana Ciornei
This patch targets the last remaining commands left to sync to their latest form - mainly the mc_get_version() API. Besides this, remove any macro which is now of no help. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpmng.c | 20 drivers/net/fsl-mc

[PATCH 7/8] net: fsl-mc: sync DPIO MC APIs

2023-05-31 Thread Ioana Ciornei
in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpio/dpio.c | 179 +-- include/fsl-mc/fsl_dpio.h | 251 +++-- 2 files changed, 220 insertions(+), 210 deletions(-) diff --git a/drivers/net/fsl-mc/dpio/dpio.c b/drivers/net/fsl-mc

[PATCH 6/8] net: fsl-mc: sync DPSPARSER MC APIs

2023-05-31 Thread Ioana Ciornei
is not changed in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpsparser.c | 124 ++--- include/fsl-mc/fsl_dpsparser.h | 139 - 2 files changed, 126 insertions(+), 137 deletions(-) diff --git a/drivers/net/fsl-mc/dpsparser.c b/drivers

[PATCH 3/8] net: fsl-mc: sync DPMAC MC APIs

2023-05-31 Thread Ioana Ciornei
in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpmac.c | 185 include/fsl-mc/fsl_dpmac.h | 240 + 2 files changed, 215 insertions(+), 210 deletions(-) diff --git a/drivers/net/fsl-mc/dpmac.c b/drivers/net/fsl-mc

[PATCH 4/8] net: fsl-mc: sync DPRC MC APIs

2023-05-31 Thread Ioana Ciornei
is not changed in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dprc.c | 232 - include/fsl-mc/fsl_dprc.h | 424 +- 2 files changed, 280 insertions(+), 376 deletions(-) diff --git a/drivers/net/fsl-mc/dprc.c b/drivers/net/fsl-mc

[PATCH 1/8] net: fsl-mc: remove unused MC APIs

2023-05-31 Thread Ioana Ciornei
There are multiple MC APIs which were added years ago but they are not used at all in the u-boot source code. Remove all these APIs. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpio/dpio.c | 15 - drivers/net/fsl-mc/dpmac.c | 89 -- drivers/net/fsl-mc/dpni.c | 100

[PATCH 2/8] net: fsl-mc: sync DPBP MC APIs

2023-05-31 Thread Ioana Ciornei
is not changed in any way. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpbp.c | 180 +++-- include/fsl-mc/fsl_dpbp.h | 193 +++- include/fsl-mc/fsl_mc_cmd.h | 24 + 3 files changed, 188 insertions(+), 209 deletions(-) diff --git

[PATCH 0/8] net: fsl-mc: sync to latest MC APIs

2023-05-31 Thread Ioana Ciornei
This patch set syncs all the MC APIs to their latest form using packed structures to ilustrate each field and its endianness. No change in the minimum MC version or the command's version is made. The first patch removes any unused API so that we do not carry around useless code. Ioana Ciornei (8

[PATCH 2/2] board: fsl: lx2160ardb: add dts fixup function for RevC and newer

2023-05-31 Thread Ioana Ciornei
-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160ardb.c | 107 +++ board/freescale/lx2160a/lx2160a.c| 7 ++ board/freescale/lx2160a/lx2160a.h| 1 + include/configs/lx2160ardb.h | 5 ++ 4 files changed, 120

[PATCH 1/2] board: fsl: lx2160ardb: add api for obtaining board revision

2023-05-31 Thread Ioana Ciornei
From: Florin Chiculita Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 15 ++- board/freescale/lx2160a/lx2160a.h | 4 2 files

[PATCH 0/2] board: fsl: lx2160ardb: fixup PHY addresses for new board revisions

2023-05-31 Thread Ioana Ciornei
On the board revisions C and D, the LX2160A-RDB has the two 10G copper PHYs at different MDIO addresses. This patch set does the necessary fixup to both u-boot's and Linux's DTS so that the PHYs are properly described. Florin Chiculita (2): board: fsl: lx2160ardb: add api for obtaining board

[PATCH 6/6] net: ldpaa_eth: export DPNI and DPMAC counters through 'net stats'

2023-05-23 Thread Ioana Ciornei
Export the already existing DPNI and DPMAC counters through the newly added callbacks. Signed-off-by: Ioana Ciornei --- drivers/net/ldpaa_eth/ldpaa_eth.c | 44 --- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b

[PATCH 5/6] cmd: net: add a 'net stats' command to dump network statistics

2023-05-23 Thread Ioana Ciornei
which describe those counters and the actual values. Signed-off-by: Ioana Ciornei --- cmd/net.c | 54 ++- include/net.h | 6 ++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/cmd/net.c b/cmd/net.c index 68d406291ef1

[PATCH 4/6] net: ldpaa_eth: extend debug capabilities with DPMAC statistics

2023-05-23 Thread Ioana Ciornei
-off-by: Ioana Ciornei --- drivers/net/ldpaa_eth/ldpaa_eth.c | 114 ++ drivers/net/ldpaa_eth/ldpaa_eth.h | 34 + include/fsl-mc/fsl_dpmac.h| 5 +- 3 files changed, 76 insertions(+), 77 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b

[PATCH 3/6] net: ldpaa_eth: extend debug capabilities with DPNI statistics

2023-05-23 Thread Ioana Ciornei
-by: Ioana Ciornei --- drivers/net/ldpaa_eth/ldpaa_eth.c | 106 +++--- drivers/net/ldpaa_eth/ldpaa_eth.h | 30 + 2 files changed, 82 insertions(+), 54 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index fe901baf5a4e

[PATCH 2/6] net: ldpaa_eth: transform dpni_statistics from a struct to a union

2023-05-23 Thread Ioana Ciornei
In order to simplify code, dpni_statistics can be written as a union. Using the raw accessors we can just loop through all the statistics from a page without trying to access each an every one independently. Make this change to a union. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/dpni.c

[PATCH 1/6] net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API

2023-05-23 Thread Ioana Ciornei
Each MC commands has a specific predefined memory layout that gets interpreted by the firmware. The dpmac_get_counters() API memory layout is wrong, thus the results returned by the command are incorrect. Fix this by updating the offset of the counter field. Signed-off-by: Ioana Ciornei

[PATCH 0/6] Add the 'net stats' command to dump network statistics

2023-05-23 Thread Ioana Ciornei
of counters, the first 4 patches are there to extend the existing list of counters and to reorganize the code so that it fits better with the new eth_ops callbacks. Ioana Ciornei (6): net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API net: ldpaa_eth: transform dpni_statistics

Re: [PATCH 00/18] Synchronise LS1088A/Ten64 device tree with Linux

2023-04-28 Thread Ioana Ciornei
ork.ozlabs.org/project/uboot/list/?series=346392=%2A=both > > [2] - "arm: dts: ls1028a: sync device tree with linux" patch series > https://patchwork.ozlabs.org/project/uboot/list/?series=265457=%2A=both > Thanks a lot, Mathew! I really appreciate the work that you put into this series. For the entire series: Reviewed-by: Ioana Ciornei Tested-by: Ioana Ciornei # on LS1088A-RDB Ioana

Re: [PATCH 02/18] configs: ten64: enable DM_SERIAL

2023-04-28 Thread Ioana Ciornei
On Wed, Apr 12, 2023 at 07:38:14AM +, Mathew McBride wrote: > The recent series "Convert LS1088A and LX2160 to DM_SERIAL" > from Ioana Ciornei provided the necessary support to enable > DM_SERIAL on the Ten64 board (LS1088A). > > Signed-off-by: Mathew McBride R

Re: [PATCH 0/2] drivers: net: fsl-mc: fix MAC address fixup procedure

2023-03-15 Thread Ioana Ciornei
On Thu, Feb 09, 2023 at 06:07:02PM +0200, Ioana Ciornei wrote: > This patch set fixes the MAC address fixup procedure which was impacted > by several changes in the phy_interface_t used to describe some > interfaces. The transitions from "xgmii" to "xfi" and then

Re: [PATCH] configs: convert NXP LS1028A RDB and QDS to DM_SERIAL

2023-03-15 Thread Ioana Ciornei
ns16550.c). > > ls1028aqds_tfa_lpuart_defconfig already uses DM_SERIAL for the LPUART > driver, so I didn't touch that. > > Signed-off-by: Vladimir Oltean Reviewed-by: Ioana Ciornei

[PATCH 08/10] arch: arm: dts: fsl-lx2160a.dtsi: sync serial nodes with Linux

2023-03-15 Thread Ioana Ciornei
Sync the serial nodes of the LX2160A based boards with their representation in Linux. We also imported the clockgen and sysclk nodes which are dependencies. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a-qds.dtsi | 11 ++- arch/arm/dts/fsl-lx2160a-rdb.dts | 11

[PATCH 10/10] board: freescale: lx2160a: remove the PL01X device instantiation

2023-03-15 Thread Ioana Ciornei
There is no need for the board file to instantiate a PL01X platform device anymore. This is all taken care of by the DM code which now will probe the device based on the DT node. Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 34 --- 1 file

[PATCH 06/10] arch: arm: dts: fsl-lx2160a.dtsi: add an 'soc' node

2023-03-15 Thread Ioana Ciornei
The u-boot dts for these boards do not have an soc node, unlike its Linux counterpart. This patch just adds the soc node as seen in Linux, the next patches will move some nodes under it. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 8 1 file changed, 8 insertions

[PATCH 09/10] arch: arm: dts: fsl-lx2160a.dtsi: tag serial nodes with bootph-all

2023-03-15 Thread Ioana Ciornei
Tag the serial nodes with bootph-all in order to have these nodes and the drivers available before relocation. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/dts/fsl-lx2160a.dtsi

[PATCH 07/10] arch: arm: dts: fsl-lx2160a.dtsi: move the serial nodes under soc

2023-03-15 Thread Ioana Ciornei
Move the serial nodes under the soc node. No changes are made to the nodes, just their location is changed. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/arch/arm/dts/fsl

[PATCH 04/10] arch: arm: dts: fsl-ls1088a.dtsi: tag serial nodes with bootph-all

2023-03-15 Thread Ioana Ciornei
Tag the serial nodes with bootph-all in order to have these nodes and the drivers available before relocation. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index

[PATCH 05/10] configs: ls1088a: enable DM_SERIAL

2023-03-15 Thread Ioana Ciornei
Now that the DT nodes for the serial devices are in place for these boards, enable DM_SERIAL in the associated configs. Signed-off-by: Ioana Ciornei --- configs/ls1088aqds_tfa_defconfig | 4 +++- configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 4 +++- configs/ls1088ardb_tfa_defconfig

[PATCH 03/10] arch: arm: dts: fsl-ls1088a.dtsi: sync serial nodes with Linux

2023-03-15 Thread Ioana Ciornei
Sync the serial nodes of the LS1088A based boards with their representation in Linux. We also imported the clockgen and sysclk nodes which are dependencies. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a-qds.dtsi | 8 +++ arch/arm/dts/fsl-ls1088a-rdb.dts | 8 +++ arch

[PATCH 02/10] arch: arm: dts: fsl-ls1088a.dtsi: move the serial nodes under soc

2023-03-15 Thread Ioana Ciornei
Move the serial nodes under the soc node. No changes are made to the nodes, just their location is changed. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/arch/arm/dts/fsl

[PATCH 01/10] arch: arm: dts: fsl-ls1088a.dtsi: add an 'soc' node

2023-03-15 Thread Ioana Ciornei
The u-boot dts for these boards do not have an soc node, unlike its Linux counterpart. This patch just adds the soc node as seen in Linux, the next patches will move some nodes under it. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 9 + 1 file changed, 9 insertions

[PATCH 00/10] Convert LS1088A and LX2160 to DM_SERIAL

2023-03-15 Thread Ioana Ciornei
the LS1088A's defconfigs so that DM_SERIAL is enabled. On LX2160A's defconfigs these updates are not needed since DM_SERIAL was already enabled. On the other hand, we did remove the hardcoded PL01X device instantiation from the board files in the last patch. Ioana Ciornei (10): arch: arm: dts: fsl

Re: [PATCH 0/5] Convert the LS208xA RDB/QDS boards to DM_SERIAL

2023-02-28 Thread Ioana Ciornei
On Tue, Feb 28, 2023 at 11:40:15AM -0500, Tom Rini wrote: > On Tue, Feb 28, 2023 at 06:32:07PM +0200, Ioana Ciornei wrote: > > This patch set converts the LS208xA based boards to DM_SERIAL. > > > > Since we don't want to introduce even more differences between the > >

[PATCH 5/5] configs: ls208x: enable DM_SERIAL

2023-02-28 Thread Ioana Ciornei
Now that the DT nodes for the serial devices are in place for these boards, enable DM_SERIAL in the associated configs. Signed-off-by: Ioana Ciornei --- configs/ls2088aqds_tfa_defconfig | 5 +++-- configs/ls2088ardb_tfa_SECURE_BOOT_defconfig | 4 +++- configs

[PATCH 4/5] arch: arm: dst: fsl-ls2080a.dts: tag serial nodes with bootph-all

2023-02-28 Thread Ioana Ciornei
Tag the serial nodes with bootph-all in order to have these nodes and the drivers available before relocation. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls2080a.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index

[PATCH 3/5] arch: arm: dst: fsl-ls2080a.dts: sync serial nodes with Linux

2023-02-28 Thread Ioana Ciornei
Sync the serial nodes of the LS208XA RDB/QDS boards with their representation in Linux. We also imported the clockgen and sysclk nodes which are dependencies. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls2080a.dtsi | 33 +++-- 1 file changed, 27 insertions

[PATCH 2/5] arch: arm: dst: fsl-ls2080a.dtsi: move the serial nodes under soc

2023-02-28 Thread Ioana Ciornei
Move the serial nodes under the soc node. No changes are made to the nodes, just their location is changed. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls2080a.dtsi | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/arch/arm/dts/fsl

[PATCH 1/5] arch: arm: dst: fsl-ls2080a.dtsi: add an 'soc' node

2023-02-28 Thread Ioana Ciornei
The u-boot dts for these boards do not have an soc node, unlike its Linux counterpart. This patch just adds the soc node as seen in Linux, the next patches will move some nodes under it. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls2080a.dtsi | 9 + 1 file changed, 9 insertions

[PATCH 0/5] Convert the LS208xA RDB/QDS boards to DM_SERIAL

2023-02-28 Thread Ioana Ciornei
enables DM_SERIAL in the associated configs. Ioana Ciornei (5): arch: arm: dst: fsl-ls2080a.dtsi: add an 'soc' node arch: arm: dst: fsl-ls2080a.dtsi: move the serial nodes under soc arch: arm: dst: fsl-ls2080a.dts: sync serial nodes with Linux arch: arm: dst: fsl-ls2080a.dts: tag serial nodes

Re: [PATCH 0/5] arm: fsl-layerscape: remove some boards

2023-02-22 Thread Ioana Ciornei
On Sun, Feb 12, 2023 at 06:17:15PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > These boards are for internal validation, drop them. > > Peng Fan (5): > arm: ls1012: remove ls1012aqds > arm: ls1021: remove ls1021aqds > arm: ls1043: remove ls1043aqds > arm: ls1046: remove ls1046aqds

[PATCH] arm: dts: ls1088a-rdb: replace 'xgmii' with '10gbase-r'

2023-02-22 Thread Ioana Ciornei
8ardb: add DPMAC and PHY nodes") Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a-rdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a-rdb.dts b/arch/arm/dts/fsl-ls1088a-rdb.dts index ad059437b534..01f8fcb61aef 100644 --- a/arch/a

[PATCH 5/5] board: freescale: ls1088a: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls1088a/eth_ls1088aqds.c | 739 +-- board/freescale/ls1088a/eth_ls1088ardb.c | 93 --- board

[PATCH 2/5] board: freescale: lx2160a: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160aqds.c | 825 +- board/freescale/lx2160a/eth_lx2160ardb.c | 32 - board

[PATCH 4/5] board: freescale: ls2080aqds: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls2080aqds/eth.c| 981 +--- board/freescale/ls2080aqds/ls2080aqds.c | 2 +- 2 files

[PATCH 3/5] board: freescale: ls2080rdb: remove code under !CONFIG_DM_ETH

2023-02-15 Thread Ioana Ciornei
Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei --- board/freescale/ls2080ardb/eth_ls2080rdb.c | 95 -- board/freescale/ls2080ardb/ls2080ardb.c| 2 +- 2 files

[PATCH 1/5] board: freescale: lx2160a: remove hardcoded ethernet initialization

2023-02-15 Thread Ioana Ciornei
The LX2160ARDB board has support for DM_ETH probed devices, which means that we do not need to manually create an MDIO controller, register it, create PHYs on it etc. In order to cleanup the board file a bit, just remove this code entirely. Signed-off-by: Ioana Ciornei --- board/freescale

[PATCH 0/5] board: freescale: remove non-DM_ETH code for Layerscape DPAA2 platforms

2023-02-15 Thread Ioana Ciornei
ing around the creation of the MDIO bus or the hardcoded MDIO PHY addresses since we have these described in the DTS. And if there is any RCW combination which is still not supported / described by DTS we can always look in the commit history. Ioana Ciornei (5): board: freescale: lx2160a: remove hardcode

[PATCH 2/2] drivers: net: fsl-mc: fix MAC address fixup procedure

2023-02-09 Thread Ioana Ciornei
ce. For example, the function tried to search for "DPMAC1@xgmii1" by name using eth_get_dev_by_name() when only "DPMAC1@10gbase-r" was available. This function removes the need to rely on the hardcoded information by iterating through all the UCLASS_ETH devices which are DPAA2 an

[PATCH 1/2] drivers: net: ldpaa: export driver name and API to get DPMAC id

2023-02-09 Thread Ioana Ciornei
Export the ldpaa_eth_get_dpmac_id() function so that it can be used from other drivers, especially by fsl-mc which will need it the next patch. Also, create a macro for the Ethernet ldpaa driver name and export it as well. Signed-off-by: Ioana Ciornei --- drivers/net/ldpaa_eth/ldpaa_eth.c | 7

[PATCH 0/2] drivers: net: fsl-mc: fix MAC address fixup procedure

2023-02-09 Thread Ioana Ciornei
ction to identify the DPMAC id of an UCLASS_ETH device and the DPAA2 driver name as a macro. Ioana Ciornei (2): drivers: net: ldpaa: export driver name and API to get DPMAC id drivers: net: fsl-mc: fix MAC address fixup procedure drivers/net/fsl-mc/mc.c | 31 +---

Re: [PATCH 1/7] drivers: net: fsl-mc: remove useless assignment of variable

2023-01-12 Thread Ioana Ciornei
On Tue, Jan 10, 2023 at 07:04:00PM +0200, Ramon Fried wrote: > On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > > > The cur_ptr variable is set to the start of the log buffer but then it's > > not used. Just remove the assignment altogether. > > >

[PATCH] drivers: net: fsl_ls_mdio: prevent a NULL pointer dereference

2023-01-05 Thread Ioana Ciornei
Prevent a NULL pointer dereference in the probe path by checking the return valud of dev_read_addr_ptr() against NULL. Signed-off-by: Ioana Ciornei --- drivers/net/fsl_ls_mdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/fsl_ls_mdio.c b/drivers/net/fsl_ls_mdio.c index

[PATCH 5/7] drivers: net: fsl-mc: remove explicit cast

2023-01-05 Thread Ioana Ciornei
Remove all the explicit casts from the void* returned by calloc. With this we also improve a bit the length of those lines and there is no need to split the assignment. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 13 + 1 file changed, 5 insertions(+), 8 deletions

[PATCH 7/7] drivers: net: fsl-mc: do not use multiple blank lines

2023-01-05 Thread Ioana Ciornei
Remove the instances in which we have multiple blank lines. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 531835fbd503..f78f070aec1c 100644 --- a/drivers/net/fsl-mc/mc.c +++ b

[PATCH 6/7] drivers: net: fsl-mc: align parameters to the open paranthesis

2023-01-05 Thread Ioana Ciornei
There were some cases in which the function parameters were not aligned to the open paranthesis. Fix those instances. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net

[PATCH 4/7] drivers: net: fsl-mc: remove the initialisation of global variables

2023-01-05 Thread Ioana Ciornei
Some of the global variables were being initialised either to NULL or 0. This is not needed, just remove the it. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl

[PATCH 3/7] drivers: net: fsl-mc: do not prefix decimal values with 0x

2023-01-05 Thread Ioana Ciornei
The fsl-mc driver printed debug information which used the 0x prefix for decimal values. This only confuses anyone looking through the log. Because of this, just remove the prefix and use the "DPXY." notation which is the standard one for the DPAA2 objects. Signed-off-by: Ioa

[PATCH 2/7] drivers: net: fsl-mc: remove an useless break statement

2023-01-05 Thread Ioana Ciornei
The break statement is just after a goto statement, thus it will not get executed. Just remove it. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 66fcb48ebd55..180e57e42266

[PATCH 1/7] drivers: net: fsl-mc: remove useless assignment of variable

2023-01-05 Thread Ioana Ciornei
The cur_ptr variable is set to the start of the log buffer but then it's not used. Just remove the assignment altogether. Signed-off-by: Ioana Ciornei --- drivers/net/fsl-mc/mc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index

[PATCH 0/7] drivers: net: fsl-mc: cleanup coding style

2023-01-05 Thread Ioana Ciornei
of the checkpatch warnings. Ioana Ciornei (7): drivers: net: fsl-mc: remove useless assignment of variable drivers: net: fsl-mc: remove an useless break statement drivers: net: fsl-mc: do not prefix decimal values with 0x drivers: net: fsl-mc: remove the initialisation of global variables

Re: LX2106A U-Boot: board_eth_init() not called any more

2022-11-09 Thread Ioana Ciornei
On Wed, Nov 09, 2022 at 08:24:27AM -0500, Tom Rini wrote: > On Wed, Nov 09, 2022 at 12:48:59PM +0200, Ioana Ciornei wrote: > > > From: Stefan Roese > > > Subject: LX2106A U-Boot: board_eth_init() not called any more > > > [snip] > > I suspect there'

Re: LX2106A U-Boot: board_eth_init() not called any more

2022-11-09 Thread Ioana Ciornei
On Wed, Nov 09, 2022 at 02:29:56PM +0100, Stefan Roese wrote: > Hi Ioana, > [snip] > > fsl-mc: Booting Management Complex ... SUCCESS > > fsl-mc: Management Complex booted (version: 10.24.0, boot status: 0x1) > > Hit any key to stop autoboot: 0 > > => setenv ethact DPMAC3@usxgmii > > => setenv

RE: LX2106A U-Boot: board_eth_init() not called any more

2022-11-09 Thread Ioana Ciornei
> From: Stefan Roese > Subject: LX2106A U-Boot: board_eth_init() not called any more > > Dear NXP LX2160 developers! > Hi! > With commit 94633c36f9eb ("net: Make DM_ETH be selected by NETDEVICE") > DM_ETH is now mandatory. And net/eth_legacy.c is not compiled anymore. > Resulting in

Re: [PATCH] net: fsl_mdio: Fix busy flag polling register

2022-01-04 Thread Ioana Ciornei
On Sun, Jan 02, 2022 at 06:34:18PM +0100, Markus Koch wrote: > NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management > Interface usage", specifies to poll the BSY (0) bit in the CFG (we call > it CTL) register to wait until a transaction has finished, not bit 31 in > the data

Re: [PATCH v2] drivers: net: fsl-mc: add a command which dumps the MC log

2021-10-07 Thread Ioana Ciornei
email client so that you can respond inline next time. > -Original Message- > From: Aluchenesei Cosmin-florin > Sent: Thursday, October 7, 2021 1:08 PM > To: joe.hershber...@ni.com; rfried@gmail.com; Priyanka Jain > > Cc: Ioana Ciornei ; u-boot@lists.denx.de; Aluc

Re: [PATCH] drivers: net: fsl-mc: add a command which dumps the MC log

2021-10-07 Thread Ioana Ciornei
On Fri, Oct 01, 2021 at 12:01:07PM +0300, Cosmin-Florin Aluchenesei wrote: > +static void mc_dump_log(void) > +{ > + struct mc_ccsr_registers __iomem *mc_ccsr_regs = MC_CCSR_BASE_ADDR; > + u64 high = in_le64(_ccsr_regs->reg_mcfbahr) & MC_FW_ADDR_MASK_HIGH; > + u64 low =

[PATCH v2 3/4] board: fsl: lx2160ardb: add dts fixup function for RevC

2021-04-26 Thread Ioana Ciornei
of the kernel DTS to properly match the actual PHY addresses. All this is encapsulated in the fdt_fixup_board_phy_revc() function which will be used in the next patch. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160ardb.c | 106

[PATCH v2 2/4] board: fsl: lx2160ardb: add support for lx2160ardb revC board

2021-04-26 Thread Ioana Ciornei
-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160ardb.c | 52 +++- include/configs/lx2160ardb.h | 5 ++- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c index

[PATCH v2 4/4] board: fsl: lx2160ardb: add dts fixup for RevC

2021-04-26 Thread Ioana Ciornei
Use the newly fdt_fixup_board_phy_revc() function introduced to updated both kernel's DTS and u-boot's DTS in case we are running with DM_ETH. Signed-off-by: Ioana Ciornei Signed-off-by: Florin Chiculita --- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- board/freescale/lx2160a/lx2160a.c

[PATCH v2 1/4] board: fsl: lx2160ardb: add api for obtaining board revision

2021-04-26 Thread Ioana Ciornei
From: Florin Chiculita Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 13 ++--- board/freescale/lx2160a/lx2160a.h | 6 +- 2 files

[PATCH v2 0/4] board: fsl: lx2160ardb: add networking support for RevC

2021-04-26 Thread Ioana Ciornei
board revision board: fsl: lx2160ardb: add support for lx2160ardb revC board board: fsl: lx2160ardb: add dts fixup function for RevC Ioana Ciornei (1): board: fsl: lx2160ardb: add dts fixup for RevC board/freescale/lx2160a/eth_lx2160ardb.c | 160 ++- board/freescale

[PATCH 3/4] board: fsl: lx2160ardb: add dts fixup function for RevC

2021-04-21 Thread Ioana Ciornei
of the kernel DTS to properly match the actual PHY addresses. All this is encapsulated in the fdt_fixup_board_phy_revc() function which will be used in the next patch. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160ardb.c | 106

[PATCH 0/4] board: fsl: lx2160ardb: add networking support for RevC

2021-04-21 Thread Ioana Ciornei
: fsl: lx2160ardb: add dts fixup function for RevC Ioana Ciornei (1): board: fsl: lx2160ardb: add dts fixup for RevC board/freescale/lx2160a/eth_lx2160ardb.c | 158 ++- board/freescale/lx2160a/lx2160a.c| 21 ++- board/freescale/lx2160a/lx2160a.h| 5 + include

[PATCH 4/4] board: fsl: lx2160ardb: add dts fixup for RevC

2021-04-21 Thread Ioana Ciornei
Use the newly fdt_fixup_board_phy_revc() function introduced to updated both kernel's DTS and u-boot's DTS in case we are running with DM_ETH. Signed-off-by: Ioana Ciornei Signed-off-by: Florin Chiculita --- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- board/freescale/lx2160a/lx2160a.c

[PATCH 2/4] board: fsl: lx2160ardb: add support for lx2160ardb revC board

2021-04-21 Thread Ioana Ciornei
-by: Ioana Ciornei --- board/freescale/lx2160a/eth_lx2160ardb.c | 50 include/configs/lx2160ardb.h | 6 ++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c index

[PATCH 1/4] board: fsl: lx2160ardb: add api for obtaining board revision

2021-04-21 Thread Ioana Ciornei
From: Florin Chiculita Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 13 ++--- board/freescale/lx2160a/lx2160a.h | 4 2 files

[PATCH] net: memac_phy: add a timeout to MDIO operations

2020-12-09 Thread Ioana Ciornei
, the execution is stuck in an infinite loop when any access is initiated on that external bus. Add a timeout in the driver so that we are protected in this circumstance. This is similar to what is being done in the Linux xgmac_mdio driver. Signed-off-by: Ioana Ciornei --- drivers/net/fm/memac_phy.c

[PATCH] configs: ls1088a: enable CMD_MDIO

2020-10-20 Thread Ioana Ciornei
Enable the CMD_MDIO Kconfig option by removing the "is not set" indication from all the defconfigs for this SoC. Signed-off-by: Ioana Ciornei --- configs/ls1088aqds_qspi_SECURE_BOOT_defconfig| 1 - configs/ls1088aqds_qspi_defconfig| 1

[PATCH] drivers: net: ldpaa_eth: lx2160a: fix bug in checking if a DPMAC is enabled

2020-09-10 Thread Ioana Ciornei
From: Grigore Popescu The next DPMAC was always verified if it is enabled. In case of DPMAC@6, the DPMAC@7 is verified. As DPMAC@7 is disabled, DPMAC@6 will be considered disabled and not detected by uboot. Signed-off-by: Grigore Popescu Signed-off-by: Ioana Ciornei --- drivers/net

[PATCH v3 3/3] configs: ls2080aqds_tfa_defconfig: enable DM_ETH and related

2020-05-18 Thread Ioana Ciornei
Enable CONFIG_DM_ETH and CONFIG_DM_MDIO and related configs for the LS2080AQDS board. Signed-off-by: Ioana Ciornei --- Changes in v3: - none configs/ls2088aqds_tfa_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/ls2088aqds_tfa_defconfig b/configs

[PATCH v3 1/3] board: ls2080aqds: transition to DM_ETH

2020-05-18 Thread Ioana Ciornei
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2 Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH is activated. Also, force the PCI devices to be enumerated at probe time. Signed-off-by: Ioana Ciornei --- Changes in v3: - fixed a build warning

[PATCH v3 2/3] arm: dts: ls2080aqds: add CONFIG_MULTI_DTB_FIT support

2020-05-18 Thread Ioana Ciornei
) on SD#1. Also, in case CONFIG_DM_ETH and CONFIG_MULTI_DTB_FIT are enabled implement the board_fit_config_name_match() function in order to choose the appropriate DTS. Signed-off-by: Ioana Ciornei --- Changes in v3: - none arch/arm/dts/Makefile| 1 + arch/arm/dts/fsl-ls2080a

[PATCH v3 0/3] boards: ls2080aqds: transition to CONFIG_DM_ETH

2020-05-18 Thread Ioana Ciornei
in v3: - fixed a build warning in patch 1/3 Ioana Ciornei (3): board: ls2080aqds: transition to DM_ETH arm: dts: ls2080aqds: add CONFIG_MULTI_DTB_FIT support configs: ls2080aqds_tfa_defconfig: enable DM_ETH and related arch/arm/dts/Makefile| 1 + arch/arm/dts/fsl-ls2080a

RE: [PATCH v2 1/3] board: ls2080aqds: transition to DM_ETH

2020-05-18 Thread Ioana Ciornei
> Subject: RE: [PATCH v2 1/3] board: ls2080aqds: transition to DM_ETH > > >-Original Message----- > >From: Ioana Ciornei > >Sent: Friday, May 15, 2020 12:27 PM > >To: Priyanka Jain ; u-boot@lists.denx.de > >Cc: Ioana Ciornei > >Subject: [P

[PATCH v2 3/3] configs: ls2080aqds_tfa_defconfig: enable DM_ETH and related

2020-05-15 Thread Ioana Ciornei
Enable CONFIG_DM_ETH and CONFIG_DM_MDIO and related configs for the LS2080AQDS board. Signed-off-by: Ioana Ciornei --- configs/ls2088aqds_tfa_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/ls2088aqds_tfa_defconfig b/configs/ls2088aqds_tfa_defconfig index

[PATCH v2 3/3] configs: ls1088aqds_tfa_defconfig: enable DM_ETH and related

2020-05-15 Thread Ioana Ciornei
Enable CONFIG_DM_ETH and CONFIG_DM_MDIO and related configs for the LS1088AQDS board. Signed-off-by: Ioana Ciornei --- configs/ls1088aqds_tfa_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/ls1088aqds_tfa_defconfig b/configs/ls1088aqds_tfa_defconfig index

[PATCH v2 2/3] arm: dts: ls2080aqds: add CONFIG_MULTI_DTB_FIT support

2020-05-15 Thread Ioana Ciornei
) on SD#1. Also, in case CONFIG_DM_ETH and CONFIG_MULTI_DTB_FIT are enabled implement the board_fit_config_name_match() function in order to choose the appropriate DTS. Signed-off-by: Ioana Ciornei --- arch/arm/dts/Makefile| 1 + arch/arm/dts/fsl-ls2080a-qds-42-x.dts| 16

[PATCH v2 0/3] boards: ls1088aqds: transition to CONFIG_DM_ETH

2020-05-15 Thread Ioana Ciornei
-qoriq/next Ioana Ciornei (3): arm: dts: ls1088aqds: add CONFIG_MULTI_DTB_FIT support board: ls1088aqds: transition to DM_ETH configs: ls1088aqds_tfa_defconfig: enable DM_ETH and related arch/arm/dts/Makefile| 2 + arch/arm/dts/fsl-ls1088a-qds-21-x.dts| 16 ++ arch

[PATCH v2 1/3] arm: dts: ls1088aqds: add CONFIG_MULTI_DTB_FIT support

2020-05-15 Thread Ioana Ciornei
the board_fit_config_name_match() function in order to choose the appropriate DTS. Signed-off-by: Ioana Ciornei --- arch/arm/dts/Makefile| 2 + arch/arm/dts/fsl-ls1088a-qds-21-x.dts| 16 ++ arch/arm/dts/fsl-ls1088a-qds-29-x.dts| 16 ++ arch/arm/dts/fsl-ls1088a-qds

[PATCH v2 1/3] board: ls2080aqds: transition to DM_ETH

2020-05-15 Thread Ioana Ciornei
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2 Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH is activated. Also, force the PCI devices to be enumerated at probe time. Signed-off-by: Ioana Ciornei --- board/freescale/ls2080aqds/eth.c| 13

[PATCH v2 0/3] boards: ls2080aqds: transition to CONFIG_DM_ETH

2020-05-15 Thread Ioana Ciornei
in the ldpaa_eth driver and the RDB boards: https://patchwork.ozlabs.org/project/uboot/list/?series=165158=* For the moment, when CONFIG_DM_ETH is enabled DPAA2 networking is supported only for the SERDES block #1 protocol 42 (0x2a). Changes in v2: - rebased on top of u-boot-fsl-qoriq/next Ioana

[PATCH v2 2/3] board: ls1088aqds: transition to DM_ETH

2020-05-15 Thread Ioana Ciornei
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2 Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH is activated. Also, force the PCI devices to be enumerated at probe time. Signed-off-by: Ioana Ciornei --- board/freescale/ls1088a/eth_ls1088aqds.c | 2

RE: [PATCH 3/3] configs: ls2080aqds_tfa_defconfig: enable DM_ETH and related

2020-05-12 Thread Ioana Ciornei
> Subject: RE: [PATCH 3/3] configs: ls2080aqds_tfa_defconfig: enable DM_ETH > and related > > >-Original Message- > >From: U-Boot On Behalf Of Ioana Ciornei > >Sent: Wednesday, April 29, 2020 4:03 PM > >To: u-boot@lists.denx.de; Priyanka Jain > >

[PATCH 2/3] board: ls1088aqds: transition to DM_ETH

2020-04-30 Thread Ioana Ciornei
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2 Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH is activated. Also, force the PCI devices to be enumerated at probe time. Signed-off-by: Ioana Ciornei --- board/freescale/ls1088a/eth_ls1088aqds.c | 2

[PATCH 1/3] arm: dts: ls1088aqds: add CONFIG_MULTI_DTB_FIT support

2020-04-30 Thread Ioana Ciornei
the board_fit_config_name_match() function in order to choose the appropriate DTS. Signed-off-by: Ioana Ciornei --- arch/arm/dts/Makefile| 2 + arch/arm/dts/fsl-ls1088a-qds-21-x.dts| 16 ++ arch/arm/dts/fsl-ls1088a-qds-29-x.dts| 16 ++ arch/arm/dts/fsl-ls1088a-qds

[PATCH 0/3] boards: ls1088aqds: transition to CONFIG_DM_ETH

2020-04-30 Thread Ioana Ciornei
in the ldpaa_eth driver and the RDB boards: https://patchwork.ozlabs.org/project/uboot/list/?series=165158=* For the moment, when CONFIG_DM_ETH is enabled DPAA2 networking is supported only for the SERDES block #1 protocol 21 (0x15) and protocol 29 (0x1d). Ioana Ciornei (3): arm: dts: ls1088aqds: add

[PATCH 3/3] configs: ls1088aqds_tfa_defconfig: enable DM_ETH and related

2020-04-30 Thread Ioana Ciornei
Enable CONFIG_DM_ETH and CONFIG_DM_MDIO and related configs for the LS1088AQDS board. Signed-off-by: Ioana Ciornei --- configs/ls1088aqds_tfa_defconfig | 11 ++- include/configs/ls1088aqds.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configs

RE: [PATCH] net: fsl-mc: fixup DPC: add /board/ports node if missing

2020-04-30 Thread Ioana Ciornei
> Subject: [PATCH] net: fsl-mc: fixup DPC: add /board/ports node if missing > > The DPC fixup for MAC address and enet_if is not made if /board/ports node is > missing in DPC file. > Add /board/ports or /ports nodes if them are missing. > > Signed-off-by: Razvan Ionut Cirjan

  1   2   >