Gmane
Favicon
From: Sascha Sommer <saschasommer <at> freenet.de>
Subject: [PATCH] MMC/SD host driver for Ricoh Bay1Controllers
Newsgroups: gmane.linux.kernel
Date: 2008-04-27 14:17:53 GMT (1 year, 9 weeks, 4 days, 21 hours and 40 minutes ago)
Hi,

attached you can find a driver for MMC/SD card controllers that have been 
integrated into some Notebooks with Ricoh Co Ltd RL5c476 II Cardbus bridges. 
This includes the Samsung P35 notebook, the Dell X300 and some notebooks from 
the Asus M6N series.
Whenever a MMC or SD card is insterted in the cardslot of one of these 
notebooks the cardbus bridge will announce a 
virtual Ricoh Bay1Controller PCMCIA card.

Since I submitted the first version of this driver to lkml last year many 
changes have been made. The driver can now read and write to MMC and SD cards 
and the reading speed for SD cards should be close to the windows driver now.
Many thanks to all the people that tested the driver and helped me to fix some 
of the remaining bugs. I think it is now time to find out what needs to be 
fixed before the driver can go into kernel.

While the driver is working fine for me there are still some not so nice parts 
in it. 
- the registers are on the cardbus bridge that is already claimed by yenta 
socket therefore the driver has to use pci_get_device
- there is a lot of register polling because the reader does not support irqs
- some mmc commands require extra hacks. One of those commands is the
  SD_APP_SEND_SCR command (a user reported that it is required for his SDHC
  card). Like the read and write commands this command
  requires a block read to read the scr but this does not seem to work.
  I do not have any documentation for this device and the windows driver does
  not support such commands so I cannot find the
  needed info in its logfiles.
...

I'm thankfull for any kind of feedback.

Signed-off-by: Sascha Sommer <saschasommer <at> freenet.de>

Regards

Sascha

P.S. Please CC me as I'm not subscribed.

Attachment (sdricoh_cs.patch): text/x-diff, 18 KiB