public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC][PATCH 19/21] [eNET] Add support for onboard RTL8100B (RTL8139) chips
Date: Sun, 04 Apr 2010 22:32:01 -0700	[thread overview]
Message-ID: <4BB975D1.7060804@gmail.com> (raw)
In-Reply-To: <1269516183-9306-20-git-send-email-graeme.russ@gmail.com>

HI Graeme,

On 3/25/2010 4:23 AM, Graeme Russ wrote:
> ---
> I simply do not know why PCI_BASE_ADDRESS_1 has to be changed to
> PCI_BASE_ADDRESS_0 - Please comment
>
>   board/eNET/eNET.c           |   12 ++++++++++++
>   drivers/net/rtl8139.c       |    2 +-
>   include/asm-i386/ic/sc520.h |    6 +++---
>   include/configs/eNET.h      |    9 ++++++++-
>   4 files changed, 24 insertions(+), 5 deletions(-)
>
> diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c
> index 52ea140..9d782f3 100644
> --- a/board/eNET/eNET.c
> +++ b/board/eNET/eNET.c
> @@ -24,6 +24,8 @@
>   #include<common.h>
>   #include<asm/io.h>
>   #include<asm/ic/sc520.h>
> +#include<net.h>
> +#include<netdev.h>
>
>   #ifdef CONFIG_HW_WATCHDOG
>   #include<watchdog.h>
> @@ -173,3 +175,13 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
>   	} else
>   		return 0;
>   }
> +
> +int board_eth_init(bd_t *bis)
> +{
> +	int adapters;
> +	adapters = pci_eth_init(bis);
> +
> +	if (adapters>  0)
> +		eth_init(bis);
>    
I'm not sure why you're calling eth_init() here.  Are you sure that's 
what you want to do?  Keep in mind that board_eth_init() gets called by 
eth_initialize() in the common net code.
> +
> +	return adapters;
> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
> index db8a727..a3df564 100644
> --- a/drivers/net/rtl8139.c
> +++ b/drivers/net/rtl8139.c
> @@ -214,7 +214,7 @@ int rtl8139_initialize(bd_t *bis)
>   		if ((devno = pci_find_devices(supported, idx++))<  0)
>   			break;
>
> -		pci_read_config_dword(devno, PCI_BASE_ADDRESS_1,&iobase);
> +		pci_read_config_dword(devno, PCI_BASE_ADDRESS_0,&iobase);
>    
Are you fixing a bug here?  This seems like a change that would have 
fairly wide-ranging implications beyond your board.
<snip>

regards,
Ben

  reply	other threads:[~2010-04-05  5:32 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 11:22 [U-Boot] [RFC][PATCH 00/21] [x86] 'Comming of Age' Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 01/21] [x86] Add unaligned.h Graeme Russ
2010-03-25 17:45   ` Mike Frysinger
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 02/21] [x86] #ifdef out getenv_IPaddr() Graeme Russ
2010-03-25 11:45   ` Vipin Kumar
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 03/21] [x86] Fix MMCR Access Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 04/21] [x86] Add register dump to crash handlers Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 05/21] [x86] Fix do_go_exec() Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 06/21] [x86] Fix sc520 memory size reporting Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 07/21] [x86] Split sc520 memory sizing versus reporting Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 08/21] [x86] Add RAM bootstrap functionality Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 09/21] [x86] Move GDT to a safe location in RAM Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 10/21] [x86] Pass relocation offset into Global Data Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 11/21] [x86] Fix copying of Real-Mode code into RAM Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 12/21] [ns16550] Enable port-mapped access Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 13/21] [x86] Use CONFIG_SERIAL_MULTI Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 14/21] [x86] Provide weak PC/AT compatibility setup function Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 15/21] [x86] Fix support for booting bzImage Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 16/21] [sc520] Allow boards to override udelay Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 17/21] [eNET] Fix Flash Write Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 18/21] [eNET] Fix CONFIG_SYS_HZ to be 1000 Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 19/21] [eNET] Add support for onboard RTL8100B (RTL8139) chips Graeme Russ
2010-04-05  5:32   ` Ben Warren [this message]
2010-04-05 22:21     ` Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 20/21] [eNET] Add PC/AT compatibility setup function Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 21/21] Use SC520 MMCR to reset eNET board Graeme Russ
2010-03-26 15:55 ` [U-Boot] [RFC][PATCH 00/21] [x86] 'Comming of Age' Peter Tyser
2010-03-27  4:33   ` Graeme Russ
2010-03-27 11:02     ` Joakim Tjernlund
2010-03-27 11:54       ` Graeme Russ
2010-03-27 15:48         ` Joakim Tjernlund
2010-03-28  7:38           ` Graeme Russ
2010-03-28 10:06             ` Joakim Tjernlund

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=4BB975D1.7060804@gmail.com \
    --to=biggerbadderben@gmail.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