public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Larry Johnson <lrj@arlinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] PPC4xx: Add Ethernet 1000BASE-X support for PPC4xx
Date: Mon, 29 Oct 2007 16:36:25 -0500	[thread overview]
Message-ID: <47265259.60705@arlinx.com> (raw)
In-Reply-To: <20071029202545.32446247F5@gemini.denx.de>

Wolfgang Denk wrote:
> In message <47262967.8070307@arlinx.com> you wrote:
>> Would it be better to run Lindent on the original files, post those as
>> changes, and then post a second patch with the new material?
> 
> If it's your code, or other original code, then yes, this is the way
> to go.
> 
> But if it's code that was "borrowed" from somewhere else  (like  from
> the  Linux  kernel, busybox, etc.) and then only slightly modified to
> make it work under U-Boot, then please *DO*  *NOT*  reformat  it,  as
> this basicly makes it impossible to update the file from new versions
> of the original code.

Because, in general, it's hard to know the source of the code, it sounds
like the safest thing is for my to use Lindent only to identify problems
the patch, and fix them manually.

>> BTW, I've noticed that the "Lindent -pcs" format is used inconsistently
>> within files.  Since I'm also making changes in Linux, it's hard to
>> remember whether to type "foo(bar);" or "foo (bar);", maybe others have
>> this difficulty, too.  I've tried to use the form that is prevalent in
>> each individual file, though some are pretty much split down the middle.
>>
>> How do others feel?
> 
> It should be "foo (bar)".
> 
> And all this should be sufficiently documented at
> http://www.denx.de/wiki/UBoot/CodingStyle
> 
> If you feel that details are missing or not  clear  enought  in  this
> text please help to extend / fix it.

The text is clear, I just couldn't decide if this was "a custom more
honour'd in the breach than the observance" :-).

> Best regards,
> 
> Wolfgang Denk

Thanks for your help, I'll re-redo the patch.

Best regards, Larry

  reply	other threads:[~2007-10-29 21:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 17:00 [U-Boot-Users] [PATCH] PPC4xx: Add Ethernet 1000BASE-X support for PPC4xx Larry Johnson
2007-10-29 17:33 ` Ben Warren
2007-10-29 18:41   ` Larry Johnson
2007-10-29 19:14     ` Jon Loeliger
2007-10-29 19:30       ` Stefan Roese
2007-10-29 19:43         ` Larry Johnson
2007-10-29 19:37       ` Ben Warren
2007-10-29 20:26       ` Wolfgang Denk
2007-10-29 20:25     ` Wolfgang Denk
2007-10-29 21:36       ` Larry Johnson [this message]
2007-10-29 19:33 ` Stefan Roese
2007-10-29 20:26 ` Ben Warren
2007-10-29 22:01   ` Larry Johnson

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=47265259.60705@arlinx.com \
    --to=lrj@arlinx.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