pcmcia/pxa2xx_sharpsl: retain ops structure on collie
Subsystems (2)
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.
drivers/pcmcia/pxa2xx_sharpsl.c +4 -0
@@ -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
PATCH 1/1 pcmcia/pxa2xx_sharpsl: retain ops structure on collie
Quoted 7 lines · Dmitry Eremin-Solenikov
The
pxa2xx_sharpsldriver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie placesharpsl_pcmcia_opsin .data section rather than in__initdata.Signed-off-by Dmitry Eremin-Solenikov <[email protected]>Cc stable at kernel.org
Any comments on this patch?
Quoted 20 lines
drivers/pcmcia/pxa2xx_sharpsl.c +4
-1@@ -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
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_sharpsldriver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie placesharpsl_pcmcia_opsin .data section rather than in__initdata.Signed-off-by Dmitry Eremin-Solenikov <[email protected]>Cc stable at kernel.orgAny comments on this patch?
Quoted 8 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0
-0@@ -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
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_sharpsldriver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie placesharpsl_pcmcia_opsin .data section rather than in__initdata.Signed-off-by Dmitry Eremin-Solenikov <[email protected]>Cc stable at kernel.orgAny comments on this patch?
Quoted 8 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0
-0@@ -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 = { +#endifLooks 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
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_sharpsldriver part is also used on collie, which (as a StrongARM board) has different expectations for PCMCIA drivers. So, on collie placesharpsl_pcmcia_opsin .data section rather than in__initdata.Signed-off-by Dmitry Eremin-Solenikov <[email protected]>Cc stable at kernel.orgAny comments on this patch?
Quoted 10 lines
drivers/pcmcia/pxa2xx_sharpsl.c +0
-0@@ -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 = { +#endifLooks 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