i2c: i2c-stm32f7: Fix SDADEL minimum formula
Subsystems (3)
PATCH 1/1 i2c: i2c-stm32f7: Fix SDADEL minimum formula
From: Nicolas Le Bayon <[email protected]>
It conforms with Reference Manual I2C timing section.
--- drivers/i2c/busses/i2c-stm32f7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-stm32f7.c +1 -1
@@ -432,7 +432,7 @@ static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev, STM32F7_I2C_ANALOG_FILTER_DELAY_MAX : 0); dnf_delay = setup->dnf * i2cclk; - sdadel_min = setup->fall_time - i2c_specs[setup->speed].hddat_min - + sdadel_min = i2c_specs[setup->speed].hddat_min + setup->fall_time - af_delay_min - (setup->dnf +3 ) * i2cclk; sdadel_max = i2c_specs[setup->speed].vddat_max - setup->rise_time -
Signature · 1 line
1.9.1
Hi
Thanks
Quoted 24 lines · Bich HEMON
From: Nicolas Le Bayon <[email protected]>
It conforms with Reference Manual I2C timing section.
Signed-off-by Nicolas Le Bayon <[email protected]>Signed-off-by Bich Hemon <[email protected]>--- drivers/i2c/busses/i2c-stm32f7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/busses/i2c-stm32f7.c +1
-1@@ -432,7 +432,7 @@ static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev, STM32F7_I2C_ANALOG_FILTER_DELAY_MAX : 0); dnf_delay = setup->dnf * i2cclk; - sdadel_min = setup->fall_time - i2c_specs[setup->speed].hddat_min - + sdadel_min = i2c_specs[setup->speed].hddat_min + setup->fall_time - af_delay_min - (setup->dnf +3 ) * i2cclk; sdadel_max = i2c_specs[setup->speed].vddat_max - setup->rise_time -
Wolfram Sang
AppliedQuoted 6 lines · Bich HEMON
From: Nicolas Le Bayon <[email protected]>
It conforms with Reference Manual I2C timing section.
Signed-off-by Nicolas Le Bayon <[email protected]>Signed-off-by Bich Hemon <[email protected]>
Applied to for-current, thanks!
Quoted 9 lines · Wolfram Sang
Quoted 6 lines · Bich HEMON
From: Nicolas Le Bayon <[email protected]>
It conforms with Reference Manual I2C timing section.
Signed-off-by Nicolas Le Bayon <[email protected]>Signed-off-by Bich Hemon <[email protected]>Applied to for-current, thanks!
Do you have a Fixes tag for this?
Quoted 4 lines · Wolfram Sang
Quoted 3 lines · Wolfram Sang
Quoted 2 lines · Bich HEMON
From: Nicolas Le Bayon <[email protected]>
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
It conforms with Reference Manual I2C timing section.
Signed-off-by Nicolas Le Bayon <[email protected]>Signed-off-by Bich Hemon <[email protected]>Applied to for-current, thanks!
Do you have a Fixes tag for this?
Hi Wolfram,
driver")
Will you change the commit message or do you want me to resend the patch?
BR,
Bich
Quoted 8 lines
Quoted 3 lines
Do you have a Fixes tag for this?
Fixes aeb068c57214858b638d5ee627bb4a831f98771e ("i2c: i2c-stm32f7: adddriver")
Will you change the commit message or do you want me to resend the patch?
I'll fix it. Thanks for this info!