public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default
@ 2014-07-02  0:17 Luka Perkov
  2014-07-02 13:26 ` Stefan Roese
  2014-07-04 13:07 ` Prafulla Wadaskar
  0 siblings, 2 replies; 4+ messages in thread
From: Luka Perkov @ 2014-07-02  0:17 UTC (permalink / raw)
  To: u-boot

Each board with defines it's own set of values. If we do not define
CONFIG_MVGBE_PORTS we will hit following error:

mvgbe.c: In function 'mvgbe_initialize':
mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared (first use in this function)
  u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;

This patch fixes above described problem.

Signed-off-by: Luka Perkov <luka@openwrt.org>
CC: Prafulla Wadaskar <prafulla@marvell.com>
CC: Stefan Roese <sr@denx.de>
---
 drivers/net/mvgbe.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
index 0cd06b6..d558f59 100644
--- a/drivers/net/mvgbe.c
+++ b/drivers/net/mvgbe.c
@@ -35,6 +35,10 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifndef CONFIG_MVGBE_PORTS
+# define CONFIG_MVGBE_PORTS {0, 0}
+#endif
+
 #define MV_PHY_ADR_REQUEST 0xee
 #define MVGBE_SMI_REG (((struct mvgbe_registers *)MVGBE0_BASE)->smi)
 
-- 
2.0.1

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

* [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default
  2014-07-02  0:17 [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default Luka Perkov
@ 2014-07-02 13:26 ` Stefan Roese
  2014-07-04 13:07 ` Prafulla Wadaskar
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2014-07-02 13:26 UTC (permalink / raw)
  To: u-boot

On 02.07.2014 02:17, Luka Perkov wrote:
> Each board with defines it's own set of values. If we do not define
> CONFIG_MVGBE_PORTS we will hit following error:
>
> mvgbe.c: In function 'mvgbe_initialize':
> mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared (first use in this function)
>    u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;
>
> This patch fixes above described problem.
>
> Signed-off-by: Luka Perkov <luka@openwrt.org>
> CC: Prafulla Wadaskar <prafulla@marvell.com>
> CC: Stefan Roese <sr@denx.de>

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

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

* [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default
  2014-07-02  0:17 [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default Luka Perkov
  2014-07-02 13:26 ` Stefan Roese
@ 2014-07-04 13:07 ` Prafulla Wadaskar
  2014-07-14 21:03   ` Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Prafulla Wadaskar @ 2014-07-04 13:07 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: Luka Perkov [mailto:luka at openwrt.org]
> Sent: 02 July 2014 05:48
> To: u-boot at lists.denx.de
> Cc: luka at openwrt.org; Prafulla Wadaskar; Stefan Roese
> Subject: [PATCH] kirkwood: define empty
> CONFIG_MVGBE_PORTS by default
> 
> Each board with defines it's own set of values. If we
> do not define
> CONFIG_MVGBE_PORTS we will hit following error:
> 
> mvgbe.c: In function 'mvgbe_initialize':
> mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared
> (first use in this function)
>   u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;
> 
> This patch fixes above described problem.
> 
> Signed-off-by: Luka Perkov <luka@openwrt.org>
> CC: Prafulla Wadaskar <prafulla@marvell.com>
> CC: Stefan Roese <sr@denx.de>
> ---
>  drivers/net/mvgbe.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
> index 0cd06b6..d558f59 100644
> --- a/drivers/net/mvgbe.c
> +++ b/drivers/net/mvgbe.c
> @@ -35,6 +35,10 @@
> 
>  DECLARE_GLOBAL_DATA_PTR;
> 
> +#ifndef CONFIG_MVGBE_PORTS
> +# define CONFIG_MVGBE_PORTS {0, 0}
> +#endif
> +
>  #define MV_PHY_ADR_REQUEST 0xee
>  #define MVGBE_SMI_REG (((struct mvgbe_registers
> *)MVGBE0_BASE)->smi)
>

This is generic to network driver, to be picked up by net custodian..

+Joe

Acked-by: Prafulla Wadaskar <prafulla@marvell.com>

Regards...
Prafulla . . .

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

* [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default
  2014-07-04 13:07 ` Prafulla Wadaskar
@ 2014-07-14 21:03   ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2014-07-14 21:03 UTC (permalink / raw)
  To: u-boot

On Fri, Jul 04, 2014 at 06:07:09AM -0700, Prafulla Wadaskar wrote:
> 
> 
> > -----Original Message-----
> > From: Luka Perkov [mailto:luka at openwrt.org]
> > Sent: 02 July 2014 05:48
> > To: u-boot at lists.denx.de
> > Cc: luka at openwrt.org; Prafulla Wadaskar; Stefan Roese
> > Subject: [PATCH] kirkwood: define empty
> > CONFIG_MVGBE_PORTS by default
> > 
> > Each board with defines it's own set of values. If we
> > do not define
> > CONFIG_MVGBE_PORTS we will hit following error:
> > 
> > mvgbe.c: In function 'mvgbe_initialize':
> > mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared
> > (first use in this function)
> >   u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;
> > 
> > This patch fixes above described problem.
> > 
> > Signed-off-by: Luka Perkov <luka@openwrt.org>
> > CC: Prafulla Wadaskar <prafulla@marvell.com>
> > CC: Stefan Roese <sr@denx.de>
> > ---
> >  drivers/net/mvgbe.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
> > index 0cd06b6..d558f59 100644
> > --- a/drivers/net/mvgbe.c
> > +++ b/drivers/net/mvgbe.c
> > @@ -35,6 +35,10 @@
> > 
> >  DECLARE_GLOBAL_DATA_PTR;
> > 
> > +#ifndef CONFIG_MVGBE_PORTS
> > +# define CONFIG_MVGBE_PORTS {0, 0}
> > +#endif
> > +
> >  #define MV_PHY_ADR_REQUEST 0xee
> >  #define MVGBE_SMI_REG (((struct mvgbe_registers
> > *)MVGBE0_BASE)->smi)
> >
> 
> This is generic to network driver, to be picked up by net custodian..
> 
> +Joe
> 
> Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
> 

It's in the marvell driver so please just pick it up, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140714/c8fe8ee0/attachment.pgp>

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

end of thread, other threads:[~2014-07-14 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02  0:17 [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default Luka Perkov
2014-07-02 13:26 ` Stefan Roese
2014-07-04 13:07 ` Prafulla Wadaskar
2014-07-14 21:03   ` Tom Rini

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