]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sfi: table irq 0xFF means 'no interrupt'
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 26 Aug 2011 11:20:59 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Nov 2011 22:31:20 +0000 (14:31 -0800)
commit03ff90c0f9c9ea4ab0840ac21a393da859784d4d
treee849164b2cfa2464a583f68e94e0f3891232fe2a
parent987ccebc15b3f1256dbcdfbb81ad542d1e2ad6a8
sfi: table irq 0xFF means 'no interrupt'

commit a94cc4e6c0a26a7c8f79a432ab2c89534aa674d5 upstream.

According to the SFI specification irq number 0xFF means device has no
interrupt or interrupt attached via GPIO.

Currently, we don't handle this special case and set irq field in
*_board_info structs to 255.  It leads to confusion in some drivers.
Accelerometer driver tries to register interrupt 255, fails and prints
"Cannot get IRQ" to dmesg.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/platform/mrst/mrst.c