[haiku-development] Re: Discovering the SDHC device on PCI bus

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 12 May 2018 20:24:12 +1200

On Sat, 12 May 2018, 5:21 PM B Krishnan Iyer <krishnaniyer97@xxxxxxxxx>
wrote:

Hello everyone,

I am working on SDHCI MMC Driver. We were trying to find SDHC device
on PCI bus but at a condition[1], it's returning the value and hence
closing the program. It probably means the device is not on the PCI
bus. But "listdev" shows that there's a PCI device[2](emulated)

I have posted my project updates[3] which also has the instructions to
load the driver module. I am open to any idea or maybe I have missed
something. Feel free to reply to this thread.

Thanks,

[1]:
https://github.com/krish-iyer/haiku/blob/sdhci_mmc_driver/src/add-ons/kernel/busses/sdhci/sdhci_pci.cpp#L99
[2]: https://imgur.com/a/xDllebT
[3]: https://www.haiku-os.org/blog/krish_iyer


The first thing I'd do is split into separate if statements and print out
the error code and which statement fails. Hard to know without verbose
debug output.



Other related posts: