Skip to contentSkip to conversation

SDIO Drivers?

DISCUSSION Ram 4 participants 5 messages Apr 4, 2006 – Apr 9, 2006

lore
Share & tools
lore

Ram

author
#0 lore raw

Hi,
i want to write an SDIO driver. There is not much information of
what an SDIO driver is
supposed to do or any sample sdio drivers.

I have a few questions regarding that:

1) What is an SDIO Driver?.

2) Is SDIO a protocol/standard to which all devices confirm?.

3) Is it a generic driver ?. (Same for a set of devices) or
different for each device?
Suppose i want to run an SDIO WLAN Card?. will the
manufacturer support it or
an will a Generic Driver "drive" it?

4) What is a SD Driver?

5) What are the differences between SD Driver and SDIO Driver?.

6) Are there any sample/Open Source SDIO drivers available in Linux
Kernel or else where?.If, not when can one expect/is anyone working on it currently?.

Please CC your responses to vshrirama-at-gmail.com

Thanks and Regards,
sriram

#1 lore raw
Quoted 9 lines · Ram

Hi,
i want to write an SDIO driver. There is not much information of
what an SDIO driver is
supposed to do or any sample sdio drivers.

I have a few questions regarding that:

1) What is an SDIO Driver?.

They don't exist in the kernel right now, that's why you haven't found any examples.

To support SDIO, the MMC layer would need to be extended to handle the initialisation of SDIO cards (they're a bit different from SD storage and MMC). After that, a driver model needs to be constructed. It might be possible to build upon the current MMC driver model, but one would need to make sure that cards that are both storage and SDIO are handled.

Quoted 2 lines

2) Is SDIO a protocol/standard to which all devices confirm?.

It's a subset of the SD standard suite. Note that it only specifies how to get access to registers in the card (like for instance PCI). To actually use the card you also need a specification for how to use the registers.

Quoted 6 lines

3) Is it a generic driver ?. (Same for a set of devices) or
different for each device?
Suppose i want to run an SDIO WLAN Card?. will the
manufacturer support it or
an will a Generic Driver "drive" it?

Depends on if there is a generic interface for SDIO WLAN cards. SD is a very closed world so we know very little about the protocols.

Quoted 2 lines

4) What is a SD Driver?

Depends on context. It might refer to the driver for SD storage cards. Or it might refer to a driver for the SD controller (that interfaces to the card(s)).

Quoted 2 lines

5) What are the differences between SD Driver and SDIO Driver?.

If we're talking about SD storage vs SDIO, then the drivers use different parts of the SD protocol. They share the same bus interface though (which is implemented as the MMC layer in Linux).

Quoted 5 lines

6) Are there any sample/Open Source SDIO drivers available in Linux
Kernel or else where?.If, not when can one expect/is anyone working on it currently?.

There are a lot of people interested, but I haven't seen anyone working on it yet.

Rgds
Pierre

#2 lore raw
Quoted 11 lines · Pierre Ossman
Quoted 9 lines · Ram

Hi,
i want to write an SDIO driver. There is not much information of
what an SDIO driver is
supposed to do or any sample sdio drivers.

I have a few questions regarding that:

1) What is an SDIO Driver?.

Quoted 8 lines

They don't exist in the kernel right now, that's why you haven't found any examples.

To support SDIO, the MMC layer would need to be extended to handle the initialisation of SDIO cards (they're a bit different from SD storage and MMC). After that, a driver model needs to be constructed. It might be possible to build upon the current MMC driver model, but one would need to make sure that cards that are both storage and SDIO are handled.

I think we would be forced to re-think the existing model - SDIO cards seem to be able to support simultaneously both block device and IO. Therefore, it would appear that we need the ability to register two drivers against the same device.

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
#3 lore raw
Quoted 7 lines · Russell King

I think we would be forced to re-think the existing model - SDIO cards seem to be able to support simultaneously both block device and IO. Therefore, it would appear that we need the ability to register two drivers against the same device.

On the other hand, they both need to select cards so there is some overlap in how they grab the bus.

Also, MMC has some kind of register support as well. But I can't say that I've ever seen anything but MMC memory cards.

Rgds
Pierre

#4 lore raw
In reply to Pierre Ossman

Hi Pierre,

Quoted 5 lines
Quoted 5 lines

3) Is it a generic driver ?. (Same for a set of devices) or
different for each device?
Suppose i want to run an SDIO WLAN Card?. will the
manufacturer support it or
an will a Generic Driver "drive" it?

for WiFi this is unlikely, but for Bluetooth there exists an open standard on how to access Bluetooth cards. So the easiest way might be to use a Bluetooth SDIO device to build the driver model.

Quoted 6 lines
Quoted 3 lines

6) Are there any sample/Open Source SDIO drivers available in Linux
Kernel or else where?.If, not when can one expect/is anyone working on it currently?.

There are a lot of people interested, but I haven't seen anyone working on it yet.

This includes me and I finally have a SDHCI capable laptop and one of the Bluetooth SDIO cards. However my time is so limited at the moment, that I haven't looked at it.

Regards

Marcel