OSDN Git Service

i2c: stm32f7: fix configuration of the digital filter
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 5 Feb 2021 08:51:40 +0000 (09:51 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 12 Feb 2021 10:36:40 +0000 (11:36 +0100)
commit3d6a3d3a2a7a3a60a824e7c04e95fd50dec57812
treeb98d17c378e8ba7c57c27e7c22cca394070e6ec4
parent92bf22614b21a2706f4993b278017e437f7785b3
i2c: stm32f7: fix configuration of the digital filter

The digital filter related computation are present in the driver
however the programming of the filter within the IP is missing.
The maximum value for the DNF is wrong and should be 15 instead of 16.

Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver")

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-stm32f7.c