1. 03 4月, 2014 2 次提交
    • P
      part_efi: move uuid<->string conversion functions into lib/uuid.c · a96a0e61
      Przemyslaw Marczak 提交于
      This commit introduces cleanup for uuid library.
      Changes:
      - move uuid<->string conversion functions into lib/uuid.c so they can be
        used by code outside part_efi.c.
      - rename uuid_string() to uuid_bin_to_str() for consistency with existing
        uuid_str_to_bin()
      - add an error return code to uuid_str_to_bin()
      - update existing code to the new library functions.
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: trini@ti.com
      a96a0e61
    • R
      ahci: Fix data abort on multiple scsi resets. · 3f629711
      Roger Quadros 提交于
      Commit 2faf5fb8 introduced a regression that causes a data
      abort when running scsi init followed by scsi reset.
      
      There are 2 problems with the original commit
      1) ALLOC_CACHE_ALIGN_BUFFER() allocates memory on the stack but is
      assigned to ataid[port] and used by other functions.
      2) The function ata_scsiop_inquiry() tries to free memory which was
      never allocated on the heap.
      
      Fix these problems by using tmpid as a temporary cache aligned buffer.
      Allocate memory separately for ataid[port] and re-use it if required.
      
      Fixes: 2faf5fb8 (ahci: Fix cache align error messages)
      Reported-by: NEli Nidam <elini@marvell.com>
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      3f629711
  2. 02 4月, 2014 6 次提交
  3. 01 4月, 2014 1 次提交
  4. 31 3月, 2014 6 次提交
  5. 29 3月, 2014 17 次提交
  6. 28 3月, 2014 2 次提交
  7. 24 3月, 2014 4 次提交
    • Ł
      dfu: mmc: Replace calls to u-boot commands with native mmc API · eea4e6fe
      Łukasz Majewski 提交于
      For some time we have been using the run_command() with properly crafted
      string. Such approach turned to be unreliable and error prone.
      
      Switch to "native" mmc subsystem API would allow better type checking and
      shall improve speed.
      
      Also, it seems that this API is changing less often than u-boot commands.
      The approach similar to env operations on the eMMC has been reused.
      Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
      eea4e6fe
    • P
      mmc: Split mmc struct, rework mmc initialization (v2) · 93bfd616
      Pantelis Antoniou 提交于
      The way that struct mmc was implemented was a bit of a mess;
      configuration and internal state all jumbled up in a single structure.
      
      On top of that the way initialization is done with mmc_register leads
      to a lot of duplicated code in drivers.
      
      Typically the initialization got something like this in every driver.
      
      	struct mmc *mmc = malloc(sizeof(struct mmc));
      	memset(mmc, 0, sizeof(struct mmc);
      	/* fill in fields of mmc struct */
      	/* store private data pointer */
      	mmc_register(mmc);
      
      By using the new mmc_create call one just passes an mmc config struct
      and an optional private data pointer like this:
      
      	struct mmc = mmc_create(&cfg, priv);
      
      All in tree drivers have been updated to the new form, and expect
      mmc_register to go away before long.
      
      Changes since v1:
      
      * Use calloc instead of manually calling memset.
      * Mark mmc_register as deprecated.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      93bfd616
    • P
      mmc: Convert mmc struct's name array to a pointer · 22cb7d33
      Pantelis Antoniou 提交于
      Using an array is pointless; even more pointless (and scary) is using
      sprintf to fill it without a format string.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      22cb7d33
    • P
      mmc: Remove ops from struct mmc and put in mmc_ops · ab769f22
      Pantelis Antoniou 提交于
      Remove the in-structure ops and put them in mmc_ops with
      a constant pointer to it.
      
      This makes the mmc structure smaller as well as conserving
      code space (in theory).
      
      All in-tree drivers are converted as well; this is done in a
      single patch in order to not break git bisect.
      
      Changes since V1:
      Fix compilation b0rked issue on omap platforms where OMAP_GPIO was
      not set.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      ab769f22
  8. 23 3月, 2014 2 次提交