Skip to contentSkip to conversation

[0904_14] Siano: assemble all components to one kernel module

PATCH Trent Piepho 2 participants 2 messages Apr 21, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 30 lines · Uri Shkolnik
Quoted 21 lines · Trent Piepho

From: Trent Piepho <[email protected]>
Subject: Re: [PATCH] [0904_14] Siano: assemble all components to one kernel module
To: "Uri Shkolnik" <[email protected]>
Cc: "Mauro Carvalho Chehab" <[email protected]>, "LinuxML" <[email protected]>
Date: Tuesday, April 21, 2009, 6:17 AM

Quoted 2 lines · Uri Shkolnik

"better to have the BUS configurable, e. g. just

because you have USB interface, it doesn't mean that you want siano for USB, instead of using SDIO."

Quoted 2 lines

Since the module is using dynamic registration, I

don't find it a problem.

Quoted 1 line

When the system has both USB and SDIO buses, both USB

and SDIO interface driver will be compiled and linked to the module. When a Siano based device (or multiple Siano devices) will be connected, they will be register internally in the core and activated. Any combination is allow (multiple SDIO, multiple USB and any mix).

Quoted 7 lines

This is not the way linux drivers normally work.� Usually there are
multiple modules so that only the ones that need to be loaded are loaded.
It sounds like you are designing this to be custom compiled for each
system, but that's not usually they way things work.

Quoted 6 lines

I think I didn't express myself clearly.

Lets say that someone build a kernel X.
This kernel has (from all buses) only USB. The Siano module will build with USB interface driver at this system.

If the system includes SDIO and OMAP SPI/SPP, the module build will discard the USB interface driver, but the SDIO and the OMAP SPI will be built.

Can you name another driver that works this way? It is considered better to build a new module for a different interface. That way one can decide at run time if the interface is needed or not and only load the module if needed. If everything is built into one module then one must decide at compile time what interfaces to support. But it is often the case that kernels are compiled on different systems than run them.

#2 lore raw
Quoted 31 lines · On Tue, 21 Apr 2009 10:54:40 -0700 (PDT) Trent Piepho <[email protected]>…
Quoted 30 lines · Uri Shkolnik
Quoted 28 lines · Trent Piepho

From: Trent Piepho <[email protected]>
Subject: Re: [PATCH] [0904_14] Siano: assemble all components to one kernel module
To: "Uri Shkolnik" <[email protected]>
Cc: "Mauro Carvalho Chehab" <[email protected]>, "LinuxML" <[email protected]>
Date: Tuesday, April 21, 2009, 6:17 AM

Quoted 2 lines · Uri Shkolnik

"better to have the BUS configurable, e. g. just

because you have USB interface, it doesn't mean that you want siano for USB, instead of using SDIO."

Quoted 2 lines

Since the module is using dynamic registration, I

don't find it a problem.

Quoted 1 line

When the system has both USB and SDIO buses, both USB

and SDIO interface driver will be compiled and linked to the module. When a Siano based device (or multiple Siano devices) will be connected, they will be register internally in the core and activated. Any combination is allow (multiple SDIO, multiple USB and any mix).

This is not the way linux drivers normally work. Usually there are
multiple modules so that only the ones that need to be loaded are loaded.
It sounds like you are designing this to be custom compiled for each
system, but that's not usually they way things work.

Quoted 6 lines
Quoted 6 lines

I think I didn't express myself clearly.

Lets say that someone build a kernel X.
This kernel has (from all buses) only USB. The Siano module will build with USB interface driver at this system.

If the system includes SDIO and OMAP SPI/SPP, the module build will discard the USB interface driver, but the SDIO and the OMAP SPI will be built.

The patch you've provided just merge everything. If you're proposing a newer model, you should send a patchset with the complete Kbuild refactor. For now, it is better to postpone this patch until we merge non-kbuild changes.

Quoted 6 lines

Can you name another driver that works this way? It is considered better to build a new module for a different interface. That way one can decide at run time if the interface is needed or not and only load the module if needed. If everything is built into one module then one must decide at compile time what interfaces to support. But it is often the case that kernels are compiled on different systems than run them.

This model also sounds different to me from what I've seen so far.

Cheers,
Mauro