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 10:02:28 +0000 (11:02 +0100)
commitf6b5e671c6a7ee18fb170584e424d9d5a803e1b4
treec6be7eea6d48febb8f28b3690d8284249c0ab15f
parent0c0ddf0dd69200285652a26a6978a8e4d889b488
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