I was wrong it isn't detected as SD/MMC it doesn't get detected at all. There is a separate device for SD/MMC present both on coreboot and stock.
Same chip tho Ricoh Co Ltd R5C832. @hell__ on the IRC mentioned it's a function of the Ricoh interface seen here as slash: https://del.dog/raw/lspci_nntv I've tried adding: "device pci 00.3 on end # FireWire Controller" after: https://github.com/coreboot/coreboot/blob/master/src/mainboard/lenovo/t420/devicetree.cb#L89 And rebuild and flashed but still no luck. I am no programmer. Just hit and run technique. Help would be more than welcomed here. On 08.04.2020 20:02, Peter Stuge wrote: > Hi, > > this is a fun one. > > Alesandar Metodiev wrote: >> AreYouLoco has already posted the output of `sudo lspci -vvxxx -s >> 0d:00.3` (when he was still running with the vendor firmware). >> Here it is. https://del.dog/raw/firewire_lspci > > Comparing that with https://del.dog/raw/lspci_nntv shows that the > chip presents itself differently on the very lowes level. > > Factory BIOS: > Ricoh Co Ltd PCIe SDXC/MMC Host Controller [1180:e823] > > coreboot: > Ricoh Co Ltd MMC/SD Host Controller [what:ids?] > > If we look at the beginning of the config space dump in the coreboot > case, we see: > > 00: 80 11 22 e8 > > These are little-endian vendor and device IDs, swap around to: [1180:e822] > > The same chip seems to present itself differently depending on the firmware. > > I've seen this before, and in fact I think it was the same kind of chip. > > That time there was no coreboot involved, the ID seemed to change > depending on whether the laptop was rebooted or actually powered off. > > I guess that this device behaves differently depending on how and when it > is initialized. I've also seen Atheros PCI devices come up as 0000:0000, > which hints to a race condition where the PCI device just isn't ready > when coreboot comes to speak to it. > > Maybe try sprinkling random delays in the code. Or increase debug level. > Or enable spkmodem. Something to make coreboot run slower. Then maybe that > hardware works correctly. > > > //Peter > _______________________________________________ > coreboot mailing list -- [email protected] > To unsubscribe send an email to [email protected] > -- AreYouLoco? GPG 2717 7338 4742 E034 F65F 7C83 C757 3088 E8B7 DEDA _______________________________________________ coreboot mailing list -- [email protected] To unsubscribe send an email to [email protected]

