2019-03-06 15:56:36

by Bich HEMON

[permalink] [raw]
Subject: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

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(-)

diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c
index 13e1213..4284fc9 100644
--- a/drivers/i2c/busses/i2c-stm32f7.c
+++ b/drivers/i2c/busses/i2c-stm32f7.c
@@ -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 -
--
1.9.1


2019-03-07 08:32:26

by Pierre-Yves MORDRET

[permalink] [raw]
Subject: Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

Hi

Reviewed-by: Pierre-Yves MORDRET <[email protected]>

Thanks

On 3/6/19 4:12 PM, Bich HEMON wrote:
> 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(-)
>
> diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c
> index 13e1213..4284fc9 100644
> --- a/drivers/i2c/busses/i2c-stm32f7.c
> +++ b/drivers/i2c/busses/i2c-stm32f7.c
> @@ -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 -
>

2019-03-09 10:14:37

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

On Wed, Mar 06, 2019 at 03:12:16PM +0000, Bich HEMON wrote:
> 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!


Attachments:
(No filename) (325.00 B)
signature.asc (849.00 B)
Download all attachments

2019-03-09 10:51:44

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

On Sat, Mar 09, 2019 at 11:13:40AM +0100, Wolfram Sang wrote:
> On Wed, Mar 06, 2019 at 03:12:16PM +0000, Bich HEMON wrote:
> > 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?


Attachments:
(No filename) (443.00 B)
signature.asc (849.00 B)
Download all attachments

2019-03-11 09:36:39

by Bich HEMON

[permalink] [raw]
Subject: Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

On 3/9/19 11:50 AM, Wolfram Sang wrote:
> On Sat, Mar 09, 2019 at 11:13:40AM +0100, Wolfram Sang wrote:
>> On Wed, Mar 06, 2019 at 03:12:16PM +0000, Bich HEMON wrote:
>>> 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?
>
Hi Wolfram,

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

Will you change the commit message or do you want me to resend the patch?

BR,

Bich

2019-03-12 13:01:37

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula


> > Do you have a Fixes tag for this?
> >
>
> Fixes: aeb068c57214858b638d5ee627bb4a831f98771e ("i2c: i2c-stm32f7: add
> driver")
>
> Will you change the commit message or do you want me to resend the patch?

I'll fix it. Thanks for this info!


Attachments:
(No filename) (260.00 B)
signature.asc (849.00 B)
Download all attachments