Hello,
We have a DM8127 based product where we are using IPNC_RDK 3.5 which comes with Linux kernel 2.6.37_DM8127_IPNC_3.50.00. This product support the SD card interface to store misc data (files).
Problem Description: We have seen an instance, where the SD card was physically removed from the SD card slot but the kernel was not able to detect this and no udev event is generated. We don't see any MMC related activities in "dmesg" output.
Reproducibility: The insertion/removal event is detected most of the time but we have seen this problem twice till now so it is not so easy to reproduce.
SD card details: 32 GB Transcend, Class 10.
Setup / Design description: There is SD card detect GPIO connected to detect insert/remove events. The MMC driver is configured to detect events based on this GPIO and proper PIN_MUX is done:
static struct omap2_hsmmc_info mmc[] = {
{
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA,
.gpio_cd = GPIO_TO_PIN(1, 6), /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL, /* Dedicated pins for WP */
.ocr_mask = MMC_VDD_33_34,
},
{} /* Terminator */
};
Questions:
- Has anyone experienced such behavior?
- Is there any known issues with the MMC driver?
- Is there a possibility that the SD card detect interrupt can be missed by the driver which can lead to this behavior?
Any help will be highly appreciated. Please let me know if need any further details on the setup/test scenario.
--
Regards,
Krunal