]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Remove interrupt clearing from i2c_dw_pci_probe()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Mon, 31 Aug 2015 14:31:28 +0000 (17:31 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Oct 2015 12:07:19 +0000 (14:07 +0200)
commit89789f3e7078203dbc54b4664db6ce7a48fcdf50
treea8142646844cfdedcb03d7074d5f11bb7a4811d3
parentd4f44626406fb465c6bcd2d3dae6e039e218f517
i2c: designware: Remove interrupt clearing from i2c_dw_pci_probe()

There is no need to clear interrupts in i2c_dw_pci_probe() since only place
where interrupts are unmasked is i2c_dw_xfer_init() and there interrupts
are always cleared after commit 2c6d85f2d0c7 ("i2c: designware: always
clear interrupts before enabling them").

This allows to cleanup the code and replace i2c_dw_clear_int() in
i2c_dw_xfer_init() by direct register read as there are no other callers.

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