* [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number.
@ 2008-11-06 19:01 Richard Retanubun
2008-11-19 14:14 ` Richard Retanubun
2008-12-07 0:25 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Richard Retanubun @ 2008-11-06 19:01 UTC (permalink / raw)
To: u-boot
Corrected endian order printing for compact flash serial number.
Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---
common/cmd_ide.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 2564c2b..db05f76 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -1166,15 +1166,16 @@ static void ide_ident (block_dev_desc_t *dev_desc)
ident_cpy ((unsigned char*)dev_desc->product, iop->serial_no, sizeof(dev_desc->product));
#ifdef __LITTLE_ENDIAN
/*
- * firmware revision and model number have Big Endian Byte
- * order in Word. Convert both to little endian.
+ * firmware revision, model, and serial number have Big Endian Byte
+ * order in Word. Convert all three to little endian.
*
* See CF+ and CompactFlash Specification Revision 2.0:
- * 6.2.1.6: Identfy Drive, Table 39 for more details
+ * 6.2.1.6: Identify Drive, Table 39 for more details
*/
strswab (dev_desc->revision);
strswab (dev_desc->vendor);
+ strswab (dev_desc->product);
#endif /* __LITTLE_ENDIAN */
if ((iop->config & 0x0080)==0x0080)
--
1.5.5.GIT
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number.
2008-11-06 19:01 [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number Richard Retanubun
@ 2008-11-19 14:14 ` Richard Retanubun
2008-12-07 0:25 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Richard Retanubun @ 2008-11-19 14:14 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
By no means is this a critical patch, I'm just a bit obsessive about tying up loose ends (or patches)
Is there a custodian I should ping for feedback on this patch, or are you it?
Thanks for your time
- Richard
Richard Retanubun wrote:
> Corrected endian order printing for compact flash serial number.
>
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
> common/cmd_ide.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/common/cmd_ide.c b/common/cmd_ide.c
> index 2564c2b..db05f76 100644
> --- a/common/cmd_ide.c
> +++ b/common/cmd_ide.c
> @@ -1166,15 +1166,16 @@ static void ide_ident (block_dev_desc_t *dev_desc)
> ident_cpy ((unsigned char*)dev_desc->product, iop->serial_no, sizeof(dev_desc->product));
> #ifdef __LITTLE_ENDIAN
> /*
> - * firmware revision and model number have Big Endian Byte
> - * order in Word. Convert both to little endian.
> + * firmware revision, model, and serial number have Big Endian Byte
> + * order in Word. Convert all three to little endian.
> *
> * See CF+ and CompactFlash Specification Revision 2.0:
> - * 6.2.1.6: Identfy Drive, Table 39 for more details
> + * 6.2.1.6: Identify Drive, Table 39 for more details
> */
>
> strswab (dev_desc->revision);
> strswab (dev_desc->vendor);
> + strswab (dev_desc->product);
> #endif /* __LITTLE_ENDIAN */
>
> if ((iop->config & 0x0080)==0x0080)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number.
2008-11-06 19:01 [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number Richard Retanubun
2008-11-19 14:14 ` Richard Retanubun
@ 2008-12-07 0:25 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2008-12-07 0:25 UTC (permalink / raw)
To: u-boot
Dear Richard Retanubun,
In message <49133F1F.1010403@RuggedCom.com> you wrote:
> Corrected endian order printing for compact flash serial number.
>
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
> common/cmd_ide.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
Applied, thanks.
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 ideal situation is to have massive computing power right at home.
Something that dims the streetlights and shrinks the picture on the
neighbours' TVs when you boot it up.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-07 0:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-06 19:01 [U-Boot] [PATCH] common/cmd_ide.c: Corrected endian order printing for compact flash serial number Richard Retanubun
2008-11-19 14:14 ` Richard Retanubun
2008-12-07 0:25 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox