hi, every one

I browse the MMC/SD driver of kernel 2.6.10 and one question confused me
very much.
How the driver detect the MMC card state,I mean whether card insert or
pull out?
I think there should be a gpio interrupt to detect the card insert &
pull out action. then the ISR will notice
MMC driver to do right process.
In driver /mmc/davinci_mmc.c 
there is only one interrupt that is IRQ_MMCINT.This interrupt is not
used for card detect. It is an  internal interrupt tfor the data
transfer. 

while in another file driver/mmc/omap.c
there are two interrupt , one is mmc_omap_switch_irq which used for
detect the cover open or close.
and another one is mmc_omap_irq which used for data transfer.


Could anybody tell me the reason?
Thanks !
 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to