Skip to contentSkip to conversation

Minor PXA fixes

PATCH New Russell King - ARM Linux 1 participant 6 messages Nov 4, 2011 – Nov 5, 2011 1 message not in the archive

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

cover Minor PXA fixes

Eric,

Here's a couple of fixes I have queued in my tree for some PXA build problems I found after kernel summit. Do you want to pick them up, or shall I send them to Linus in the next couple of days along with the other fixes I have queued?

Thanks.

#1 lore raw

PATCH 1/2 ARM: PXA: fix lubbock PCMCIA driver build error

Fix:

ERROR: "pxa2xx_configure_sockets" [drivers/pcmcia/pxa2xx_lubbock_cs.ko] undefined!

by exporting the required function.

---
 drivers/pcmcia/pxa2xx_base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/pcmcia/pxa2xx_base.c +1 -0
index 2c54054..a87e272 100644
@@ -231,6 +231,7 @@ void pxa2xx_configure_sockets(struct device *dev)
 
 	__raw_writel(mecr, MECR);
 }
+EXPORT_SYMBOL(pxa2xx_configure_sockets);
 
 static const char *skt_names[] = {
 	"PCMCIA socket 0",
Signature · 1 line
1.7.4.4
#2 lore raw

PATCH 2/2 ARM: PXA: eseries: fix eseries_register_clks section mismatch warning

In reply to Russell King - ARM Linux

Fix:

WARNING: vmlinux.o(.text+0x1a820): Section mismatch in reference from the function eseries_register_clks() to the function .init.text:clkdev_add_table() The function eseries_register_clks() references
the function __init clkdev_add_table().
This is often because eseries_register_clks lacks a __init
annotation or the annotation of clkdev_add_table is wrong.

by adding the __init annotation to eseries_register_clks() - this function is only called from other __init-marked functions. While we're here, mark it static as it's only called from within eseries.c.

---
 arch/arm/mach-pxa/eseries.c |    2 +-
 arch/arm/mach-pxa/eseries.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/mach-pxa/eseries.c +1 -1
index e4a1f4d..55f8e3f 100644
@@ -144,7 +144,7 @@ static struct clk_lookup eseries_clkregs[] = {
 	INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"),
 };
 
-void eseries_register_clks(void)
+static void __init eseries_register_clks(void)
 {
 	clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs));
 }
arch/arm/mach-pxa/eseries.h +0 -1
index be92196..b96949d 100644
@@ -11,5 +11,4 @@ extern int eseries_tmio_resume(struct platform_device *dev);
 extern void eseries_get_tmio_gpios(void);
 extern struct resource eseries_tmio_resources[];
 extern struct platform_device e300_tc6387xb_device;
-extern void eseries_register_clks(void);
 
Signature · 1 line
1.7.4.4

A message that is not in the archive (sent off-list or not yet received): CAMPhdO-t0mJb2U+1eutKA4YRwCXsr2smLNKDw_a7T+TJXLbmvQ@mail.gmail.com

#4 lore raw

cover Minor PXA fixes

Quoted 10 lines · Eric Miao
Quoted 7 lines · Russell King - ARM Linux

Eric,

Here's a couple of fixes I have queued in my tree for some PXA build problems I found after kernel summit. Do you want to pick them up, or shall I send them to Linus in the next couple of days along with the other fixes I have queued?

Quoted 5 lines

Russell,

Please go ahead and send to Linus directly, really appreciated.

The patches are good, feel free to put my Acked-by.

Thanks. Two more follow. First is a build error with the latest kernel, the second is one which is caused by touching mach/system.h (as the commit log describes why including mach/system.h is wrong.)

#5 lore raw

PATCH 1/2 ARM: PXA: fix gpio-pxa.h build errors

A mismerge in 43872fa (Merge branch 'depends/rmk/gpio' into next/fixes) causes these build errors:

In file included from arch/arm/mach-pxa/include/mach/gpio.h:30,
from arch/arm/include/asm/gpio.h:6,
from include/linux/gpio.h:31,
from arch/arm/mach-pxa/generic.c:20:
arch/arm/mach-pxa/include/mach/gpio-pxa.h: In function ?__gpio_is_occupied?:
arch/arm/mach-pxa/include/mach/gpio-pxa.h:121: error: invalid operands to binary >> (have ?void *? and ?unsigned int?) arch/arm/mach-pxa/include/mach/gpio-pxa.h:122: error: invalid operands to binary & (have ?void *? and ?int?) arch/arm/mach-pxa/include/mach/gpio-pxa.h:129: error: invalid operands to binary & (have ?void *? and ?int?)

So fix them.

---
 arch/arm/mach-pxa/include/mach/gpio-pxa.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-pxa/include/mach/gpio-pxa.h +1 -1
index 576868f..41b4c93 100644
@@ -25,7 +25,7 @@
 #define GPIO_REGS_VIRT	io_p2v(0x40E00000)
 
 #define BANK_OFF(n)	(((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
-#define GPIO_REG(x)	(GPIO_REGS_VIRT + (x))
+#define GPIO_REG(x)	(*(volatile u32 *)(GPIO_REGS_VIRT + (x)))
 
 /* GPIO Pin Level Registers */
 #define GPLR0		GPIO_REG(BANK_OFF(0) + 0x00)
Signature · 1 line
1.7.4.4
#6 lore raw

PATCH 2/2 ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver

In reply to Russell King - ARM Linux

The includes in the pxa2xx_cm_x2xx PCMCIA driver are rather random; the driver doesn't require anything from these headers except the cpu_is_xxx() macros which come from another include.

The concern is that it's getting these definitions via mach/system.h, which is supposed to only be included by arch/arm/kernel/process.c. As this header is scheduled for cleanup (and elimination) keeping the status quo will cause build errors. So lets fix properly and independent of the future work.

---
 drivers/pcmcia/pxa2xx_cm_x2xx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/pcmcia/pxa2xx_cm_x2xx.c +1 -2
index 4f09506..6e7dcfd 100644
@@ -12,9 +12,8 @@
 
 #include <linux/module.h>
 
-#include <asm/system.h>
 #include <asm/mach-types.h>
-#include <mach/system.h>
+#include <mach/hardware.h>
 
 int cmx255_pcmcia_init(void);
 int cmx270_pcmcia_init(void);
Signature · 1 line
1.7.4.4