pinctrl: imx7: move soc info to data section
Subsystems (4)
PATCH 1/3 pinctrl: imx7: move soc info to data section
The soc info without initialization value should be put into data section. The driver could be used before relocation, with it in BSS section could cause issue, since BSS section is not initializated and it might overwrite other areas that used by others, such as dtb.
--- drivers/pinctrl/nxp/pinctrl-imx7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/nxp/pinctrl-imx7.c +1 -1
@@ -9,7 +9,7 @@#include "pinctrl-imx.h" -static struct imx_pinctrl_soc_info imx7_pinctrl_soc_info; +static struct imx_pinctrl_soc_info imx7_pinctrl_soc_info __attribute__((section(".data")));static struct imx_pinctrl_soc_info imx7_lpsr_pinctrl_soc_info = { .flags =ZERO_OFFSET_VALID ,
Signature · 1 line
2.16.4
PATCH 2/3 pinctrl: imx8m: move soc info to data section
The soc info without initialization value should be put into data section. The driver could be used before relocation, with it in BSS section could cause issue, since BSS section is not initializated and it might overwrite other areas that used by others, such as dtb.
--- drivers/pinctrl/nxp/pinctrl-imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/nxp/pinctrl-imx8m.c +1 -1
@@ -8,7 +8,7 @@#include "pinctrl-imx.h" -static struct imx_pinctrl_soc_info imx8mq_pinctrl_soc_info; +static struct imx_pinctrl_soc_info imx8mq_pinctrl_soc_info __attribute__((section(".data")));static int imx8mq_pinctrl_probe (struct udevice *dev) {
Signature · 1 line
2.16.4
PATCH 3/3 pinctrl: imx5: move soc info to data section
In reply to Peng FanThe soc info without initialization value should be put into data section. The driver could be used before relocation, with it in BSS section could cause issue, since BSS section is not initializated and it might overwrite other areas that used by others, such as dtb.
--- drivers/pinctrl/nxp/pinctrl-imx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/nxp/pinctrl-imx5.c +1 -1
@@ -10,7 +10,7 @@#include "pinctrl-imx.h" -static struct imx_pinctrl_soc_info imx5_pinctrl_soc_info; +static struct imx_pinctrl_soc_info imx5_pinctrl_soc_info __attribute__((section(".data")));static int imx5_pinctrl_probe (struct udevice *dev) {
Signature · 1 line
2.16.4