Hi,

On Thu, Sep 08 2011, Seungwon Jeon wrote:
> EXT_CSD[248] includes the default maximum timeout for CMD6.
> This field is added at eMMC4.5 Spec. And it can be used for default
> timeout except for some operations which don't define the timeout(i.e.
> background operation, sanitize, flush cache) in eMMC4.5 Spec.
>
> Signed-off-by: Seungwon Jeon <tgih....@samsung.com>
> ---
>  drivers/mmc/core/mmc.c   |   19 +++++++++++++++----
>  include/linux/mmc/card.h |    1 +
>  include/linux/mmc/mmc.h  |    1 +
>  3 files changed, 17 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 5700b1c..a72d879 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -410,6 +410,15 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 
> *ext_csd)
>       else
>               card->erased_byte = 0x0;
>
> +     if (card->ext_csd.rev >= 6)
> +             card->ext_csd.generic_cmd6_time = 10 *
> +                     ext_csd[EXT_CSD_GENERIC_CMD6_TIME];
> +     else
> +             card->ext_csd.generic_cmd6_time = 0;
> +
>  out:
>       return err;
>  }
> @@ -668,7 +677,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
>        */

The patch is corrupt at this point:

patching file drivers/mmc/core/mmc.c
patch: **** malformed patch at line 39: @@ -668,7 +677,8 @@ static int 
mmc_init_card(struct mmc_host *host, u32 ocr,

- Chris.
-- 
Chris Ball   <c...@laptop.org>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to