All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] pinctrl: imx7: move soc info to data section
@ 2020-05-30  8:44 Peng Fan
  2020-05-30  8:44 ` [PATCH 2/3] pinctrl: imx8m: " Peng Fan
  2020-05-30  8:44 ` [PATCH 3/3] pinctrl: imx5: " Peng Fan
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Fan @ 2020-05-30  8:44 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/pinctrl/nxp/pinctrl-imx7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c
index 769d428dda..66b58ba472 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx7.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx7.c
@@ -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,
-- 
2.16.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/3] pinctrl: imx8m: move soc info to data section
  2020-05-30  8:44 [PATCH 1/3] pinctrl: imx7: move soc info to data section Peng Fan
@ 2020-05-30  8:44 ` Peng Fan
  2020-05-30  8:44 ` [PATCH 3/3] pinctrl: imx5: " Peng Fan
  1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2020-05-30  8:44 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/pinctrl/nxp/pinctrl-imx8m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/nxp/pinctrl-imx8m.c b/drivers/pinctrl/nxp/pinctrl-imx8m.c
index 5b7cbb69ae..0626fde58f 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx8m.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx8m.c
@@ -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)
 {
-- 
2.16.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 3/3] pinctrl: imx5: move soc info to data section
  2020-05-30  8:44 [PATCH 1/3] pinctrl: imx7: move soc info to data section Peng Fan
  2020-05-30  8:44 ` [PATCH 2/3] pinctrl: imx8m: " Peng Fan
@ 2020-05-30  8:44 ` Peng Fan
  1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2020-05-30  8:44 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/pinctrl/nxp/pinctrl-imx5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c
index 5d17380919..9c3423bef3 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx5.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx5.c
@@ -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)
 {
-- 
2.16.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-30  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30  8:44 [PATCH 1/3] pinctrl: imx7: move soc info to data section Peng Fan
2020-05-30  8:44 ` [PATCH 2/3] pinctrl: imx8m: " Peng Fan
2020-05-30  8:44 ` [PATCH 3/3] pinctrl: imx5: " Peng Fan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.