]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i801: Fix Failed to allocate irq -2147483648 error
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Nov 2017 11:28:17 +0000 (12:28 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 27 Nov 2017 18:11:27 +0000 (19:11 +0100)
commit59d545cdb0a82d819094b38f8d0c8a66887de4fc
tree0adec0b63d87192ea27dd696d61e9a4b5d9559e0
parentf9e9d4ede33f20ad238fc11db0232eaede684940
i2c: i801: Fix Failed to allocate irq -2147483648 error

On Apollo Lake devices the BIOS does not set up IRQ routing for the i801
SMBUS controller IRQ, so we end up with dev->irq set to IRQ_NOTCONNECTED.

Detect this and do not try to use the irq in this case silencing:
i801_smbus 0000:00:1f.1: Failed to allocate irq -2147483648: -107

Cc: stable@vger.kernel.org
BugLink: https://communities.intel.com/thread/114759
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c