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

2021-10-07 Thread Cosmin-Florin Aluchenesei
Extended fsl_mc command adding an extra option dump_log Signed-off-by: Cosmin-Florin Aluchenesei Changes in v2: - Add MC_STRUCT_BUFFER_OFFSET once to the base address of MC. --- drivers/net/fsl-mc/mc.c | 89 - include/fsl-mc/fsl_mc.h | 9 + 2 files

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

2021-10-07 Thread Cosmin-Florin Aluchenesei
Extended fsl_mc command adding an extra option dump_log Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/fsl-mc/mc.c | 89 - include/fsl-mc/fsl_mc.h | 9 + 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c

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

2021-10-01 Thread Cosmin-Florin Aluchenesei
Extended fsl_mc command adding an extra option dump_log Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/fsl-mc/mc.c | 89 - include/fsl-mc/fsl_mc.h | 9 + 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c

[PATCH] board: freescale: lx2160a: fix out of bounds write

2021-09-02 Thread Cosmin-Florin Aluchenesei
The declaration of dpmac_str was changed in order to make the following sprintf safe: sprintf(dpmac_str, "ethernet@%x", dpmac_id). Signed-off-by: Cosmin-Florin Aluchenesei --- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH] drivers: net: phy: in112525: fix out of bounds write

2021-09-02 Thread Cosmin-Florin Aluchenesei
Changed declarations of line_temp, reg_addr and reg_data arrays in order to avoid out-of-bounds write which may be caused by the following writing: line_temp[column_cnt] = '\0'; (Increased size from 80 to 81). Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/phy/in112525.c | 6 +++--- 1

[PATCH] net: fsl-mc: fix logically dead code

2021-07-21 Thread Cosmin-Florin Aluchenesei
The result of dpio_close() is actually taken into account. Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/fsl-mc/mc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 972db4cf3a..914ec001ec 100644

[PATCH] drivers: net: aquantia: fix unsigned compared against 0

2021-07-21 Thread Cosmin-Florin Aluchenesei
Change the reg variable to not be unsigned so that we not get into an unsigned compared against 0. Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/phy/aquantia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy