public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c
@ 2009-11-12 13:58 Pratap Chandu
  2009-12-02 22:35 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Pratap Chandu @ 2009-11-12 13:58 UTC (permalink / raw)
  To: u-boot

There is some dead code enclosed by #if 0 .... #endif in the file common/cmd_i2c.c
This patch removes the dead code.

Signed-off-by: Pratap Chandu <pratap.rrke@gmail.com>
---
 common/cmd_i2c.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
index 8f0fc9e..8d6feda 100644
--- a/common/cmd_i2c.c
+++ b/common/cmd_i2c.c
@@ -326,14 +326,6 @@ int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 #if !defined(CONFIG_SYS_I2C_FRAM)
 		udelay(11000);
 #endif
-
-#if 0
-		for (timeout = 0; timeout < 10; timeout++) {
-			udelay(2000);
-			if (i2c_probe(chip) == 0)
-				break;
-		}
-#endif
 	}
 
 	return (0);
-- 
1.5.6.5

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

* [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c
  2009-11-12 13:58 [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c Pratap Chandu
@ 2009-12-02 22:35 ` Wolfgang Denk
  2009-12-03  6:48   ` Heiko Schocher
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-12-02 22:35 UTC (permalink / raw)
  To: u-boot

Dear Pratap Chandu,

In message <1258034305-31770-1-git-send-email-pratap.rrke@gmail.com> you wrote:
> There is some dead code enclosed by #if 0 .... #endif in the file common/cmd_i2c.c
> This patch removes the dead code.
> 
> Signed-off-by: Pratap Chandu <pratap.rrke@gmail.com>
> ---
>  common/cmd_i2c.c |    8 --------
>  1 files changed, 0 insertions(+), 8 deletions(-)

Applied, thanks.

Heiko, I hope this is OK with you.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
COMPONENT EQUIVALENCY NOTICE:  The  Subatomic  Particles  (Electrons,
Protons,  etc.) Comprising This Product Are Exactly the Same in Every
Measurable Respect as Those Used in the Products of Other  Manufactu-
rers,  and  No Claim to the Contrary May Legitimately Be Expressed or
Implied.

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

* [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c
  2009-12-02 22:35 ` Wolfgang Denk
@ 2009-12-03  6:48   ` Heiko Schocher
  2009-12-04 21:45     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Heiko Schocher @ 2009-12-03  6:48 UTC (permalink / raw)
  To: u-boot

Hello Wolfgang,

Wolfgang Denk schrieb:
> Dear Pratap Chandu,
> 
> In message <1258034305-31770-1-git-send-email-pratap.rrke@gmail.com> you wrote:
>> There is some dead code enclosed by #if 0 .... #endif in the file common/cmd_i2c.c
>> This patch removes the dead code.
>>
>> Signed-off-by: Pratap Chandu <pratap.rrke@gmail.com>
>> ---
>>  common/cmd_i2c.c |    8 --------
>>  1 files changed, 0 insertions(+), 8 deletions(-)
> 
> Applied, thanks.
> 
> Heiko, I hope this is OK with you.

Hmm.. not really, my last comment on this was:

http://lists.denx.de/pipermail/u-boot/2009-November/064245.html

I don;t know, if this was ever used, but we should make this
as a CONFIG option, like CONFIG_SYS_I2C_CMD_MW_WITH_PROBE.

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] 5+ messages in thread

* [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c
  2009-12-03  6:48   ` Heiko Schocher
@ 2009-12-04 21:45     ` Wolfgang Denk
  2009-12-05 10:54       ` Heiko Schocher
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-12-04 21:45 UTC (permalink / raw)
  To: u-boot

Dear Heiko,

In message <4B175F3F.2060400@denx.de> you wrote:
> 
> > Applied, thanks.
> > 
> > Heiko, I hope this is OK with you.
> 
> Hmm.. not really, my last comment on this was:

Ouch, sorry.

> http://lists.denx.de/pipermail/u-boot/2009-November/064245.html

I missed that, sorry. This was in another thread, not connected with
the patch.

> I don;t know, if this was ever used, but we should make this
> as a CONFIG option, like CONFIG_SYS_I2C_CMD_MW_WITH_PROBE.

What do you suggest? Shall I revert the patch, or can you provide a
new commit to re-add this feature? [But then, it would be unused code,
which we don't want to add, right?]

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Der Irrtum wiederholt sich immerfort in der Tat.  Deshalb mu? man das
Wahre unerm?dlich in Worten wiederholen.                     - Goethe

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

* [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c
  2009-12-04 21:45     ` Wolfgang Denk
@ 2009-12-05 10:54       ` Heiko Schocher
  0 siblings, 0 replies; 5+ messages in thread
From: Heiko Schocher @ 2009-12-05 10:54 UTC (permalink / raw)
  To: u-boot

Hello Wolfgang,

Wolfgang Denk wrote:
> In message <4B175F3F.2060400@denx.de> you wrote:
>>> Applied, thanks.
>>>
>>> Heiko, I hope this is OK with you.
>> Hmm.. not really, my last comment on this was:
> 
> Ouch, sorry.

No probelm.

>> http://lists.denx.de/pipermail/u-boot/2009-November/064245.html
> 
> I missed that, sorry. This was in another thread, not connected with
> the patch.
> 
>> I don;t know, if this was ever used, but we should make this
>> as a CONFIG option, like CONFIG_SYS_I2C_CMD_MW_WITH_PROBE.
> 
> What do you suggest? Shall I revert the patch, or can you provide a
> new commit to re-add this feature? [But then, it would be unused code,
> which we don't want to add, right?]

I actually vote for removing the code, so I sent soon a patch, which
fixes the comment.

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] 5+ messages in thread

end of thread, other threads:[~2009-12-05 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 13:58 [U-Boot] [PATCH] Removes dead code in the file common/cmd_i2c.c Pratap Chandu
2009-12-02 22:35 ` Wolfgang Denk
2009-12-03  6:48   ` Heiko Schocher
2009-12-04 21:45     ` Wolfgang Denk
2009-12-05 10:54       ` Heiko Schocher

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