[PATCH v2] dmaengine: shdma: fix a build failure on platforms with no DMA support

2013-05-30 Thread Guennadi Liakhovetski
On platforms with no support for the shdma dmaengine driver build is currently failing with drivers/built-in.o: In function `sh_mobile_sdhi_probe': drivers/mmc/host/sh_mobile_sdhi.c:170: undefined reference to`shdma_chan_filter' Fix the breakage by defining shdma_chan_filter to NULL in such confi

Re: [PATCH] dmaengine: shdma: fix a build failure on platforms with no DMA support

2013-05-30 Thread Simon Horman
On Thu, May 30, 2013 at 11:23:13AM -0500, Dan Murphy wrote: > On 05/30/2013 11:02 AM, Guennadi Liakhovetski wrote: > > On platforms with no support for the shdma dmaengine driver build is > > currently failing with > > > > drivers/built-in.o: In function `sh_mobile_sdhi_probe': > > drivers/mmc/host

[PATCH 8/8] support setting the OTP enhanced user area parameters

2013-05-30 Thread Ben Gardiner
Signed-off-by: Ben Gardiner --- mmc.c |5 ++ mmc.h |3 + mmc_cmds.c | 170 +++- mmc_cmds.h |1 + 4 files changed, 177 insertions(+), 2 deletions(-) diff --git a/mmc.c b/mmc.c index c22ce9e..30e3ce0 100644 --- a/mmc.c

[PATCH 6/8] report if card is block-addressed and effect on ENH_START_ADDR

2013-05-30 Thread Ben Gardiner
Signed-off-by: Ben Gardiner --- mmc.h |4 mmc_cmds.c | 28 +--- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/mmc.h b/mmc.h index fa46c3a..bedde31 100644 --- a/mmc.h +++ b/mmc.h @@ -35,6 +35,10 @@ #define EXT_CSD_HPI_FEATURE50

[PATCH 7/8] print KiB sizes for some fields

2013-05-30 Thread Ben Gardiner
Signed-off-by: Ben Gardiner --- mmc.h |3 +++ mmc_cmds.c | 40 ++-- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/mmc.h b/mmc.h index bedde31..5385e0e 100644 --- a/mmc.h +++ b/mmc.h @@ -48,6 +48,9 @@ #define EXT_CSD_RST_N_FUNCTION

[PATCH 4/8] Support SEND_STATUS command

2013-05-30 Thread Ben Gardiner
mmc status get Signed-off-by: Ben Gardiner --- mmc.c |5 + mmc.h |2 ++ mmc_cmds.c | 47 +++ mmc_cmds.h |1 + 4 files changed, 55 insertions(+), 0 deletions(-) diff --git a/mmc.c b/mmc.c index a2de863..c22ce9e 100644 --- a

[PATCH 5/8] fix printing ENH_START_ADDR

2013-05-30 Thread Ben Gardiner
The enhanced user area start field is 4 bytes long according to the eMMC 4.41 spec. Signed-off-by: Ben Gardiner --- mmc.h |4 mmc_cmds.c |8 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mmc.h b/mmc.h index 3577f42..fa46c3a 100644 --- a/mmc.h +++ b/mm

[PATCH 3/8] extract definitions for EXT_CSD register PARTITION_SETTING_COMPLETED and pretty-print

2013-05-30 Thread Ben Gardiner
Signed-off-by: Ben Gardiner --- mmc.h |1 + mmc_cmds.c |8 +++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/mmc.h b/mmc.h index 47ef8ea..3420d7b 100644 --- a/mmc.h +++ b/mmc.h @@ -41,6 +41,7 @@ #define EXT_CSD_BKOPS_EN 163 /* R/W */ #define

[PATCH 2/8] extract definitions for EXT_CSD register EXT_CSD_PARTITIONING_SUPPORT

2013-05-30 Thread Ben Gardiner
Signed-off-by: Ben Gardiner --- mmc.h |3 +++ mmc_cmds.c |6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mmc.h b/mmc.h index c863751..47ef8ea 100644 --- a/mmc.h +++ b/mmc.h @@ -40,6 +40,7 @@ #define EXT_CSD_WR_REL_PARAM 166 #define EXT_CSD_BKOPS_

[PATCH 1/8] allow environment and command-line supplied make vars

2013-05-30 Thread Ben Gardiner
Most useful when cross-compiling. Signed-off-by: Ben Gardiner --- Makefile | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f03f131..ae846e2 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ -CC = gcc +CC ?= gcc AM_CFLAGS = -D_FILE

[PATCH 0/8] cross-compiling, SEND_STATUS, pretty-printing and enhanced user area

2013-05-30 Thread Ben Gardiner
This series builds on top of f74dfe23cd00894aa9f235374468e05acb793e17. It introduces: * some Makefile changes to make cross-compiling easier * SEND_STATUS * 'pretty'-printing sizes of some fields in KiB * setting the OTP enhanced user area parameters available also https://github.com/BenGard

Re: [PATCH] dmaengine: shdma: fix a build failure on platforms with no DMA support

2013-05-30 Thread Dan Murphy
On 05/30/2013 11:02 AM, Guennadi Liakhovetski wrote: > On platforms with no support for the shdma dmaengine driver build is > currently failing with > > drivers/built-in.o: In function `sh_mobile_sdhi_probe': > drivers/mmc/host/sh_mobile_sdhi.c:170: undefined reference > to`shdma_chan_filter' > >

