I am upgrading the linux kernel on an older product using the at91sam9g45 MCU. The previous code did not use device tree and provided the MMC driver platform data from a board_xxx.c file. The new driver gets the platform data from DT, which seems to be working fine.
The mmc driver (drivers/mmc/host/atmel-mci.c) has changed and now the probe repeatedly fails with -EPROBE_DEFER. With the previous code, it would use PIO (no DMA, no PDC). I changed the kernel configuration to add CONFIG_AT_HDMAC and now the probe succeeds (using DMA), but the mmc device still does not work.
My root file system is on the SD Card in the mmc slot, so the kernel cannot mount the root FS.
Any ideas on how to fix this?
Discussion around AT91RM9200 and SAM9 Series Products.
2 posts • Page 1 of 1
I was able to get this working. I removed the CONFIG_AT_HDMAC configuration to match my original product and patched the atmel-mci.c driver to not try DMA when CONFIG_AT_HDMAC is not configured (like the old code did). A secondary issue I had was that I had added cd-inverted = <1>; to my dts file thinking the card detect was inverted, and changed it to cd-inverted = <0>; when I realized it was not. However, I discovered that since this is a boolean property, putting cd-inverted = anything results in true, which was wrong for my board. I remove the line completely and the card detect works.
Who is online
Users browsing this forum: Google [Bot] and 7 guests