Hello Pierre and David,

With the help you supplied to me back in Apr/May I was able to get my
spi driver for the ep93xx cleaned up enough to get the mmc_spi driver to
work correctly. Thanks for the help.

Now I have run into another problem. But I don't know if it's a mdev
issue or something in the mmc core.

When I first boot my system, with the mmc card installed, the card is
detected and the device nodes are created correctly. At that point I can
mount the card and everything works great.

>From boot messages:
...
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 SR016 14400KiB
 mmcblk0: p1
...

# ls /dev/mmc* -la
brw-rw----    1 root     disk     179,   0 Oct 30 09:10 /dev/mmcblk0
brw-rw----    1 root     disk     179,   1 Oct 30 09:10 /dev/mmcblk0p1

Then, if I eject the card I get:

mmc0: SPI card removed

# ls /dev/mmc* -la

And then re-insert it:

mmc0: new SD card on SPI
mmcblk1: mmc0:0000 SR016 14400KiB
mmcblk1: p1

# ls /dev/mmc* -la
crw-rw----    1 root     disk     179,   8 Oct 30 09:30 /dev/mmcblk1
crw-rw----    1 root     disk     179,   9 Oct 30 09:30 /dev/mmcblk1p1

Why does the re-inserted card show up as mmcblk1* instead of mmcblk0*?
Also, why would it change from a block device to a char device and the
minor number has changed?

Thanks for any help you can provide.
Hartley

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to