[PATCH] dmaengine: shdma: fix a build failure on platforms with no DMA support

2013-05-30 Thread Guennadi Liakhovetski
On platforms with no support for the shdma dmaengine driver build is currently failing with drivers/built-in.o: In function `sh_mobile_sdhi_probe': drivers/mmc/host/sh_mobile_sdhi.c:170: undefined reference to`shdma_chan_filter' Fix the breakage by defining shdma_chan_filter to NULL in such confi

[PATCH 4/4] mmc: core: Initiate suspend|resume from mmc bus instead of mmc host

2013-05-30 Thread Ulf Hansson
From: Ulf Hansson The host should be responsible to suspend|resume the host and not the card. This patch changes this behaviour, by moving the responsiblity to the mmc bus instead which already holds the card device. The exported functions mmc_suspend|resume_host are now to be considered as depc

[PATCH 3/4] mmc: core: Push common suspend|resume code into each bus_ops

2013-05-30 Thread Ulf Hansson
From: Ulf Hansson By moving code from the mmc_suspend|resume_host down into each .suspend|resume bus_ops callback, we get a more flexible solution. Some nice side effects are that we get a better understanding of each bus_ops suspend|resume sequence and the common code don't have to take care of

[PATCH 2/4] mmc: core: Validate suspend prerequisites for SDIO at SUSPEND_PREPARE

2013-05-30 Thread Ulf Hansson
From: Ulf Hansson This patch moves the validation for all the suspend prerequisites to be done at SUSPEND_PREPARE notification. Previously in the SDIO case parts of the validation was done from mmc_suspend_host. This patch invents a new pre_suspend bus_ops callback and implements it for SDIO. Re

[PATCH 0/4] mmc: core: Let the mmc_bus handle suspend|resume sequence

2013-05-30 Thread Ulf Hansson
From: Ulf Hansson The MMC/SD/SDIO cards are registered on the mmc_bus and should from a power management perspective be controlled from there. As of today each and every host driver needs to issue mmc_suspend|resume_host from their respective .suspend|resume methods, which seems like an unnecessa

[PATCH 1/4] mmc: core: Remove unnecessary check for the remove callback

2013-05-30 Thread Ulf Hansson
From: Ulf Hansson For every bus_ops type the .remove callback always exist, thus there are no need to check the existence of it, before we decide to call it. Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a