Skip to contentSkip to conversation

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

PATCH Uri Shkolnik 2 participants 2 messages Apr 21, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 70 lines · Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_14] Siano: assemble all components to one kernel module
To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 11:50 PM
On Mon, 20 Apr 2009 11:16:32 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_14] Siano: assemble

all components to one kernel module

Quoted 9 lines
Quoted 9 lines

To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 9:03 PM
On Sun, 5 Apr 2009 04:42:11 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 1 line · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1238756860 -10800
# Node ID

616e696ce6f0c0d76a1aaea8b36e0345112c5ab6

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

# Parent

f65a29f0f9a66f82a91525ae0085a15f00ac91c2

Quoted 1 line

[PATCH] [0904_14] Siano: assemble all

components to

Quoted 5 lines
Quoted 5 lines

one kernel module

Quoted 4 lines

From: Uri Shkolnik <[email protected]>

Previously, the support for Siano-based

devices

Quoted 1 line
Quoted 1 line
Quoted 1 line

has been combined from several kernel

modules.

Quoted 1 line
Quoted 1 line
Quoted 1 line

This patch assembles all into single kernel

module.

Quoted 8 lines
Quoted 6 lines

Why? It seems better to keep it more modular.

Cheers,
Mauro

The driver remains as modular as it was before

(regarding sources files).

Quoted 1 line

Why to load smsusb.ko and than load smsdvb.ko and than

load usbcore.ko? (and ir and endian... and...)

Quoted 2 lines

The driver handles any device (or devices) with Siano

silicon on it, simple as that.

Quoted 2 lines

The new build method (Makefile and Kconfig) after the

patches (yet to be fully submitted), build the driver to match the system it targets. (If USB exist than it builds the USB interface driver (otherwise it doesn't) and links it to the single module, same for SDIO, and any other interface driver, same for any clients and any other component).

Before seeing the other patches, it is hard for me to manifest, but, IMO, it is
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 8 lines

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

"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."

Since the module is using dynamic registration, I don't find it a problem.
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).

Regards,

Uri

#1 lore raw
Quoted 5 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."

Since the module is using dynamic registration, I don't find it a problem.
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.