How does the linux kernel de-glich gpio inputs from switches?
This is a loaded question as I'm seeing lengthy bursts of glitches on the SD card detect line on insert and remove events. The line is a direct connection to the AVR32 with a 47k pullup. (based on the stk1000 circuit diagram)
I notice the kernel does not have the gpio glitch filter enabled for the detect line, but turning it on did not help. Not really surprising as the glitches are much longer than 1 master clock cycle.
The attached picture demonstrates a typical removal event. Full scale is 500us.
I followed the code as far as the interrupt routine - which has no glitch rejection as it simply samples the line level. I'm hoping there's more to it than that, but I could not see where else any de-glitching would be occurring.