i2c: designware: fix wrong Tx/Rx FIFO for ACPI
authorTin Huynh <tnhuynh@apm.com>
Wed, 14 Dec 2016 09:23:58 +0000 (16:23 +0700)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 17 Dec 2016 18:38:03 +0000 (19:38 +0100)
commit8e598769c55dd6c442a1c6cbd21e7abda2a52215
tree4699efee8294941eef1aea4b592fb74478fb3db9
parent1635c5d04ea9343f0e3c74709c29995a23801ecd
i2c: designware: fix wrong Tx/Rx FIFO for ACPI

ACPI always sets Tx/Rx FIFO to 32. This configuration will
cause problem if the IP core supports a FIFO size of less than 32.
The driver should read the FIFO size from the IP and select the smaller
one of the two.

Signed-off-by: Tin Huynh <tnhuynh@apm.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c