net: dsa: realtek: rtl8365mb: add missing new line to log print
Subsystems (6)
PATCH 1/5 net: dsa: realtek: rtl8365mb: add missing new line to log print
Line should normally not show up, but when it does, have it look nice.
--- drivers/net/realtek-dsa/rtl8365mb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/realtek-dsa/rtl8365mb.c +1 -1
@@ -1216,7 +1216,7 @@ static int rtl8365mb_detect(struct realtek_priv *priv)if (!mb->chip_info) {dev_err (priv->dev, -"unrecognized switch (id=0x%04x, ver=0x%04x)" , chip_id, +"unrecognized switch (id=0x%04x, ver=0x%04x)\n" , chip_id, chip_ver);return -ENODEV ; }
Signature · 1 line
2.30.2
PATCH 2/5 net: dsa: realtek: mdio: fix out-of-bounds memory write
The SMI Realtek driver takes care of chip_data_sz as expected, but the MDIO driver doesn't, leading to memory corruption. Fix this.
This issue is also present in the original Linux driver and will be fixed there as well.
--- drivers/net/realtek-dsa/realtek-mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/realtek-dsa/realtek-mdio.c +1 -1
@@ -119,7 +119,7 @@ static int realtek_mdio_probe(struct phy_device *mdiodev)if (!var)return -EINVAL ; - priv =kzalloc (sizeof (*priv),GFP_KERNEL ); + priv =kzalloc (sizeof (*priv) + var->chip_data_sz,GFP_KERNEL );if (!priv)return -ENOMEM ;
Signature · 1 line
2.30.2
PATCH 3/5 crypto: caam - pbl-init: fix null pointer check
In reply to Ahmad Fatoumstruct jr_data_st::desc is an array, so g_jrdata->desc will never be NULL. Fix the check to instead compare g_jrdata against NULL.
--- drivers/crypto/caam/pbl-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/caam/pbl-init.c +1 -1
@@ -331,7 +331,7 @@ static int do_instantiation(struct caam_job_ring __iomem *jr,u32 ent_delay;u32 status; -if (!g_jrdata->desc) { +if (!g_jrdata) {pr_err ("descriptor allocation failed\n" );return -ENODEV ; }
Signature · 1 line
2.30.2
PATCH 4/5 ARM: i.MX8M: silence warning accessing bootrom log in zero page
In reply to Ahmad FatoumWe don't compile with --param=min-pagesize=0, so GCC will complain about dereference of (void *)0x9e0, even if done through a volatile pointer.
We know this to be okay, because either we run in PBL before MMU is set up or we run in barebox proper and zero_page_access() will be temporarily disabling trapping by the null page. Thus hide the access from the compiler to silence the warning.
--- arch/arm/mach-imx/romapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/mach-imx/romapi.c +4 -1
@@ -57,10 +57,13 @@ int imx8mn_bootrom_load_image(void)const u32 *imx8m_get_bootrom_log (void ) {if (current_el () ==3 ) { +ulong *rom_log_addr_offset = (void *)0x9e0 ;ulong rom_log_addr; +OPTIMIZER_HIDE_VAR (rom_log_addr_offset); +zero_page_access (); - rom_log_addr =readl (IOMEM (0x9e0 )); + rom_log_addr = *rom_log_addr_offset;zero_page_faulting (); if (rom_log_addr < MX8M_OCRAM_BASE_ADDR ||
Signature · 1 line
2.30.2
PATCH 5/5 ARM: i.MX8M: fix outdated comment about imx-atf
In reply to Ahmad Fatoumbarebox documentation itself suggests using upstream TF-A, so drop this outdated comment.
--- arch/arm/mach-imx/atf.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
arch/arm/mach-imx/atf.c +1 -8
@@ -20,20 +20,13 @@* This function: * * 1. Copies built-in BL31 blob to an address i.MX8M's BL31 -* expects to be placed +* expects to be placed (TF-A v2.8+ is position-independent) * * 2. Sets up temporary stack pointer for EL2, which is execution * level that BL31 will drop us off at after it completes its * initialization routine * * 3. Transfers control to BL31 -* -* NOTE: This function expects NXP's implementation of ATF that can be -* found at: -* https://source.codeaurora.org/external/imx/imx-atf -* -* any other implementation may or may not work -* */ static __noreturn void imx8m_atf_start_bl31 (const void *fw,size_t fw_size,void *atf_dest)
Signature · 1 line
2.30.2
Sascha Hauer
AppliedQuoted 6 lines · Ahmad Fatoum
Line should normally not show up, but when it does, have it look nice.
Signed-off-by Ahmad Fatoum <[email protected]>--- drivers/net/realtek-dsa/rtl8365mb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 19 lines
drivers/net/realtek-dsa/rtl8365mb.c +1
-1@@ -1216,7 +1216,7 @@ static int rtl8365mb_detect(struct realtek_priv *priv)if (!mb->chip_info) {dev_err (priv->dev, -"unrecognized switch (id=0x%04x, ver=0x%04x)" , chip_id, +"unrecognized switch (id=0x%04x, ver=0x%04x)\n" , chip_id, chip_ver);return -ENODEV ; }Signature · 1 line
2.30.2
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |