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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2021 09:35:18 +0000 (10:35 +0100)
commit1019015a5dca64317325588164fb4cb9813e849d
treece3c2fa860ec9389c0ff94c7db10edc3cb915142
parent546d92a43c94e1f166e151f9d84142d91c8bc6e2
i2c: stm32f7: fix configuration of the digital filter

[ Upstream commit 3d6a3d3a2a7a3a60a824e7c04e95fd50dec57812 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-stm32f7.c