From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001
Date: Wed, 14 Jul 2010 23:13:44 +0200 [thread overview]
Message-ID: <20100714211344.BE918160696@gemini.denx.de> (raw)
In-Reply-To: <EDA07492-2746-46D4-963A-37F4CAE0B415@kernel.crashing.org>
Dear Kumar Gala,
In message <EDA07492-2746-46D4-963A-37F4CAE0B415@kernel.crashing.org> you wrote:
>
> >> +#if defined(CONFIG_FSL_SATA_V2) && > defined(CONFIG_FSL_SATA_ERRATUM_A001)
> >> + if (IS_SVR_REV(svr, 1, 0) &&
> >> + ((SVR_SOC_VER(svr) == SVR_P1022) ||
> >> + (SVR_SOC_VER(svr) == SVR_P1022_E) ||
> >> + (SVR_SOC_VER(svr) == SVR_P1013) ||
> >> + (SVR_SOC_VER(svr) == SVR_P1013_E))) {
> >
> > Please use a switch().
>
> Really? There is only 1 case, you want:
>
> switch(SVR_SOC_VER(svr)) {
> case SVR_P1022:
> case SVR_P1022_E:
> case SVR_P1013:
> case SVR_P1013_E:
> ....
> break;
> }
Yes - don't you think it's much easier to write and to read?
Also it shows clearly that you are missing a default: case...
BTW: your indentation is wrong, and please sort the list...
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"He only drinks when he gets depressed." "Why does he get depressed?"
"Sometimes it's because he hasn't had a drink."
- Terry Pratchett, _Men at Arms_
next prev parent reply other threads:[~2010-07-14 21:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-10 4:18 [U-Boot] [PATCH 1/2] powerpc/85xx: Add command to report errata workarounds Kumar Gala
2010-06-10 4:18 ` [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001 Kumar Gala
2010-06-11 1:58 ` Timur Tabi
2010-06-11 13:33 ` Kumar Gala
2010-06-30 9:40 ` Kumar Gala
2010-07-14 19:30 ` Wolfgang Denk
2010-07-14 21:06 ` Kumar Gala
2010-07-14 21:13 ` Wolfgang Denk [this message]
2010-07-14 21:20 ` [U-Boot] [PATCH] powerpc/85xx: Add command to report errata workarounds Kumar Gala
2010-07-14 21:43 ` Wolfgang Denk
2010-07-14 22:05 ` Kumar Gala
2010-07-14 22:07 ` [U-Boot] [PATCH v3] " Kumar Gala
2010-06-30 9:39 ` [U-Boot] [PATCH 1/2] " Kumar Gala
2010-07-14 19:29 ` Wolfgang Denk
2010-07-14 20:50 ` Kumar Gala
2010-07-14 21:00 ` Wolfgang Denk
2010-07-14 21:06 ` Kumar Gala
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=20100714211344.BE918160696@gemini.denx.de \
--to=wd@denx.de \
--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