]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: rtsx: Optimize card detect flow
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 29 Jan 2013 07:21:37 +0000 (15:21 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:58 +0000 (00:22 +0100)
commit504decc0a063e6a09a1e5b203ca68bc21dfffde9
tree9434da1da1e015bbb1d7f556dc180fd79759442b
parenteebbe2541684da99bf0b179d5182dc8025f5f5b6
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>
drivers/mfd/rtsx_pcr.c