commit | 504decc0a063e6a09a1e5b203ca68bc21dfffde9 | [log] [tgz] |
---|---|---|
author | Wei WANG <wei_wang@realsil.com.cn> | Tue Jan 29 15:21:37 2013 +0800 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Thu Feb 14 00:22:58 2013 +0100 |
tree | 9434da1da1e015bbb1d7f556dc180fd79759442b | |
parent | eebbe2541684da99bf0b179d5182dc8025f5f5b6 [diff] |
mfd: rtsx: Optimize card detect flow 1. Schedule card detect work at the end of the ISR 2. Callback function ops->cd_deglitch may delay for a period of time. It is not proper to call this callback when local irq disabled. 3. Card detect flow can't be executed in parallel with other card reader operations, so it's better to be protected by mutex. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>