All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/1] FAT Bare Partition Support
Date: Mon, 16 Jun 2008 08:15:56 -0400	[thread overview]
Message-ID: <4856597C.6070703@ge.com> (raw)
In-Reply-To: <48562B4E.6080708@seznam.cz>

Michal Simek wrote:
> Hi Antonio
> 
> I am not responsible for this part of U-BOOT but your patch contain coding style
> violation.
> 
> Regards,
> Michal Simek
> 
>> Logic unit:
>> Purpose:    Add support for bare partitions (no partition table)
>> Author:     Antnoio R. Costa <antonio.costa <at> atmel.com>
>> Date  :     11 Jun 2008
>>
>> Status:
>> ~~~~~~
>> Some SD cards are not formatted with a partition table but with
>> just a bare partition at the beginnig of the memory.
>>
>> I modified get_partition_info_extended to call test_block_type
>> as done by print_partition_extended. In this way bare FAT partitions
>> are recognised. Now we need a test for Ext2.
>>
>> Signed-off-by: Antonio R. Costa <antonio.costa@atmel.com>
>>
>> diff --git a/disk/part_dos.c b/disk/part_dos.c
>> index 4d778ec..e5cc8aa 100644
>> --- a/disk/part_dos.c
>> +++ b/disk/part_dos.c

[snip]

>> +static inline int le16_to_int(unsigned char *le16)
>> +{
>> +    return ((le16[1] << 8) + le16[0]);
>> +}
>> +
> 
> this should be in header file

Please use <asm/byteorder.h> rather than making Yet Another Define. 
Note that the subdirectory asm gets symlinked to the appropriate 
arch-specific subdirectory and then the right endian munching is 
selected and it Just Works[tm].

PowerPC example:
<http://git.denx.de/?p=u-boot.git;a=blob;f=include/asm-ppc/byteorder.h;h=3f5bcf63a1f980eb0c5e95e458119f55f5855274;hb=HEAD>

[snip]

> Regards,
> Michal Simek

Thanks,
gvb

  reply	other threads:[~2008-06-16 12:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 13:00 [U-Boot-Users] [PATCH 1/1] FAT Bare Partition Support Antonio R. Costa
2008-06-16  8:58 ` Michal Simek
2008-06-16 12:15   ` Jerry Van Baren [this message]
2008-06-17  7:19     ` Antonio R. Costa
2008-08-01 22:43       ` Jean-Christophe PLAGNIOL-VILLARD
2008-08-02 11:44         ` Antonio R. Costa
     [not found]   ` <b0c88b10806160308x1b5e3e26g9ebb1fc52e2f7f67@mail.gmail.com>
     [not found]     ` <48564107.8050700@seznam.cz>
     [not found]       ` <b0c88b10806160345i624cfc2ap78b32f00bf54a444@mail.gmail.com>
2008-06-17 11:13         ` Michal Simek

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=4856597C.6070703@ge.com \
    --to=gerald.vanbaren@ge.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.