Skip to contentSkip to conversation

dma: amba-pl08x: Export pl08x_filter_id

PATCH In review Roland Stigge 3 participants 5 messages Aug 16, 2012

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

PATCH 1/1 dma: amba-pl08x: Export pl08x_filter_id

This patch fixes the following when compiling a driver module that uses amba-pl08x:

ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_slc.ko] undefined!
ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_mlc.ko] undefined!

(drivers/mtd/nand/lpc32xx_* are still in l2-mtd.git)

Done as in:

drivers/dma/coh901318.c
drivers/dma/sirf-dma.c

drivers/dma/amba-pl08x.c +1 -0
index 6fbeebb..8c2e9b6 100644
@@ -1608,6 +1608,7 @@ bool pl08x_filter_id(struct dma_chan *chan, void *chan_id)
 
 	return false;
 }
+EXPORT_SYMBOL(pl08x_filter_id);
 
 /*
  * Just check that the device is there and active
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Roland Stigge

This patch fixes the following when compiling a driver module that uses amba-pl08x:

ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_slc.ko] undefined!
ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_mlc.ko] undefined!

Quoted 8 lines

(drivers/mtd/nand/lpc32xx_* are still in l2-mtd.git)

Done as in:

drivers/dma/coh901318.c
drivers/dma/sirf-dma.c

#2 lore raw
In reply to Roland Stigge
Quoted 7 lines · Roland Stigge

This patch fixes the following when compiling a driver module that uses amba-pl08x:

ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_slc.ko] undefined!
ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_mlc.ko] undefined!

(drivers/mtd/nand/lpc32xx_* are still in l2-mtd.git)

It is currently intended that this be passed from platform code into drivers via platform data, so that drivers can decide which DMA engine they wish to make use of.

See how all the AMBA drivers work in this regard (because they need to support more than just a single DMA engine implementation.)

#3 lore raw
Quoted 7 lines · Russell King - ARM Linux
Quoted 6 lines · Roland Stigge

This patch fixes the following when compiling a driver module that uses amba-pl08x:

ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_slc.ko] undefined!
ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_mlc.ko] undefined!

Quoted 8 lines
Quoted 1 line

(drivers/mtd/nand/lpc32xx_* are still in l2-mtd.git)

It is currently intended that this be passed from platform code into drivers via platform data, so that drivers can decide which DMA engine they wish to make use of.

See how all the AMBA drivers work in this regard (because they need to support more than just a single DMA engine implementation.)

Ah, you're right, I forgot about that. I'll take back my Ack then.

Arnd

#4 lore raw
In reply to Russell King - ARM Linux
Quoted 7 lines · Russell King - ARM Linux
Quoted 6 lines · Roland Stigge

This patch fixes the following when compiling a driver module that uses amba-pl08x:

ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_slc.ko] undefined!
ERROR: "pl08x_filter_id" [drivers/mtd/nand/lpc32xx_mlc.ko] undefined!

Quoted 8 lines
Quoted 1 line

(drivers/mtd/nand/lpc32xx_* are still in l2-mtd.git)

It is currently intended that this be passed from platform code into drivers via platform data, so that drivers can decide which DMA engine they wish to make use of.

See how all the AMBA drivers work in this regard (because they need to support more than just a single DMA engine implementation.)

Thanks for the note!

I'll post respective changes to the MTD SLC and MLC drivers of LPC32xx (for the MTD subsystem) and the adjustment I'll do in mach-lpc32xx (my lpc32xx tree for arm-soc).