Skip to contentSkip to conversation

ppc: Marvell mv64x60 drivers for ppc platforms fix

PATCH Yuri Tikhonov 2 participants 4 messages Jun 25, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

Hi Dale, Kumar,

Thank you for your comments. All they make sense. Here is an update.

--

arch/powerpc/sysdev/Makefile +2 -2
index c3ce0bd..37c37a9 100644
@@ -16,8 +16,6 @@ obj-$(CONFIG_FSL_SOC)         += fsl_soc.o
 obj-$(CONFIG_FSL_PCIE)         += fsl_pcie.o
 obj-$(CONFIG_TSI108_BRIDGE)    += tsi108_pci.o tsi108_dev.o
 obj-$(CONFIG_QUICC_ENGINE)     += qe_lib/
-mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
-obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o mv64x60_dev.o
 
 # contains only the suspend handler for time
 obj-$(CONFIG_PM)               += timer.o
@@ -26,6 +24,8 @@ ifeq ($(CONFIG_PPC_MERGE),y)
 obj-$(CONFIG_PPC_I8259)                += i8259.o
 obj-$(CONFIG_PPC_83xx)         += ipic.o
 obj-$(CONFIG_4xx)              += uic.o
+mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
+obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o mv64x60_dev.o
 endif
 
 # Temporary hack until we have migrated to asm-powerpc
#1 lore raw
Quoted 3 lines
(quoted diff) +2 -0
+mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
+obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o 

mv64x60_dev.o

How about

mv64x60-pci-$(CONFIG_PCI)      += mv64x60_pci.o
mv64x60-objs                   := $(mv64x60-pci-y) mv64x60_pic.o mv64x60_dev.o
obj-$(CONFIG_MV64X60)          += mv64x60.o

so you can build it is a module, too (although other things might be preventing that right now)?

Segher

#2 lore raw

Hi Segher,

The mv64x60 driver has no support for compiling as a module. Built-in only.
And I think there is no much sense in making the driver which provide you with such a base stuff as a boot console, ethernet, etc. to be a LKM.

Regards, Yuri.

Quoted 16 lines · you
Quoted 3 lines
(quoted diff) +2 -0
+mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
+obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o

mv64x60_dev.o

How about

mv64x60-pci-$(CONFIG_PCI) += mv64x60_pci.o
mv64x60-objs := $(mv64x60-pci-y) mv64x60_pic.o
mv64x60_dev.o
obj-$(CONFIG_MV64X60) += mv64x60.o

so you can build it is a module, too (although other things might be preventing that right now)?

Segher

#3 lore raw
Quoted 2 lines

The mv64x60 driver has no support for compiling as a module. Built-in
only.

Yeah I expected that that is the case right now. Could be fixed later though.

Quoted 2 lines

And I think there is no much sense in making the driver which provide you with such a base stuff as a boot console, ethernet, etc. to be a LKM.

That's orthogonal to expressing it as one "module" in Kbuild, which is really just about grouping highly interdependent stuff together.

But anyway, your patch looks good, I was just suggesting to clean it up some more. You don't have to do it now if you don't want to, I'm sure it will happen later :-)

[Oh, and don't top-post.]

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
(quoted diff) +2 -0
+mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
+obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o

mv64x60_dev.o

How about

Quoted 7 lines
Quoted 7 lines

mv64x60-pci-$(CONFIG_PCI) += mv64x60_pci.o
mv64x60-objs := $(mv64x60-pci-y) mv64x60_pic.o
mv64x60_dev.o
obj-$(CONFIG_MV64X60) += mv64x60.o

so you can build it is a module, too (although other things might be preventing that right now)?

Segher