public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 2/3] 83xx: serdes setup routines
Date: Thu, 13 Mar 2008 16:49:41 +0100	[thread overview]
Message-ID: <20080313154941.GC17306@game.jcrosoft.org> (raw)
In-Reply-To: <20080313134450.GA25871@localhost.localdomain>

On 16:44 Thu 13 Mar     , Anton Vorontsov wrote:
> On Wed, Mar 12, 2008 at 11:54:39PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 18:07 Fri 07 Mar     , Anton Vorontsov wrote:
> > > This patch adds few routines to configure serdes on 837x targets.
> > > 
> > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> > > ---
> > >  cpu/mpc83xx/Makefile |    2 +-
> > >  cpu/mpc83xx/serdes.c |  161 ++++++++++++++++++++++++++++++++++++++++++++++++++
> > >  include/fsl_serdes.h |   25 ++++++++
> > >  3 files changed, 187 insertions(+), 1 deletions(-)
> > >  create mode 100644 cpu/mpc83xx/serdes.c
> > >  create mode 100644 include/fsl_serdes.h
> > > 
> > > diff --git a/cpu/mpc83xx/Makefile b/cpu/mpc83xx/Makefile
> > > index 94a3cb8..678be29 100644
> > > --- a/cpu/mpc83xx/Makefile
> > > +++ b/cpu/mpc83xx/Makefile
> > > @@ -29,7 +29,7 @@ LIB	= $(obj)lib$(CPU).a
> > >  
> > >  START	= start.o
> > >  COBJS	= traps.o cpu.o cpu_init.o speed.o interrupts.o \
> > > -	  spd_sdram.o ecc.o qe_io.o pci.o fdt.o
> > > +	  spd_sdram.o ecc.o qe_io.o pci.o fdt.o serdes.o
> > Please split it with on line for one file
> 
> Not sure if just splitting COBJS in separate lines is any better.
> In long term we should start using $(CONFIG_ symbols. I can start
> doing it for serdes...
> 
> > >  
> [...]
> > > +#ifdef CONFIG_FSL_SERDES
> > Please move it to the Makefile
> 
> - - - -
> From: Anton Vorontsov <avorontsov@ru.mvista.com>
> Subject: 83xx: serdes setup routines
> 
> This patch adds few routines to configure serdes on 837x targets.
> 
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
>  cpu/mpc83xx/Makefile |    6 +-
>  cpu/mpc83xx/serdes.c |  156 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/fsl_serdes.h |   25 ++++++++
>  3 files changed, 185 insertions(+), 2 deletions(-)
>  create mode 100644 cpu/mpc83xx/serdes.c
>  create mode 100644 include/fsl_serdes.h
> 
> diff --git a/cpu/mpc83xx/Makefile b/cpu/mpc83xx/Makefile
> index 94a3cb8..27e1567 100644
> --- a/cpu/mpc83xx/Makefile
> +++ b/cpu/mpc83xx/Makefile
> @@ -28,8 +28,10 @@ include $(TOPDIR)/config.mk
>  LIB	= $(obj)lib$(CPU).a
>  
>  START	= start.o
> -COBJS	= traps.o cpu.o cpu_init.o speed.o interrupts.o \
> -	  spd_sdram.o ecc.o qe_io.o pci.o fdt.o
> +COBJS-y	+= traps.o cpu.o cpu_init.o speed.o interrupts.o \
> +	   spd_sdram.o ecc.o qe_io.o pci.o
> +COBJS-$(CONFIG_FSL_SERDES) += serdes.o
> +COBJS = $(COBJS-y)
I really insist please split it on line for one file.

See the anwsers on Stefano Patch

> > > It will be nice to split one line for each file
> >
> > Why? IMHO the could will not become more readble that way, on
> > contrary...

Right. The readability will suffer a little by changing this into the
one-object-per-line version.

> When you have mutltiple patch for a makefile, ex : add 2 new file in 2
> patch, it could be applied without rebase it the second patch

Correct. Even though the likelyhood of multiple patches in this specific
directory is very low. But nevertheless I'm tempted to change it to the
one-object-per-line version. This makes it also easier to add one object
in
alphabetical order and not having to reorder the lines. Here an example
of
adding "ccccccccccccc.o":

For the multiple-objects-per-line:

-COBJS = aaaaaaaaaaaa.o bbbbbbbbbbbb.o eeeeeeeeeeee.o
-COBJS += ffffffffffff.o hhhhhhhhhhhh.o xxxxxxxxxxxx.o
+COBJS = aaaaaaaaaaaa.o bbbbbbbbbbbb.o cccccccccccc.0
+COBJS += eeeeeeeeeeee.o ffffffffffff.o hhhhhhhhhhhh.o
+COBJS += xxxxxxxxxxxx.o

For the one-object-per-line:

COBJS = aaaaaaaaaaaa.o
COBJS += bbbbbbbbbbbb.o
+COBJS += cccccccccccc.o
COBJS += eeeeeeeeeeee.o
COBJS += ffffffffffff.o

Best regards,
Stefan 

----

Best Regards,
J.

      reply	other threads:[~2008-03-13 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07 15:07 [U-Boot-Users] [PATCH 2/3] 83xx: serdes setup routines Anton Vorontsov
2008-03-12 22:54 ` Jean-Christophe PLAGNIOL-VILLARD
2008-03-13 13:44   ` Anton Vorontsov
2008-03-13 15:49     ` Jean-Christophe PLAGNIOL-VILLARD [this message]

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=20080313154941.GC17306@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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