05 May, 2015

1 commit

  • High capacity support is not a host capability, but a device capability
    that is queried via the OCR. The flag in the operating conditions
    request argument can just be set unconditionally. This matches the Linux
    implementation.

    [panto] Hand merged and renumbering MMC_MODE_DDR_52MHz.

    Signed-off-by: Rob Herring
    Signed-off-by: Pantelis Antoniou
    Cc: Pantelis Antoniou

    Rob Herring
     

05 Dec, 2014

3 commits


02 Apr, 2014

2 commits


24 Mar, 2014

3 commits

  • 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: Pantelis Antoniou

    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: Pantelis Antoniou

    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: Pantelis Antoniou

    Pantelis Antoniou
     

09 Mar, 2013

1 commit


06 Sep, 2012

1 commit


09 Jan, 2012

1 commit

  • Check for card detect each time an MMC/SD device is initialized. If card
    detection is not implemented, this code behaves as before and continues
    assuming a card is present. If no card is detected, has_init is reset
    for the MMC/SD device (to force initialization next time) and an error
    is returned.

    Signed-off-by: Thierry Reding
    Tested-by: Jason Liu

    Thierry Reding
     

16 Jul, 2011

1 commit