[PATCH 1/2] mmc: block: fix boot partition switch error path

2011-09-23 Thread Adrian Hunter
In the case of a switch error, do not update partition config as though the switch succeeded, and ensure blk_end_request is called on the failed request. Signed-off-by: Adrian Hunter adrian.hun...@intel.com --- drivers/mmc/card/block.c | 16 +--- 1 files changed, 13 insertions(+),

[PATCH 2/2] mmc: block: support no access to boot partitions

2011-09-23 Thread Adrian Hunter
Intel Medfield platform blocks access to eMMC boot partitions which results in switch errors. Since there is no access, mmcboot0/1 devices should not be created. Add a host capability to reflect that. Signed-off-by: Adrian Hunter adrian.hun...@intel.com --- drivers/mmc/card/block.c |2

[PATCH 0/2] mmc: block: support no access to boot partitions

2011-09-23 Thread Adrian Hunter
Hi Here is a minor fix and a patch to support no access to boot partitions. Adrian Hunter (2): mmc: block: fix boot partition switch error path mmc: block: support no access to boot partitions drivers/mmc/card/block.c | 18 ++ drivers/mmc/host/sdhci-pci.c |

Re: [PATCH 1/2] mmc: block: fix boot partition switch error path

2011-09-23 Thread Andrei E. Warkentin
Hi Adrian, 2011/9/23 Adrian Hunter adrian.hun...@intel.com: In the case of a switch error, do not update partition config as though the switch succeeded, and ensure blk_end_request is called on the failed request. Signed-off-by: Adrian Hunter adrian.hun...@intel.com ---  

[PATCH V4] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Girish K S
This patch adds the power class selection feature available for mmc versions 4.0 and above. During the enumeration stage before switching to the lower data bus, check if the power class is supported for the current bus width. If the power class is available then switch to the power class and use

Re: [PATCH V4] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Chris Ball
Hi Girish, On Fri, Sep 23 2011, Girish K S wrote: + default: + pr_warning(%s: Voltage range not supported +for power class.\n, mmc_hostname(host)); + break; + } I suggested replacing your BUG(); here with a return, but you just have a

Re: [PATCH V4] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Girish K S
Hi Chris, On 23 September 2011 20:09, Chris Ball c...@laptop.org wrote: Hi Girish, On Fri, Sep 23 2011, Girish K S wrote: +     default: +             pr_warning(%s: Voltage range not supported +                        for power class.\n, mmc_hostname(host)); +             break; +     }

Re: [PATCH V4] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Chris Ball
Hi Girish, On Fri, Sep 23 2011, Girish K S wrote: I suggested replacing your BUG(); here with a return, but you just have a break here. Is having the function continue in this case intentional? sorry for that. will update with a return -EBADMSG Thanks; let's go with -EINVAL, though. -

[PATCH V5] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Girish K S
This patch adds the power class selection feature available for mmc versions 4.0 and above. During the enumeration stage before switching to the lower data bus, check if the power class is supported for the current bus width. If the power class is available then switch to the power class and use

Re: [PATCH V5] mmc: core: eMMC 4.5 Power Class Selection Feature

2011-09-23 Thread Chris Ball
Hi Girish, On Fri, Sep 23 2011, Girish K S wrote: This patch adds the power class selection feature available for mmc versions 4.0 and above. During the enumeration stage before switching to the lower data bus, check if the power class is supported for the current bus width. If the power

Re: [PATCH 0/2] mmc: block: support no access to boot partitions

2011-09-23 Thread Chris Ball
Hi Adrian, On Fri, Sep 23 2011, Adrian Hunter wrote: Hi Here is a minor fix and a patch to support no access to boot partitions. Adrian Hunter (2): mmc: block: fix boot partition switch error path mmc: block: support no access to boot partitions Thanks, pushed to mmc-next for

Re: [PATCH 37/55] mmc: irq: Remove IRQF_DISABLED

2011-09-23 Thread Chris Ball
Hi, On Thu, Sep 22 2011, Yong Zhang wrote: Since commit [e58aa3d2: genirq: Run irq handlers with interrupts disabled], We run all interrupt handlers with interrupts disabled and we even check and yell when an interrupt handler returns with interrupts enabled (see commit [b738a50a: genirq:

Re: [PATCH] MMC: ext_csd.raw_* used in comparison but never set

2011-09-23 Thread Philip Rakity
Acked-by: Philip Rakity prak...@marvell.com On Sep 22, 2011, at 9:25 PM, Andrei Warkentin wrote: f39b2dd9d065151a04f5996656d1f27a7eb32d45 added code to only compare read-only ext_csd fields in bus width testing code, yet it's comparing some fields that are never set. The affected fields

[PATCH v2] mmc : general purpose partition support.

2011-09-23 Thread Namjae Jeon
It allows gerneral purpose partitions in MMC Device. And I try to simpliy make mmc_blk_alloc_parts using mmc_part structure suggested by Andrei Warkentin. After patching, we can see general purpose partitions like this. cat /proc/partitions 179 0 847872 mmcblk0 179 192 4096

Re: [PATCH] mmc : general purpose partition support.

2011-09-23 Thread NamJae Jeon
2011/9/24 J Freyensee james_p_freyen...@linux.intel.com: On 09/22/2011 05:29 PM, NamJae Jeon wrote: 2011/9/23 J Freyenseejames_p_freyen...@linux.intel.com On 09/22/2011 04:58 PM, NamJae Jeon wrote: 2011/9/23 J Freyenseejames_p_freyen...@linux.intel.com: On 09/22/2011 04:15 PM, NamJae Jeon