]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Disable interrupts before requesting PCI device interrupt
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Mon, 31 Aug 2015 14:31:29 +0000 (17:31 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Oct 2015 12:07:38 +0000 (14:07 +0200)
commite821810a9d7ab22686db508cab83db1a22be73c7
treead2fad95fd7cb1edec2b1ea8b6f9c64db57ce155
parent89789f3e7078203dbc54b4664db6ce7a48fcdf50
i2c: designware: Disable interrupts before requesting PCI device interrupt

Device must not generate interrupts before registering the interrupt
handler so move i2c_dw_disable_int() before requesting it.

There are no known issues with this. The code has been here since commit
06b81204725d ("i2c-designware: Add support for Designware core behind PCI
devices.").

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-pcidrv.c