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)
commitb9f84adcb834ec2b1fd0ec91676c4b165daf51e6
treead2fad95fd7cb1edec2b1ea8b6f9c64db57ce155
parentc335631a68db4b32b24cb59814c485c45f0f4506
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
fe20ff5c7e9c ("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