Opened 7 years ago

Last modified 4 years ago

#13908 reopened bug

Integrated memory card reader not recognized

Reported by: Giova84 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk/MMC Version: R1/Development
Keywords: Cc:
Blocked By: #3702 Blocking:
Platform: All

Description

Haiku hrev51706 gcc2h - on Asus Z8100G.

This laptop is provided with a multi format card reader: on Linux Mint 12 this card reader is recognized and working; on Haiku, if I insert a memory card and I look to DriveSetup app, nothing is recognized (and so to the "Mount" menu on the Desktop).

I attach syslogs which I take 2 days ago and output of listdev (Haiku) and lspci (Linux) https://dev.haiku-os.org/attachment/ticket/13904/syslog https://dev.haiku-os.org/attachment/ticket/13904/previous_syslog

Attachments (2)

linux lspci (1.2 KB ) - added by Giova84 7 years ago.
haiku listdev (1.9 KB ) - added by Giova84 7 years ago.

Download all attachments as: .zip

Change History (16)

by Giova84, 7 years ago

Attachment: linux lspci added

comment:1 by Giova84, 7 years ago

patch: 01

by Giova84, 7 years ago

Attachment: haiku listdev added

comment:2 by Giova84, 7 years ago

patch: 10

comment:3 by Giova84, 7 years ago

Just curiosity: in ticket:13907 the WLAN adapter is not recognized because is listed as USB (on this laptop is internal); why this card reader (still internal), instead, is not recognized? I have a more modern Desktop PC where the integrated card reader is recognized. This laptop is also provided with a PCMCIA card slot; maybe could I have more luck by inserting a PCMCIA card reader? Is supported by Haiku?

comment:4 by diver, 7 years ago

Looks like there is a pcmcia bus manager http://cgit.haiku-os.org/haiku/log/src/add-ons/kernel/drivers/bus/pcmcia, however I don't think it works yet? Probably a dupe of #3702.

comment:5 by Giova84, 7 years ago

To be clear: this integrated card reader is not installed in the PCMCIA slot: is present on the motherboard itself, and by listdevice is recognized:

device Mass storage controller (IDE interface) [1|1|80]
  vendor 1039: Silicon Integrated Systems [SiS]
  device 5513: 5513 IDE Controller

in reply to:  4 comment:6 by Giova84, 7 years ago

Replying to diver:

Looks like there is a pcmcia bus manager http://cgit.haiku-os.org/haiku/log/src/add-ons/kernel/drivers/bus/pcmcia

However: by doing a query for pcmcia on Haiku, I see that there are only headers files (no driver in binary format), presents in /boot/system/develop/headers/os/drivers/pcmcia folder, so I assume that not everything is integrated on Haiku. But, I repeat (I fear that I hasn't been good to expres myself :-) this card reader is not installed in the pcmcia slot.

comment:7 by miqlas, 7 years ago

Giova84: lets play with the words: It is actually recognized as listdevice lists it. It just have no driver to exploit the hardware capability.

Yep, it isn't PCMCIA attched, but directly to the PCI bus. Some of them works with Haiku (AFAIK) But the problem is: there is no generic PCI attached card reader, all the manufacturer implements an own home-made standard (AFAIK), so it isn't easy to provide a working driver for all of them.

I think one get better chanches with USB attached card reader (internal or external). They are at least standardized (AFAIK).

comment:8 by pulkomandy, 6 years ago

Hi,

What you list is an IDE controller (for hard disks), not a card reader. It does not seem to be on the USB bus either, or at least our USB driver does not see it there.

What is the device name on Linux? /dev/sdx or /dev/mmcblkx ?

comment:9 by cocobean, 6 years ago

Hi Giova84,

You actually have this as your MMC/SD reader:

Ricoh Co Ltd RL5c476 II (rev ac):
	device Bridge (CardBus bridge) [6|7|0]
	  vendor 1180: Ricoh Co Ltd
	  device 0476: RL5c476 II

comment:10 by pulkomandy, 6 years ago

Indeed, it seems this device is a multifunction device handling PCMCIA ports, SD card reader and smartcard reader. I don't know if we can get the SDHCI driver to work with it, as maybe they have shifted registers around to make it work. And, I can't find a spec for it explaining how they have separated the various functions.

comment:11 by waddlesplash, 4 years ago

Component: Drivers/DiskDrivers/Disk/MMC
Milestone: UnscheduledR1/beta3
Resolution: fixed
Status: newclosed

Ricoh SDHCI controllers should now work after hrev54840.

comment:12 by pulkomandy, 4 years ago

Resolution: fixed
Status: closedreopened

As I mentionned in my previous comment, this specific device isn't handled by the driver yet.

comment:13 by pulkomandy, 4 years ago

Blocked By: 3702 added

There is a driver in Linux: https://elixir.bootlin.com/linux/v5.11-rc2/source/drivers/mmc/host/sdricoh_cs.c

It is in fact an internal PCMCIA device. The driver itself is not very complicated, but we don't have a PCMCIA stack at the moment.

comment:14 by pulkomandy, 4 years ago

Milestone: R1/beta3Unscheduled
Note: See TracTickets for help on using tickets.