]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: mediatek: Send i2c master code at more than 1MHz
authorQii Wang <qii.wang@mediatek.com>
Thu, 17 Sep 2020 11:55:42 +0000 (19:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:25 +0000 (17:36 +0200)
commitb05a20baaa2f2f24d5d10d6684bee7ad7124cc76
tree255c8f0893f7592da105020a40c9eb3612ebf374
parent337e96e14843d06e69c53858e86d4f97f4cb7274
i2c: mediatek: Send i2c master code at more than 1MHz

[ Upstream commit b44658e755b5a733e9df04449facbc738df09170 ]

The master code needs to being sent when the speed is more than
I2C_MAX_FAST_MODE_PLUS_FREQ, not I2C_MAX_FAST_MODE_FREQ in the
latest I2C-bus specification and user manual.

Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c