[PATCH] mmc: omap: Fix a section warning regression

2012-05-27 Thread Tony Lindgren
Commit b6e0703b (mmc: omap: make it behave well as a module) made some __devinit changes but missed one function causing a section warning: WARNING: vmlinux.o(.devinit.text+0x8604): Section mismatch in reference from the function mmc_omap_probe) The function __devinit mmc_omap_probe() references a

Re: [PATCH 4/5 v3] mmc: add a function to get a regulator, supplying card's Vdd

2012-05-27 Thread Philip Rakity
I have started looking at this area and I am rather confused. It seems to me two "dedicated" regulators are required. One regulator controls VDD (vcc) and this is the regulator called vmmc. This regulator MAY support the ability to switch voltages and MAY support the ability to be turned on

RE: [PATCH v2 2/4] mmc: dw_mmc: fix the IDMAC sw reset

2012-05-27 Thread Seungwon Jeon
Dmitry Shmidt > On Mon, May 21, 2012 at 9:01 PM, Seungwon Jeon wrote: > > IDMAC may not be cleaned in driver probe if it has > > been already used in boot time. So IDMAC needs sw > > reset newly. And DMA interface reset precedes the > > internal DMAC reset. Additionally SDMMC_IDMAC_SWRESET > > is

Re: [PATCH 4/5 v3] mmc: add a function to get a regulator, supplying card's Vdd

2012-05-27 Thread Ulf Hansson
Hi Guennadi, On 25 May 2012 17:14, Guennadi Liakhovetski wrote: > Add a function to get a regulator, supplying card's Vdd on a specific host. > If such a regulator is found, the function checks, whether a valid OCR mask > can be obtained from this regulator. > > Signed-off-by: Guennadi Liakhovets

[PATCH 1/3] mmc: sdhci - if MAX_CURRENT returns 0 try to use regulator to get current

2012-05-27 Thread philipspatches
From: Philip Rakity The sd host controller spec indicates the the MAX_CURRENT value may be returned as 0. In this case other methods need to be used to return the current. If 0 is returned and there is a regulator, ask the regulator for how much current is available. Signed-off-by: Mark F. Bro

[PATCH 2/3] mmc: sdhci only set 200ma support for 1.8v if 200ma is available

2012-05-27 Thread philipspatches
From: Philip Rakity max_current_caps can return 0 if not available from the sd controller. if no regulator is present or the regulator specifies a current less then 200ma we will set the 200ma caps bit by default. do not do this. Signed-off-by: Philip Rakity Reviewed-by: Aaron Lu --- drivers

[PATCH 3/3] mmc: do not attempt UHS 1.8v support if board does not support it

2012-05-27 Thread philipspatches
From: Philip Rakity We have h/w that does not support 1.8v signaling even though the controller does support this. If we enable 1.8v support UHS cards are recognised but recovery to 3.3v is not possible depending on the SD card. Ensure that when we do not support 1.8v UHS mode cards can work (i

Re: [PATCH] mmc: core: Fix build warning with !CONFIG_SUSPEND

2012-05-27 Thread Shilimkar, Santosh
On Sun, May 27, 2012 at 8:22 AM, Chris Ball wrote: > Hi, > > On Sat, May 19 2012, Santosh Shilimkar wrote: >> With !CONFIG_SUSPEND, mmc core layer throws below build warnings. >> >> drivers/mmc/core/bus.c:125: warning: 'mmc_bus_suspend' defined but not used >> drivers/mmc/core/bus.c:136: warning: