From: Wolfgang Denk Date: Wed, 14 Jul 2010 21:30:57 +0200 Subject: [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001 In-Reply-To: <1276143535-22532-2-git-send-email-galak@kernel.crashing.org> References: <1276143535-22532-1-git-send-email-galak@kernel.crashing.org> <1276143535-22532-2-git-send-email-galak@kernel.crashing.org> Message-ID: <20100714193057.923BE160696@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1276143535-22532-2-git-send-email-galak@kernel.crashing.org> you wrote: > Signed-off-by: Kumar Gala > --- > arch/powerpc/cpu/mpc85xx/cmd_errata.c | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/arch/powerpc/cpu/mpc85xx/cmd_errata.c b/arch/powerpc/cpu/mpc85xx/cmd_errata.c > index 6824ebf..81078bd 100644 > --- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c > +++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c > @@ -22,9 +22,23 @@ > > #include > #include > +#include > +#include > > static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) > { > + __maybe_unused u32 svr = get_svr(); > + > +#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(). 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 "The first rule of magic is simple. Don't waste your time waving your hands and hoping when a rock or a club will do." - McCloctnik the Lucid