public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] i2c: deblock i2c bus also if accessed before realocation
@ 2012-06-28 14:30 Holger Brunck
  2012-07-10  9:25 ` Holger Brunck
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Brunck @ 2012-06-28 14:30 UTC (permalink / raw)
  To: u-boot

If we switch to a different i2c bus in changing the mux config for the
i2c mux, we have to be sure to deblock the bus also before realocation.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

---
 common/cmd_i2c.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
index 2cdc4ed..795814d 100644
--- a/common/cmd_i2c.c
+++ b/common/cmd_i2c.c
@@ -1445,6 +1445,7 @@ int i2c_mux_ident_muxstring_f (uchar *buf)
 		oldpos = pos;
 
 	}
+	i2c_init_board();
 
 	return 0;
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] i2c: deblock i2c bus also if accessed before realocation
  2012-06-28 14:30 [U-Boot] [PATCH] i2c: deblock i2c bus also if accessed before realocation Holger Brunck
@ 2012-07-10  9:25 ` Holger Brunck
  2012-07-10  9:36   ` Heiko Schocher
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Brunck @ 2012-07-10  9:25 UTC (permalink / raw)
  To: u-boot

Hi Heiko,

On 06/28/2012 04:30 PM, Holger Brunck wrote:
> If we switch to a different i2c bus in changing the mux config for the
> i2c mux, we have to be sure to deblock the bus also before realocation.
> 
> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
> cc: Heiko Schocher <hs@denx.de>
> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
> 
> ---
>  common/cmd_i2c.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
> index 2cdc4ed..795814d 100644
> --- a/common/cmd_i2c.c
> +++ b/common/cmd_i2c.c
> @@ -1445,6 +1445,7 @@ int i2c_mux_ident_muxstring_f (uchar *buf)
>  		oldpos = pos;
>  
>  	}
> +	i2c_init_board();
>  
>  	return 0;
>  }


do you consider this one as a bugfix for 2012.07 or do you think it should be
included in the next merge window?

Regards
Holger

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] i2c: deblock i2c bus also if accessed before realocation
  2012-07-10  9:25 ` Holger Brunck
@ 2012-07-10  9:36   ` Heiko Schocher
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2012-07-10  9:36 UTC (permalink / raw)
  To: u-boot

Hello Holger,

On 10.07.2012 11:25, Holger Brunck wrote:
> Hi Heiko,
>
> On 06/28/2012 04:30 PM, Holger Brunck wrote:
>> If we switch to a different i2c bus in changing the mux config for the
>> i2c mux, we have to be sure to deblock the bus also before realocation.
>>
>> Signed-off-by: Holger Brunck<holger.brunck@keymile.com>
>> cc: Heiko Schocher<hs@denx.de>
>> cc: Valentin Longchamp<valentin.longchamp@keymile.com>
>>
>> ---
>>   common/cmd_i2c.c |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
>> index 2cdc4ed..795814d 100644
>> --- a/common/cmd_i2c.c
>> +++ b/common/cmd_i2c.c
>> @@ -1445,6 +1445,7 @@ int i2c_mux_ident_muxstring_f (uchar *buf)
>>   		oldpos = pos;
>>
>>   	}
>> +	i2c_init_board();
>>
>>   	return 0;
>>   }
>
>
> do you consider this one as a bugfix for 2012.07 or do you think it should be
> included in the next merge window?

I queued it for the next merge window ...

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-10  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-28 14:30 [U-Boot] [PATCH] i2c: deblock i2c bus also if accessed before realocation Holger Brunck
2012-07-10  9:25 ` Holger Brunck
2012-07-10  9:36   ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox