Skip to contentSkip to conversation

pcmcia/pxa2xx_sharpsl: retain ops structure on collie

PATCH New Dmitry Eremin-Solenikov 3 participants 5 messages Aug 7, 2011 – Aug 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie

The pxa2xx_sharpsl driver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie place sharpsl_pcmcia_ops in .data section rather than in __initdata.

Cc stable at kernel.org
drivers/pcmcia/pxa2xx_sharpsl.c +4 -0
index 69ae2fd..f2405dc 100644
@@ -219,7 +219,11 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
 	sharpsl_pcmcia_init_reset(skt);
 }
 
+#ifdef CONFIG_SA1100_COLLIE
+static struct pcmcia_low_level sharpsl_pcmcia_ops = {
+#else
 static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = {
+#endif
 	.owner                  = THIS_MODULE,
 	.hw_init                = sharpsl_pcmcia_hw_init,
 	.hw_shutdown            = sharpsl_pcmcia_hw_shutdown,
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie

Quoted 7 lines · Dmitry Eremin-Solenikov

The pxa2xx_sharpsl driver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie place sharpsl_pcmcia_ops in .data section rather than in __initdata.

Cc stable at kernel.org

Any comments on this patch?

Quoted 20 lines
drivers/pcmcia/pxa2xx_sharpsl.c +4 -1
index 69ae2fd..f2405dc 100644
@@ -219,7 +219,11 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
 ? ? ? ?sharpsl_pcmcia_init_reset(skt);
 ?}
 
+#ifdef CONFIG_SA1100_COLLIE
+static struct pcmcia_low_level sharpsl_pcmcia_ops = {
+#else
 ?static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = {
+#endif
 ? ? ? ?.owner ? ? ? ? ? ? ? ? ?= THIS_MODULE,
 ? ? ? ?.hw_init ? ? ? ? ? ? ? ?= sharpsl_pcmcia_hw_init,
 ? ? ? ?.hw_shutdown ? ? ? ? ? ?= sharpsl_pcmcia_hw_shutdown,
--

1.7.2.5

Signature · 2 lines
With best wishes
Dmitry
#2 lore raw

PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie

Quoted 20 lines · Dmitry Eremin-Solenikov
Quoted 7 lines · Dmitry Eremin-Solenikov

The pxa2xx_sharpsl driver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie place sharpsl_pcmcia_ops in .data section rather than in __initdata.

Cc stable at kernel.org

Any comments on this patch?

Quoted 8 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0 -0
index 69ae2fd..f2405dc 100644
@@ -219,7 +219,11 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
 ? ? ? ?sharpsl_pcmcia_init_reset(skt);
 ?}
 
Quoted 5 lines

drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) · line 226

Quoted 5 lines
drivers/pcmcia/pxa2xx_sharpsl.c +4 -0
+#ifdef CONFIG_SA1100_COLLIE
+static struct pcmcia_low_level sharpsl_pcmcia_ops = {
+#else
 ?static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = {
+#endif

Looks OK, and maybe we can put it even simpler by just removing __initdata.

Quoted 14 lines
Quoted 7 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0 -1
 ? ? ? ?.owner ? ? ? ? ? ? ? ? ?= THIS_MODULE,
 ? ? ? ?.hw_init ? ? ? ? ? ? ? ?= sharpsl_pcmcia_hw_init,
 ? ? ? ?.hw_shutdown ? ? ? ? ? ?= sharpsl_pcmcia_hw_shutdown,
--

1.7.2.5

--
With best wishes
Dmitry

#3 lore raw

PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie

Quoted 22 lines · Eric Miao
Quoted 20 lines · Dmitry Eremin-Solenikov
Quoted 7 lines · Dmitry Eremin-Solenikov

The pxa2xx_sharpsl driver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie place sharpsl_pcmcia_ops in .data section rather than in __initdata.

Cc stable at kernel.org

Any comments on this patch?

Quoted 8 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0 -0
index 69ae2fd..f2405dc 100644
@@ -219,7 +219,11 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
 ? ? ? ?sharpsl_pcmcia_init_reset(skt);
 ?}
 
Quoted 7 lines
Quoted 5 lines

drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) · line 226

Quoted 5 lines
drivers/pcmcia/pxa2xx_sharpsl.c +4 -0
+#ifdef CONFIG_SA1100_COLLIE
+static struct pcmcia_low_level sharpsl_pcmcia_ops = {
+#else
 ?static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = {
+#endif

Looks OK, and maybe we can put it even simpler by just removing __initdata.

I'd say so; ifdef to have initdata there is just too ugly. But I don't think it is stable material...

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw

PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie

Hello,

Quoted 34 lines · Pavel Machek
Quoted 24 lines · Eric Miao
Quoted 22 lines · Dmitry Eremin-Solenikov
Quoted 7 lines · Dmitry Eremin-Solenikov

The pxa2xx_sharpsl driver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie place sharpsl_pcmcia_ops in .data section rather than in __initdata.

Cc stable at kernel.org

Any comments on this patch?

Quoted 10 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0 -0
index 69ae2fd..f2405dc 100644
@@ -219,7 +219,11 @@ static void sharpsl_pcmcia_socket_suspend(struct
 soc_pcmcia_socket *skt)
       sharpsl_pcmcia_init_reset(skt);
 }
 
Quoted 8 lines
Quoted 5 lines

drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) · line 226

Quoted 5 lines
drivers/pcmcia/pxa2xx_sharpsl.c +4 -0
+#ifdef CONFIG_SA1100_COLLIE
+static struct pcmcia_low_level sharpsl_pcmcia_ops = {
+#else
 static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = {
+#endif

Looks OK, and maybe we can put it even simpler by just removing __initdata.

Quoted 2 lines

I'd say so; ifdef to have initdata there is just too ugly. But I don't think it is stable material...

Maybe... And memory lost on PXA will be minimal.
It's stable material in the sense that lack of this patch causes kernel panics.

Signature · 2 lines
With best wishes
Dmitry