]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Drop hard coded FIFO depth assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 May 2020 12:50:43 +0000 (15:50 +0300)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 May 2020 14:50:43 +0000 (16:50 +0200)
commit8f65800002c96fd7e646ab535bddd910cbb97fd3
treeef36a39ee37d87086f701b0564d7da20916f05ac
parent7244838c7beecb1c50e6294e26dec03aa998bfe9
i2c: designware: Drop hard coded FIFO depth assignment

It's not clear why the commit 06b81204725d
  ("i2c-designware: Add support for Designware core behind PCI devices.")
followed by commit 99cbd3bddfed
  ("i2c-designware: add support for Intel Lynxpoint")
chose to hard code FIFO depth size. The FIFO depth on all hardware,
I have tested on, can be nicely detected automatically.

Thus, we may safely drop hard coded FIFO sizes from the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-pcidrv.c