From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] TI: OMAP3: Overo Tobi ethernet support
Date: Thu, 08 Oct 2009 07:05:18 +0200 [thread overview]
Message-ID: <4ACD730E.1020107@googlemail.com> (raw)
In-Reply-To: <5e088bd90910072156t25c15421h6a5b058b7ee548e0@mail.gmail.com>
Steve Sakoman wrote:
> On Wed, Oct 7, 2009 at 9:50 PM, Dirk Behme <dirk.behme@googlemail.com> wrote:
>> Olof Johansson wrote:
>>> On Oct 5, 2009, at 8:56 AM, Steve Sakoman <sakoman@gmail.com> wrote:
>>>
>>>> On Sat, Sep 26, 2009 at 2:14 PM, Olof Johansson <olof@lixom.net> wrote:
>>>>> Add setup for ethernet on Tobi, allowing kernel/ramdisk to be loaded
>>>>> over tftp.
>>>>>
>>>>> This also refactors the smc911x driver to allow for detecting when the
>>>>> chip is missing. I.e. the detect_chip() function is called earlier and
>>>>> will abort gracefully when the Chip ID read returns all 1's.
>>>>>
>>>> Hmm . . . I just tried this on a board without smc911x chip and it
>>>> seems to hang after printing "Net".
>>>>
>>>> Did it work for you in this case? Haven't had time to debug yet, but
>>>> will try to look later today.
>>> The only hardware I have is tobi, which is why I thought I cc:d you as
>>> well as asked others to test with other carriers if they had them.
>>>
>>> I guess first thing to find out is if it's the first read that hangs or
>>> what.
>> Any idea how to go on with this? I have no Tobi, so unfortunately I can't
>> help here.
>
> I've been testing the patch below, which seems to work with all boards
> I've tried. It simply moves the test a bit earlier.
Great, thanks!
Olof: Could you test this? If it works for you, too, we should apply
it on top of u-boot-ti (and u-boot-arm/next) then (or modify initial
[1] ?).
Most probably we need a Signed-off-by then ;)
Thanks
Dirk
[1]
http://git.denx.de/?p=u-boot/u-boot-arm.git;a=commit;h=4eb3af078267e103fb957cb831497cf7670fb3f4
> Steve
>
> --- git/drivers/net/smc911x.c-orig 2009-09-29 16:24:48.000000000 -0700
> +++ git/drivers/net/smc911x.c 2009-10-05 20:41:55.000000000 -0700
> @@ -249,6 +249,12 @@ int smc911x_initialize(u8 dev_num, int b
>
> dev->iobase = base_addr;
>
> + /* Try to detect chip. Will fail if not present. */
> + if (smc911x_detect_chip(dev)) {
> + free(dev);
> + return 0;
> + }
> +
> addrh = smc911x_get_mac_csr(dev, ADDRH);
> addrl = smc911x_get_mac_csr(dev, ADDRL);
> dev->enetaddr[0] = addrl;
> @@ -264,12 +270,6 @@ int smc911x_initialize(u8 dev_num, int b
> dev->recv = smc911x_rx;
> sprintf(dev->name, "%s-%hu", DRIVERNAME, dev_num);
>
> - /* Try to detect chip. Will fail if not present. */
> - if (smc911x_detect_chip(dev)) {
> - free(dev);
> - return 0;
> - }
> -
> eth_register(dev);
> return 0;
> }
>
next prev parent reply other threads:[~2009-10-08 5:05 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 20:47 [U-Boot] [PATCH] TI: OMAP3: Overo Tobi ethernet support Olof Johansson
2009-09-12 5:25 ` Dirk Behme
2009-09-12 15:16 ` Paulraj, Sandeep
2009-09-12 17:18 ` Olof Johansson
2009-09-12 17:33 ` Paulraj, Sandeep
2009-09-13 17:22 ` Ben Warren
2009-09-13 19:11 ` Paulraj, Sandeep
2009-09-22 19:51 ` Wolfgang Denk
2009-09-22 19:50 ` Wolfgang Denk
2009-09-22 20:12 ` Olof Johansson
2009-09-22 21:28 ` Wolfgang Denk
2009-09-22 21:33 ` Olof Johansson
2009-09-22 21:42 ` Wolfgang Denk
2009-09-22 19:48 ` Wolfgang Denk
2009-09-22 20:13 ` Olof Johansson
2009-09-22 21:32 ` Wolfgang Denk
2009-09-22 21:34 ` Olof Johansson
2009-09-22 21:45 ` Wolfgang Denk
2009-09-22 21:37 ` Jean-Christian de Rivaz
2009-09-22 21:47 ` Tom
2009-09-22 19:44 ` Wolfgang Denk
2009-09-13 19:41 ` Steve Sakoman
2009-09-22 19:41 ` Wolfgang Denk
2009-09-22 20:34 ` Olof Johansson
2009-09-22 21:34 ` Wolfgang Denk
2009-09-22 21:36 ` Olof Johansson
2009-09-22 21:49 ` Wolfgang Denk
2009-09-22 21:52 ` Olof Johansson
2009-09-23 14:55 ` [U-Boot] [PATCH v2] " Olof Johansson
2009-09-23 18:39 ` Tom
2009-09-23 18:43 ` Olof Johansson
2009-09-23 19:16 ` Wolfgang Denk
2009-09-23 20:29 ` Olof Johansson
2009-09-23 21:00 ` Tom
2009-09-23 23:35 ` Olof Johansson
2009-09-24 0:34 ` Nishanth Menon
2009-09-24 0:38 ` Olof Johansson
2009-09-24 1:03 ` Tom
2009-09-24 1:05 ` Nishanth Menon
2009-09-24 17:32 ` Tom
2009-09-24 17:42 ` Paulraj, Sandeep
2009-09-28 6:02 ` [U-Boot] Applying u-boot-ti patches (was: [PATCH v2] TI: OMAP3: Overo Tobi ethernet support) Dirk Behme
2009-09-28 11:29 ` Paulraj, Sandeep
2009-09-28 17:37 ` [U-Boot] Applying u-boot-ti patches Dirk Behme
2009-09-28 17:45 ` Paulraj, Sandeep
2009-09-24 17:48 ` [U-Boot] [PATCH v2] TI: OMAP3: Overo Tobi ethernet support Paulraj, Sandeep
2009-09-24 17:51 ` Dirk Behme
2009-09-24 17:55 ` Olof Johansson
2009-09-26 6:13 ` [U-Boot] smc911x runtime detection (was: TI: OMAP3: Overo Tobi ethernet support) Dirk Behme
2009-09-26 11:21 ` Mike Frysinger
2009-09-26 12:36 ` [U-Boot] smc911x runtime detection Tom
2009-09-26 15:53 ` [U-Boot] smc911x runtime detection (was: TI: OMAP3: Overo Tobi ethernet support) Olof Johansson
2009-09-26 16:02 ` Ben Warren
[not found] ` <5e088bd90909261213j1512c83erb9665bccc102fc42@mail.gmail.com>
2009-09-26 19:19 ` Ben Warren
2009-09-26 19:23 ` Mike Frysinger
2009-09-26 21:09 ` Olof Johansson
2009-09-27 8:38 ` [U-Boot] smc911x runtime detection Dirk Behme
2009-09-26 21:14 ` [U-Boot] [PATCH v3] TI: OMAP3: Overo Tobi ethernet support Olof Johansson
2009-09-28 18:51 ` Ben Warren
2009-09-28 19:32 ` Paulraj, Sandeep
2009-10-05 13:56 ` Steve Sakoman
2009-10-05 14:07 ` Olof Johansson
2009-10-06 0:52 ` Paulraj, Sandeep
2009-10-08 4:50 ` Dirk Behme
2009-10-08 4:56 ` Steve Sakoman
2009-10-08 5:05 ` Dirk Behme [this message]
2009-10-08 6:59 ` Olof Johansson
2009-10-08 14:42 ` Paulraj, Sandeep
2009-10-08 17:08 ` Ben Warren
2009-10-08 17:19 ` Paulraj, Sandeep
2009-10-08 19:21 ` Olof Johansson
2009-10-10 16:42 ` Paulraj, Sandeep
2009-10-10 17:58 ` Dirk Behme
2009-10-10 18:24 ` Paulraj, Sandeep
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ACD730E.1020107@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox