15 Oct, 2012

1 commit


13 Oct, 2012

1 commit


09 Oct, 2012

10 commits

  • Signed-off-by: Tom Rini

    Tom Rini
     
  • The restore sequence in lowlevel_init was in the wrong order,
    causing lr to lose its original value and be set equal to ip
    instead. Also, its use of the stack clashes with that of
    s_init, so move the s_init call after the restore and turn
    it into a tail-optimized branch.

    Signed-off-by: Albert ARIBAUD
    Tested-by: Jeroen Hofstee

    Albert ARIBAUD
     
  • Fix:
    yaffs_guts.c: In function 'yaffs_check_chunk_erased':
    yaffs_guts.c:324:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c: In function 'yaffs_verify_chunk_written':
    yaffs_guts.c:352:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c: In function 'yaffs_grab_chunk_cache':
    yaffs_guts.c:1488:6: warning: variable 'pushout' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c: In function 'yaffs_check_obj_details_loaded':
    yaffs_guts.c:3180:6: warning: variable 'alloc_failed' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c:3179:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c: In function 'yaffs_update_oh':
    yaffs_guts.c:3288:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_guts.c: In function 'yaffs_get_obj_name':
    yaffs_guts.c:4447:7: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_summary.c: In function 'yaffs_summary_read':
    yaffs_summary.c:194:6: warning: variable 'sum_tags_bytes' set but not
    used [-Wunused-but-set-variable]
    yaffs_verify.c: In function 'yaffs_verify_file':
    yaffs_verify.c:227:6: warning: variable 'actual_depth' set but not used
    [-Wunused-but-set-variable]
    yaffs_yaffs1.c: In function 'yaffs1_scan':
    yaffs_yaffs1.c:26:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_yaffs2.c: In function 'yaffs2_scan_chunk':
    yaffs_yaffs2.c:949:6: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]
    yaffs_yaffs2.c: In function 'yaffs2_scan_backwards':
    yaffs_yaffs2.c:1352:6: warning: variable 'deleted' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin
    Cc: Charles Manning
    Tested-by: Albert ARIBAUD

    Anatolij Gustschin
     
  • Logically, a disk that contains a raw FAT filesystem does not in fact
    have a partition table. However, test_part_dos() was claiming that such
    disks did in fact have a DOS-style partition table. This caused
    get_device_and_partition() not to return a whole-disk disk_partition_t,
    since part_type != PART_TYPE_UNKNOWN.

    part_dos.c's print_partition_extended() detected the raw FAT filesystem
    condition and printed a fake partition table that encompassed the whole
    disk.

    However, part_dos.c's get_partition_info_extended() did not return any
    valid partitions in this case. This combination caused
    get_device_and_partition() not to find any valid partitions, and hence
    to return an error.

    Fix test_part_dos() not to claim that raw FAT filesystems are DOS
    partition tables. In turn, this causes get_device_and_partition() to
    return a whole-disk disk_partition_t, and hence the following commands
    work:

    fatls mmc 0 /
    fatls mmc 0:auto /

    An alternative would be to modify print_partition_extended() to detect
    raw FAT filesystems, just like print_partition_extended() does, and to
    return a fake partition in this case. However, this seems logically
    incorrect, and also duplicates code, since get_device_and_partition()
    falls back to returning a whole-disk partition when there is no partition
    table on the device.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • The recent switch to use get_device_and_partition() from do_fat_ls()
    broke the ability to access a FAT filesystem directly on a whole device;
    FAT only works within a partition on a device.

    This change makes e.g. "fatls mmc 0:0" work; explicitly requesting
    partition ID 0 is something that get_device_and_partition() fully
    supports. However, fat_register_device() expects partition ID 1 to be
    used in the full-disk case; partition ID 1 was previously implicitly
    specified when the user didn't actually specify a partition ID. Update
    fat_register_device() to expect the correct ID.

    This change does imply that if a user explicitly executes "fatls mmc 0:1"
    then this will fail, and may be a change in behaviour.

    Note that this still prevents "fatls mmc 0:auto" from working. The next
    patch will fix that.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • lowlevel_init() of rmobile badly assumed that ip register holds return address.
    The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this assumption.
    This patch removes this bad assumption and simplify code.

    Signed-off-by: Tetsuyuki Kobayashi

    Tetsuyuki Kobayashi
     
  • The IDE_BUS(dev) macro was previously doing dev >> 1. This however is a
    mis-match of the usage in common/cmd_ide.c and would cause boards with
    multiple ports / devices to not correctly detect all devices. For more
    details please see:
    http://lists.denx.de/pipermail/u-boot/2012-April/122525.html

    [Tom Rini: Reword commit message only]

    Tested-by: Luka Perkov
    Signed-off-by: Simon Baatz
    Signed-off-by: Tom Rini

    Luka Perkov
     
  • Use the standard CMD_RET_* constants to clearly report errors from the
    pca953x command. In addition, print error messages when I2C communication
    fails.

    Signed-off-by: Laurence Withers

    Laurence Withers
     
  • Signed-off-by: Laurence Withers

    Laurence Withers
     
  • The default configuration for ml507 will generate a hang() in the
    Xilinx uartlite driver.

    userial_ports[] in drivers/serial/serial_xuartlite.c does not get
    initialized properly. CONFIG_SERIAL_BASE is unused.
    XILINX_UARTLITE_BASEADDR is used instead.

    Signed-off-by: Rommel Custodio

    Rommel Custodio
     

06 Oct, 2012

6 commits


05 Oct, 2012

3 commits


04 Oct, 2012

19 commits