]> asedeno.scripts.mit.edu Git - linux.git/commit
i3c: fix i2c and i3c scl rate by bus mode
authorVitor Soares <Vitor.Soares@synopsys.com>
Wed, 19 Jun 2019 18:36:31 +0000 (20:36 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 20 Jun 2019 07:23:22 +0000 (09:23 +0200)
commitecc8fb54bd443bf69996d9d5ddb8d90a50f14936
tree35e109b9faa4a3c3dae05fe3d53aa2a4ca1c7767
parent5e343fbb7176a082dec8632f72999aba82f0e720
i3c: fix i2c and i3c scl rate by bus mode

Currently the I3C framework limits SCL frequency to FM speed when
dealing with a mixed slow bus, even if all I2C devices are FM+ capable.

The core was also not accounting for I3C speed limitations when
operating in mixed slow mode and was erroneously using FM+ speed as the
max I2C speed when operating in mixed fast mode.

Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure")
Signed-off-by: Vitor Soares <vitor.soares@synopsys.com>
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: <stable@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/i3c/master.c