Re: [PATCH] mmc: subtract boot sectors from disk size for eMMC 4.3+ devices

2011-03-05 Thread Andrei Warkentin
On Mar 5, 2011 6:16 AM, "Linus Walleij" wrote: > This patch is a squash of patches from Gary King and Ulf > Hansson done in Android trees, hopefully fixing the issue properly. > > The csd sector count reported by eMMC 4.3+ cards includes the boot > partition size; subtract this from the size repor

Re: [PATCH 1/3] mmc: skip detection of nonremovable cards on rescan - card removal detection regression

2011-03-05 Thread Ohad Ben-Cohen
On Fri, Mar 4, 2011 at 4:22 AM, Maxim Levitsky wrote: > On Mon, 2010-12-20 at 00:11 +0200, Ohad Ben-Cohen wrote: >> Hi Chris, >> >> On Fri, Dec 17, 2010 at 2:51 AM, Chris Ball wrote: >> ... >> > Thanks, pushed to mmc-next with trivial cleanup as below: >> >> Looks good, thanks. >> >> I just brief

[PATCH] mmc: reset card voltage after power off

2011-03-05 Thread Linus Walleij
From: Ulf Hansson At power off, reset OCR mask to be the highest possible voltage supported for the current mmc host. This solves the re-initialization during the power up sequence. The voltage may have been decreased due to the card accepts a lower voltage than the voltage used during the initi

[PATCH] mmc: export function mmc_do_release_host

2011-03-05 Thread Linus Walleij
From: Ulf Hansson When using mmc_try_claim_host the corresponding release function is mmc_do_release_host, which then also must be exported. Reviewed-by: Jonas Aberg Reviewed-by: Sebastian Rasmussen Signed-off-by: Ulf Hansson Signed-off-by: Linus Walleij --- drivers/mmc/core/core.c |3

[PATCH] mmc: subtract boot sectors from disk size for eMMC 4.3+ devices

2011-03-05 Thread Linus Walleij
This patch is a squash of patches from Gary King and Ulf Hansson done in Android trees, hopefully fixing the issue properly. The csd sector count reported by eMMC 4.3+ cards includes the boot partition size; subtract this from the size reported to the disk since the boot partition is inaccessible.

Re: MMC quirks relating to performance/lifetime.

2011-03-05 Thread Andrei Warkentin
On Wed, Mar 2, 2011 at 4:34 AM, Andrei Warkentin wrote: > Before the generic improvements are made to the block layer, I think > there is some value > in implementing the (simpler) ones in mmc block code, as well as > expose an mmc block quirk interface by which its easy to add complex > workaroun