mmc: vt8500: Add support for vt8500 sd host controller

2012-11-08 Thread Tony Prisk
Hi Chris, I posted a patch to add support for this host controller a few weeks ago, and resent it a few weeks after that. Other than some minor code fixup requests (which I've changed), I haven't heard a peep from anyone. Patch at: https://patchwork.kernel.org/patch/1654541/ Regards Tony Prisk

Re: [PATCH v2] mmc: fix async request mechanism for sequential read scenarios

2012-11-08 Thread Jaehoon Chung
Hi Maya, Thank you for reply. I will check the patch v1 and share the result. Best Regards, Jaehoon Chung On 11/08/2012 09:51 PM, me...@codeaurora.org wrote: > Hi Jaehoon, > > While sending patch V2 the wrong version was sent, that doen't include the > lock. > This causes the crash that you hav

Re: [PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Jaehoon Chung
Great..Thanks Arnd and Chris. Best Regards, Jaehoon Chung On 11/08/2012 11:35 PM, Chris Ball wrote: > Hi Arnd, > > On Thu, Nov 08 2012, Arnd Bergmann wrote: >> The patch "dw_mmc: fix multiple drv_data NULL dereferences" has >> unfortunately clashed with my "mmc: dw_mmc: constify >> dw_mci_idmac_o

Re: [PATCH v2] mmc: sdhci: fix incorrect command used in tuning

2012-11-08 Thread Chris Ball
Hi Aaron, On Mon, Nov 05 2012, Chris Ball wrote: > On Tue, Jul 03 2012, Aaron Lu wrote: >> */ >> if ((host->flags & SDHCI_NEEDS_RETUNING) && >> !(present_state & (SDHCI_DOING_WRITE | SDHCI_DOING_READ))) { >> +/* eMMC uses cmd21 while

Re: UHS-I voltage switching on OLPC XO-1.75

2012-11-08 Thread Philip Rakity
On Nov 8, 2012, at 7:03 PM, Philip Rakity wrote: > Don't know enough about the device tree to help. Originally I suggested a > quirk simular to what you are suggesting but it was felt to be too specific > since the bits in caps2 achieve the same effect. Maybe your board specific > code can

Re: UHS-I voltage switching on OLPC XO-1.75

2012-11-08 Thread Daniel Drake
On Thu, Nov 8, 2012 at 1:03 PM, Philip Rakity wrote: > Don't know enough about the device tree to help. Originally I suggested a > quirk simular to what you are suggesting but it was felt to be too specific > since the bits in caps2 achieve the same effect. Maybe your board specific > code can c

Re: UHS-I voltage switching on OLPC XO-1.75

2012-11-08 Thread Daniel Drake
On Thu, Nov 8, 2012 at 12:48 PM, Philip Rakity wrote: > This is already there. Use broken caps and in the board code clear out the > nits in caps2. There is no board code; we're working with device tree. So I'm still not exactly clear on the best way to work this. Maybe something like this: "sd

Re: UHS-I voltage switching on OLPC XO-1.75

2012-11-08 Thread Daniel Drake
On Fri, Nov 2, 2012 at 8:35 AM, Johan Rudholm wrote: > An initial question, would it be possible to solve this by disabling > the UHS support in the host cap, or through a quirk? Maybe this kind > of solution is not applicable in this scenario? I wonder this because > I guess it will be very hard

[PATCH 2/2] mmc: sdhci-spear: Don't call clk_{un}prepare() in suspend resume

2012-11-08 Thread Viresh Kumar
clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them ones in probe/remove. Signed-off-by: Viresh Kumar --- drivers/mmc/host/sdhci-spear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

[PATCH 1/2] mmc: sdhci-spear: Initialize sdhci clk to 50 MHz

2012-11-08 Thread Viresh Kumar
From: Vipul Kumar Samar SPEAr sdhci driver expects the clock to be set to 50 MHz for proper functioning. This patch sets clk to 50 MHz in probe. Signed-off-by: Vipul Kumar Samar Signed-off-by: Viresh Kumar --- drivers/mmc/host/sdhci-spear.c | 5 + 1 file changed, 5 insertions(+) diff --g

Re: [PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Chris Ball
Hi Arnd, On Thu, Nov 08 2012, Arnd Bergmann wrote: > The patch "dw_mmc: fix multiple drv_data NULL dereferences" has > unfortunately clashed with my "mmc: dw_mmc: constify > dw_mci_idmac_ops in exynos back-end" patch, causing new warnings > to appear. > > This should hopefully fix the issue for go

[PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Arnd Bergmann
The patch "dw_mmc: fix multiple drv_data NULL dereferences" has unfortunately clashed with my "mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end" patch, causing new warnings to appear. This should hopefully fix the issue for good. Signed-off-by: Arnd Bergmann --- On Monday 29 October 201

Re: [PATCH v7 0/3] Add modules to support realtek PCIE card reader

2012-11-08 Thread gre...@linuxfoundation.org
On Thu, Nov 08, 2012 at 01:30:11PM +0800, wwang wrote: > 于 2012年11月08日 12:01, Alex Dubov 写道: > >Hi, > >>Do you have any comment on the MEMSTICK part in this v7 patchset? Can > >>you help to merge the patch to the kernel tree? > > > >I'm afraid that presently I don't have much time to look at the me

[PATCH v2 06/26] mmc: block: add panic write support

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Define panic_write_operations for mmc block devices. Also define host mmc panic ops for controling panic dumping. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/card/Kconfig | 11 ++ drivers/mmc/card/block.c | 257 ++

[PATCH v2 07/26] mmc: panic write: bypass host claiming

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter We don't want to claim/release host during a panic dump. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 06c42cf..db

[PATCH v2 08/26] mmc: panic write: bypass request completion

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index dbe5332..6b2377a 100644 --- a/drivers/mmc/core/core.c ++

[PATCH v2 04/26] blkoops: add a block device oops / panic logger

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter blkoops is a pstore back end to write panic / oops logs to a block device. It is initially intended for use with eMMC as an alternative to using a crash kernel. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- Documentation/blockdev/00-INDEX|2 + Docume

[PATCH v2 05/26] block: add panic write

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Add a small interface to allow block devices to attempt to write during an oops or panic. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/block/Kconfig |3 ++ include/linux/blkdev.h | 77 include/

[PATCH v2 03/26] pstore: add flush

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Let the back end know when writing has finished by adding a flush method. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- fs/pstore/platform.c |3 +++ include/linux/pstore.h |1 + 2 files changed, 4 insertions(+) diff --git a/fs/pstore/platform.c b/

[PATCH v2 01/26] pstore: allow for big files

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter pstore reads all files into memory at mount time. To allow for back ends that will store arbitrarily large files, enhance pstore also to be able to read from the back end as needed. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/acpi/apei/erst.c | 1

[PATCH v2 02/26] pstore: add flags

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Let the back end tweak pstore behaviour. Flags added are: PSTORE_NO_HEADINGS Omit pstore heading lines from dumped data PSTORE_MAX_KMSG_BYTES Default kmsg_bytes to ULONG_MAX Signed-off-by: Adrian Hunter Signed-off-by: Irin

[PATCH v2 09/26] mmc: panic write: suppress host not claimed warnings

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c | 13 +++-- drivers/mmc/core/mmc.c |4 ++-- drivers/mmc/core/sd.c |4 ++-- drivers/mmc/core/sdio.c |4 ++-- drivers/mmc/core/sdio_irq.c |4 ++--

[PATCH v2 10/26] mmc: panic write: do not msleep

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |6 +++--- drivers/mmc/core/core.h |6 -- drivers/mmc/core/mmc_ops.c | 10 +- drivers/mmc/core/sd_ops.c |2 +- drivers/mmc/core/sdio_ops.c |2 +- 5

[PATCH v2 12/26] mmc: panic write: bypass regulators

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index f7552af..d3caa7e 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/cor

[PATCH v2 15/26] mmc: sdhci: panic write: bypass spin lock

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 119 ++ drivers/mmc/host/sdhci.h | 24 ++ 2 files changed, 101 insertions(+), 42 deletions(-) diff --git a/drivers/mmc/host/sdhci.

[PATCH v2 18/26] mmc: sdhci: panic write: no timeout timer

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ff72e98..3653494 100644 --- a/drivers/mmc/host/sdhci.

[PATCH v2 20/26] mmc: sdhci: panic write: no tuning

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index fcedcec..e096526 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mm

[PATCH v2 19/26] mmc: sdhci: panic write: no runtime pm

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 3653494..fcedcec 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/

[PATCH v2 17/26] mmc: sdhci: panic write: call tasklets inline

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter When in panic task, we need to schedule other tasklets than normally. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/h

[PATCH v2 16/26] mmc: sdhci: panic write: no sleeping

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1ed78f0..827e34f 100644 --- a/dr

[PATCH v2 13/26] mmc: panic write: trap non panic tasks

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter If in panic, wait for task to come into context. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c | 10 +- drivers/mmc/core/host.c |2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.

[PATCH v2 21/26] mmc: sdhci: panic write: poll interrupts

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter We really don't want to use interrupts while doing a panic dump, so implement polling. The mmc panic begin/end ops have also been added for sdhci. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 33

[PATCH v2 22/26] mmc: sdhci: panic write: no dma mapping

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Implement simple dma ops to avoid usage dma mapping in panic mode. Init & cleanup pave the way for the dma ops implemented through pre and post functions. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 158

[PATCH v2 25/26] mmc: sdhci: panic write: trap nonpanic tasks

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 47 + include/linux/mmc/sdhci.h |1 + 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/driver

[PATCH v2 26/26] mmc: sdhci-pci: add panic write support

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci-pci.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 4bb74b0..bee9a45 100644 --- a/drivers/mmc/host/sdhci-pci.c

[PATCH v2 24/26] mmc: sdhci: panic write: abort request in progress

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 496adc8..9a24417 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/m

[PATCH v2 23/26] mmc: sdhci: panic write: resume suspended host

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Resume host when entering panic mode. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ab3f5

[PATCH v2 14/26] mmc: panic write: bypass bus ref locking

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter We want to avoid it while panic dumping. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 4fd7061..3daec19 100644 -

[PATCH v2 11/26] mmc: panic write: bypass clock gating

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |5 + drivers/mmc/core/host.c |9 + 2 files changed, 14 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 204a9bd..f7552af 100644 --- a

[PATCH v2 00/26] pstore, mmc: add mmc as backend for pstore

2012-11-08 Thread dragos . tatulea
From: Dragos Tatulea These patches enable using the mmc card to store panic information. They include changes for pstore and mmc: - add block device backend for pstore - add logic in mmc for writing in panic mode A mmc host driver must implement mmc_panic_ops. This patchset contains an implem

Re: [PATCH v2] mmc: fix async request mechanism for sequential read scenarios

2012-11-08 Thread merez
Hi Jaehoon, While sending patch V2 the wrong version was sent, that doen't include the lock. This causes the crash that you have seen. Konstantin is currently at the Linux Embedded Conference and would be able to send the new patch only early next week. Until then you can use patch V1 to check the

Re: [PATCH v7 0/3] Add modules to support realtek PCIE card reade

2012-11-08 Thread Arnd Bergmann
On Thursday 08 November 2012, wwang wrote: > > 于 2012年11月08日 12:01, Alex Dubov 写道: > > Hi, > >> Do you have any comment on the MEMSTICK part in this v7 patchset? Can > >> you help to merge the patch to the kernel tree? > > > > I'm afraid that presently I don't have much time to look at the memstic

Re: [mmc:mmc-next 17/28] sdhci-pltfm.c:(.text+0x80): multiple definition of `sdhci_runtime_pm_get'

2012-11-08 Thread Chris Ball
Hi, On Thu, Nov 08 2012, Fengguang Wu wrote: >> (Wu, are you sure that this is the correct config? It's i386 without >> MMC_SDHCI_S3C=y, and MMC_SDHCI_S3C depends on PLAT_SAMSUNG/ARM.) > > Sorry I don't understand that. MMC_SDHCI_S3C seems to not matter at all? Oops, sorry about that -- you're r

Re: [mmc:mmc-next 17/28] sdhci-pltfm.c:(.text+0x80): multiple definition of `sdhci_runtime_pm_get'

2012-11-08 Thread Fengguang Wu
On Wed, Nov 07, 2012 at 03:43:05PM -0500, Chris Ball wrote: > Hi, > > On Wed, Nov 07 2012, kbuild test robot wrote: > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git mmc-next > > head: a6a567a4c25762e36228d2d0c8c1859085132e15 > > commit: 90ba86ed414e8ab4d84fe3342f10948c607efa

Re: [PATCH v2] mmc: fix async request mechanism for sequential read scenarios

2012-11-08 Thread Jaehoon Chung
Hi, I tested with this patch. But i got some problem. So i want to get your opinion. I used eMMC4.5 card, and using ddr mode, dw-mmc controller. Also use the post/pre-request() in controller. Then i got this message every time. [7.735520] mmc0: new request while areq = eda3046c What's wrong

Re: [PATCH v7 0/3] Add modules to support realtek PCIE card reader

2012-11-08 Thread Samuel Ortiz
Hi Wei, On Mon, Oct 29, 2012 at 01:49:28PM +0800, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > Support for Realtek PCI-Express driver-based card readers including rts5209, > rts5229 and rtl8411. All 3 patches applied now, thanks a lot. I also fixed the Kconfig entry where you forgot to se

Re: [PATCH 4/5] mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register

2012-11-08 Thread Venkatraman S
On Wed, Nov 7, 2012 at 6:54 PM, Balaji T K wrote: > On Tuesday 06 November 2012 10:22 PM, Venkatraman S wrote: >> >> Define the most frequently used bitmasks of the Interrupt Enable / >> Interrupt Status register with consistent naming ( with _EN suffix). >> >> Use meaningful concatenation of bitf

[PATCH v3 4/4] mmc: dw-mmc: remove complier warning

2012-11-08 Thread Jaehoon Chung
drivers/mmc/host/dw_mmc.c: In function 'dw_mci_prepare_command': drivers/mmc/host/dw_mmc.c:256:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] drivers/mmc/host/dw_mmc.c: In function 'dw_mci_set_ios': drivers/mmc/host/dw_mmc.c:805:37: warning: in

[PATCH v3 3/4] mmc: dw-mmc: check whether card is busy or not, before disabling clock

2012-11-08 Thread Jaehoon Chung
Before disabling clock, need to check whether card is busy on not. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc.c | 53 +++- drivers/mmc/host/dw_mmc.h |1 + 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/drivers/mmc/host

[PATCH v3 2/4] mmc: dw-mmc: remove the duplicated code

2012-11-08 Thread Jaehoon Chung
ctype is used 1-bit buswidth mode by default. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park --- drivers/mmc/host/dw_mmc.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a1369aa..0a80b5c 100

[PATCH v3 1/4] mmc: dw-mmc: relocate the position called dw_mci_setup_bus()

2012-11-08 Thread Jaehoon Chung
To ensure the stable clock need to enable before set the DW_MMC_CARD_NEED_INIT flag. If set DW_MMC_CARD_NEED_INIT flag, wait for 80-clock before first command after power-up. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park Acked-by: Seungwon Jeon --- Changelog v2-v3: - Modif