]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st-nci: Disable irq when powering the device up
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:48 +0000 (22:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 27 Oct 2015 02:55:14 +0000 (03:55 +0100)
commit8fdc2e8fe0c0230c5827c72077f00ef554e615f4
tree217ba10637576cb6657cf7a79cae3f9dc291263c
parenteb0c1526b7cdc6ece6c6801361cf577796af082f
NFC: st-nci: Disable irq when powering the device up

Upon some conditions (timing, CLF errors, platform errors...), the
irq might be already active when powering the device.

Add irq_active variable as a guard to avoid kernel warning message

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/i2c.c
drivers/nfc/st-nci/spi.c