Re: [PATCH 0/6] mmc: sdhci-esdhci-imx: fix cd/wp regression

2015-07-06 Thread Johan Derycke
Dong Aisheng freescale.com> writes: > > Commit 8d86e4f mmc: sdhci-esdhc-imx: Call mmc_of_parse() > seriously break the sd card detect/write protect function > of most IMX platforms since a lot of GPIO flags of cd-gpios/wp-gpios > are wrongly set in devicetree. ... Hi,

Re: [PATCH v2 4/7] USB: mos7720: rename DCR

2015-06-23 Thread Johan Hovold
rial/mos7720.c > @@ -135,7 +135,7 @@ enum mos_regs { > DLM, > DPR, /* parallel port regs */ > DSR, > - DCR, > + parport_DCR, > ECR, > SP1_REG, /* device control regs */ > SP2_REG, /* serial port 2 (7720 only)

Re: [PATCH V2 15/15] mmc: core: Don't print reset warning if reset is not supported

2015-02-09 Thread Johan Rudholm
assumed the original author wants to see the message whenever reset is > attempted, which is OK by me because it is on the recovery path i.e. > hopefully rare. The EOPNOTSUPP case is consistent with the code further up > which returns EOPNOTSUPP when there is no ->reset() callback. S

Re: [PATCH v7 0/3] mmc: core: hw_reset changes

2015-01-13 Thread Johan Rudholm
2015-01-13 9:19 GMT+01:00 Ulf Hansson : > On 12 January 2015 at 16:11, Ulf Hansson wrote: >> On 12 January 2015 at 15:38, Johan Rudholm wrote: >>> Make the mmc_hw_reset routine more generic, by putting the (e)MMC- >>> specific stuff in the new bus_ops->reset in m

[PATCH v7 2/3] mmc: core: refactor the hw_reset routines

2015-01-12 Thread Johan Rudholm
Move the (e)MMC specific hw_reset code from core.c into mmc.c. Call the code from the new bus_ops member "reset". This also allows for adding a SD card specific reset procedure. Signed-off-by: Johan Rudholm --- drivers/mmc/core/cor

[PATCH v7 0/3] mmc: core: hw_reset changes

2015-01-12 Thread Johan Rudholm
s member hw_reset instead of power_reset - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset instead of mmc_power_up - Keep "mmc_hw_reset" naming Johan Rudholm (3): mmc: core: always check status after reset mmc: core: refactor the hw_reset routines mmc: sd: add res

[PATCH v7 3/3] mmc: sd: add reset bus_ops callback

2015-01-12 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the reset bus_ops. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/core

Re: [PATCH v6 1/2] mmc: core: refactor the hw_reset routines

2015-01-12 Thread Johan Rudholm
2015-01-12 13:55 GMT+01:00 Ulf Hansson : > On 9 January 2015 at 12:08, Johan Rudholm wrote: >> Move the (e)MMC specific hw_reset code from core.c into mmc.c Call the >> code from the new bus_ops member hw_reset. This also allows for adding >> a SD card specific reset procedur

[PATCH v7 1/3] mmc: core: always check status after reset

2015-01-12 Thread Johan Rudholm
Always check if the card is alive after a successful reset. This allows us to remove mmc_hw_reset_check(), leaving mmc_hw_reset() as the only card reset interface. Signed-off-by: Johan Rudholm --- drivers/mmc/card/mmc_test.c | 18 +++--- drivers/mmc/core/core.c | 24

[PATCH v6 1/2] mmc: core: refactor the hw_reset routines

2015-01-09 Thread Johan Rudholm
mmc_hw_reset() as the only card reset interface. This also informs any callers, for instance the block layer, if a reset was sucessful or not. Signed-off-by: Johan Rudholm --- drivers/mmc/card/mmc_test.c | 18 --- drivers/mmc/core/core.c | 70

[PATCH v6 2/2] mmc: sd: add hw_reset callback

2015-01-09 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the hw_reset bus_ops. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/mmc

[PATCH v6 0/2] mmc: core: hw_reset changes

2015-01-09 Thread Johan Rudholm
c_can_reset - Always set bus_mode = MMC_BUSMODE_PUSHPULL in mmc_set_initial_state() v2: - Call the new bus_ops member hw_reset instead of power_reset - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset instead of mmc_power_up - Keep "mmc_hw_reset" naming Johan Rud

Re: [PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops

2015-01-09 Thread Johan Rudholm
Hi Ulf, 2014-12-01 11:50 GMT+01:00 Ulf Hansson : > On 28 November 2014 at 16:54, Johan Rudholm wrote: >> 2014-11-27 10:50 GMT+01:00 Ulf Hansson : >>> On 27 November 2014 at 10:05, Johan Rudholm wrote: >>>> Hi Ulf, >>>> >>>> 2014-11-25 14:4

[PATCH v5 1/2] mmc: core: refactor the hw_reset routines

2014-11-28 Thread Johan Rudholm
Split the (e)MMC specific hw_reset code from core.c into mmc.c and mmc_test.c. Call the code from the new bus_ops member hw_reset. Export mmc_set_initial_state and mmc_send_status so that they may be called from mmc_test. Signed-off-by: Johan Rudholm --- drivers/mmc/card/mmc_test.c | 24

[PATCH v5 2/2] mmc: core: let hw_reset default to power_cycle

2014-11-28 Thread Johan Rudholm
If bus_ops->hw_reset is missing, try to power cycle the card instead. This will allow SD cards to be power cycled and re-initialized as well. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c |

[PATCH v5 0/2] mmc: core: hw_reset changes

2014-11-28 Thread Johan Rudholm
Always set bus_mode = MMC_BUSMODE_PUSHPULL in mmc_set_initial_state() v2: - Call the new bus_ops member hw_reset instead of power_reset - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset instead of mmc_power_up - Keep "mmc_hw_reset" naming Johan Rudholm (2): mmc

Re: [PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops

2014-11-28 Thread Johan Rudholm
2014-11-27 10:50 GMT+01:00 Ulf Hansson : > On 27 November 2014 at 10:05, Johan Rudholm wrote: >> Hi Ulf, >> >> 2014-11-25 14:48 GMT+01:00 Ulf Hansson : >>> On 24 November 2014 at 12:06, Johan Rudholm wrote: >>>> Move the (e)MMC specific hw_reset code fr

Re: [PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops

2014-11-27 Thread Johan Rudholm
Hi Ulf, 2014-11-25 14:48 GMT+01:00 Ulf Hansson : > On 24 November 2014 at 12:06, Johan Rudholm wrote: >> Move the (e)MMC specific hw_reset code from core.c into mmc.c and call >> it from the new bus_ops member hw_reset. This also lets us add code >> for resetting SD cards

[PATCH v4 2/2] mmc: sd: add hw_reset callback

2014-11-24 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the hw_reset bus_ops. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers

[PATCH v4 1/2] mmc: core: turn hw_reset into a bus_ops

2014-11-24 Thread Johan Rudholm
Move the (e)MMC specific hw_reset code from core.c into mmc.c and call it from the new bus_ops member hw_reset. This also lets us add code for resetting SD cards as well. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 56 +++--- drivers/mmc

[PATCH v4 0/2] mmc: core: hw_reset changes

2014-11-24 Thread Johan Rudholm
up - Keep "mmc_hw_reset" naming Johan Rudholm (2): mmc: core: turn hw_reset into a bus_ops mmc: sd: add hw_reset callback drivers/mmc/core/core.c | 56 +++--- drivers/mmc/core/core.h |5 drivers/mm

Re: [PATCH 4/4] mmc: core: hold SD Clock before CMD11 during Signal

2014-11-20 Thread Johan Rudholm
MD11, the additional gating/un-gating > SD clock between (2) and (3) can be prevented and thus no failure at (11). > It has been verified with many UHS-1 SD cards on mb86s7x platforms and > works correctly. > > Signed-off-by: Vincent Yang Reviewed-by: Johan Rudholm BR, Johan -- To uns

[PATCH v3 3/3] mmc: sd: add hw_reset callback

2014-11-06 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the hw_reset bus_ops. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers

[PATCH v3 2/3] mmc: core: turn hw_reset into a bus_ops

2014-11-06 Thread Johan Rudholm
Move the (e)MMC specific hw_reset code from core.c into mmc.c and call it from the new bus_ops member hw_reset. This also lets us add code for resetting SD cards as well. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 56 +++--- drivers/mmc

[PATCH v3 0/3] mmc: core: hw_reset changes

2014-11-06 Thread Johan Rudholm
ODE_PUSHPULL in mmc_set_initial_state() v2: - Call the new bus_ops member hw_reset instead of power_reset - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset instead of mmc_power_up - Keep "mmc_hw_reset" naming Johan Rudholm (3): mmc: core: consistent handling of initial

[PATCH v3 1/3] mmc: core: consistent handling of initial values

2014-11-06 Thread Johan Rudholm
be a problem since the device will be powered off anyway. mmc_do_hw_reset(): Always set bus_mode = MMC_BUSMODE_PUSHPULL, as required by SD/SDIO cards. MMC cards require MMC_BUSMODE_OPENDRAIN, but this is taken care of by mmc_init_card() and mmc_attach_mmc(). Signed-off-by: Johan Ru

Re: [PATCH v2 2/4] mmc: core: group default initial state

2014-11-06 Thread Johan Rudholm
he SD spec doesn't have open drain mode but do support SPI mode. That > tells me that we should keep using MMC_BUSMODE_PUSHPULL for SPI mode. Thank you for explaining this. So I think we should be OK by always choosing MMC_BUSMODE_PUSHPULL, because for MMC cards mmc_init_card is called from

Re: [PATCH v2 3/4] mmc: core: turn hw_reset into a bus_ops

2014-11-05 Thread Johan Rudholm
Hi Adrian, 2014-11-05 13:10 GMT+01:00 Adrian Hunter : > On 04/11/14 17:07, Johan Rudholm wrote: >> Move the (e)MMC specific hw_reset code from core.c into mmc.c and call >> it from the new bus_ops member hw_reset. This also lets us add code >> for reseting SD cards as well

Re: [PATCH v2 2/4] mmc: core: group default initial state

2014-11-05 Thread Johan Rudholm
Hi Ulf, 2014-11-05 11:13 GMT+01:00 Ulf Hansson : > On 4 November 2014 16:07, Johan Rudholm wrote: >> mmc_do_hw_reset, mmc_power_up and mmc_power_off all set the same >> group of initial values, simplify by sticking them together. > > That's not entirely true. This patc

[PATCH v2 2/4] mmc: core: group default initial state

2014-11-04 Thread Johan Rudholm
mmc_do_hw_reset, mmc_power_up and mmc_power_off all set the same group of initial values, simplify by sticking them together. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 49 +++ drivers/mmc/core/core.h |1 + 2 files changed, 25

[PATCH v2 3/4] mmc: core: turn hw_reset into a bus_ops

2014-11-04 Thread Johan Rudholm
Move the (e)MMC specific hw_reset code from core.c into mmc.c and call it from the new bus_ops member hw_reset. This also lets us add code for reseting SD cards as well. Signed-off-by: Johan Rudholm --- drivers/mmc/card/mmc_test.c |3 -- drivers/mmc/core/core.c | 48

[PATCH v2 1/4] mmc: core: use mmc_send_status to check hw_reset

2014-11-04 Thread Johan Rudholm
Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7dc0c85..5d215ee 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2265,15

[PATCH v2 0/4] mmc: core: hw_reset changes

2014-11-04 Thread Johan Rudholm
de with an eMMC? v2: - Call the new bus_ops member hw_reset instead of power_reset - Create mmc_set_initial_state and call it from mmc_mmc_hw_reset instead of mmc_power_up - Keep "mmc_hw_reset" naming Johan Rudholm (4): mmc: core: use mmc_send_status to check hw_reset mmc:

[PATCH v2 4/4] mmc: sd: add hw_reset callback

2014-11-04 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the hw_reset bus_ops. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers

Re: [PATCH 3/4] mmc: core: make hw_reset generic

2014-11-03 Thread Johan Rudholm
2014-11-03 10:20 GMT+01:00 Adrian Hunter : > On 24/10/14 15:46, Johan Rudholm wrote: >> Move the (e)MMC specific hw_reset code from core.c into mmc.c and call >> it from the new bus_ops member power_reset. This also lets us add code > > power_reset is not a good nam

Re: [PATCH 2/4] mmc: core: use mmc_power_up in hw_reset

2014-11-03 Thread Johan Rudholm
2014-11-03 10:21 GMT+01:00 Adrian Hunter : > On 24/10/14 15:46, Johan Rudholm wrote: >> The steps performed in mmc_do_hw_reset for eMMC:s after the hardware >> reset are very similar to those performed by mmc_power_up, so do a call > > They perform different functions. mmc_po

Re: [PATCH 0/4] mmc: core: hw_reset changes

2014-11-03 Thread Johan Rudholm
Hi all, any comments on this patch set? //Johan 2014-10-24 14:46 GMT+02:00 Johan Rudholm : > Make the mmc_hw_reset routines more generic, so we can easily add a > power cycle of SD cards as well. Also simplify the (e)MMC specific > parts of the reset code. > > As I don't

[PATCH 4/4] mmc: sd: add power_reset callback

2014-10-24 Thread Johan Rudholm
Enable power cycle and re-initialization of SD cards via the mmc_reset function. Power cycling a buggy SD card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a

[PATCH 0/4] mmc: core: hw_reset changes

2014-10-24 Thread Johan Rudholm
de with an eMMC? Johan Rudholm (4): mmc: core: use mmc_send_status to check hw_reset mmc: core: use mmc_power_up in hw_reset mmc: core: make hw_reset generic mmc: sd: add power_reset callback drivers/mmc/card/block.c|2 +- drivers/mmc/card/mmc_test.c |5 +-- drivers/mmc/c

[PATCH 2/4] mmc: core: use mmc_power_up in hw_reset

2014-10-24 Thread Johan Rudholm
The steps performed in mmc_do_hw_reset for eMMC:s after the hardware reset are very similar to those performed by mmc_power_up, so do a call to this function instead. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions

[PATCH 3/4] mmc: core: make hw_reset generic

2014-10-24 Thread Johan Rudholm
be something else than doing a hw_reset). Signed-off-by: Johan Rudholm --- drivers/mmc/card/block.c|2 +- drivers/mmc/card/mmc_test.c |5 +--- drivers/mmc/core/core.c | 58 +- drivers/mmc/core/core.h |4 +++ drivers/mmc/core/mmc.c

[PATCH 1/4] mmc: core: use mmc_send_status to check hw_reset

2014-10-24 Thread Johan Rudholm
Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7dc0c85..5d215ee 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2265,15

[PATCH] mmc: block: change stop errors to info

2014-09-17 Thread Johan Rudholm
Stop command errors are not fatal to the transfer since we make sure that the card returns to the transfer state and check the card status. Change an unnecessary error to an info. Signed-off-by: Johan Rudholm --- drivers/mmc/card/block.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

Re: [PATCH] mmc: core: make hw_reset power cycle SD-cards

2014-09-11 Thread Johan Rudholm
Hi Ulf, 2014-09-11 13:03 GMT+02:00 Ulf Hansson : > On 9 September 2014 16:21, Johan Rudholm wrote: >> SD-cards cannot be reset, but they can be power cycled. Power cycling >> a buggy SD-card sometimes helps it get back on track. > > Hi Johan, > > This feature ha

Re: SD-card endurance, wear and crappiness

2014-09-10 Thread Johan Rudholm
2014-09-09 11:11 GMT+02:00 Arnd Bergmann : > On Tuesday 09 September 2014 10:54:51 Johan Rudholm wrote: >> 2014-09-03 16:24 GMT+02:00 Johan Rudholm : >> > Hi all, >> > >> > as you know, NAND flash can be programmed a limited number of times >> > befor

[PATCH] mmc: core: make hw_reset power cycle SD-cards

2014-09-09 Thread Johan Rudholm
SD-cards cannot be reset, but they can be power cycled. Power cycling a buggy SD-card sometimes helps it get back on track. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/core/core.c b

Re: SD-card endurance, wear and crappiness

2014-09-09 Thread Johan Rudholm
Hi Ulf, Arnd, do you guys have any thoughts on this? Kind regards, Johan 2014-09-03 16:24 GMT+02:00 Johan Rudholm : > Hi all, > > as you know, NAND flash can be programmed a limited number of times > before it reaches end of life, the number of times varies with the > NAND

SD-card endurance, wear and crappiness

2014-09-03 Thread Johan Rudholm
t kinds of errors in the card status * Anything else? Perhaps it's not possible to detect worn out cards this way, but at least it could point out and warn about crappy cards? Any thoughts about this? Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux

[PATCH] mmc: sd: warn if card stays busy during init

2014-05-23 Thread Johan Rudholm
The initialization of some SD-cards fails because the card never leaves the busy state. Aid trouble shooting by indicating this in the kernel log. Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd_ops.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mmc

Re: Question for emmc ioctl sync issue

2014-05-23 Thread Johan Rudholm
d by other commands sent via the block driver or other ioctl calls. Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/7] driver core: prevent deferred probe with platform_driver_probe

2013-09-23 Thread Johan Hovold
On Mon, Sep 23, 2013 at 04:50:29PM +0200, Sascha Hauer wrote: > On Mon, Sep 23, 2013 at 04:27:25PM +0200, Johan Hovold wrote: > > Deferred probing cannot be used with platform_driver_probe as by the > > time probing is retried either the driver has been unregistered or its > &g

[PATCH 0/7] driver core: prevent deferred probe with platform_driver_probe

2013-09-23 Thread Johan Hovold
t91_cf and pxa25x_udc patches are completely untested. Johan Johan Hovold (7): driver core: prevent deferred probe with platform_driver_probe mmc: mvsdio: fix deferred probe from __init mtd: atmel_nand: fix deferred probe from __init pcmcia: at91_cf: fix deferred probe from __init usb: gadget:

[PATCH 5/7] usb: gadget: pxa25x_udc: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
ng Cc: Haojian Zhuang Cc: Felipe Balbi Signed-off-by: Johan Hovold --- drivers/usb/gadget/pxa25x_udc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index cc92074..0ac6064 100644 --- a/dri

[PATCH 6/7] usb: phy: gpio-vbus: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
return -EPROBE_DEFER if a gpio_request or regulator_get fails. Cc: Felipe Balbi Signed-off-by: Johan Hovold --- drivers/usb/phy/phy-gpio-vbus-usb.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb

[PATCH 1/7] driver core: prevent deferred probe with platform_driver_probe

2013-09-23 Thread Johan Hovold
currently return subsystem errors from probe and that these can include -EPROBE_DEFER (e.g. if a gpio request fails). Add a warning to platform_drv_probe that can be used to catch drivers that inadvertently request probe deferral while using platform_driver_probe. Signed-off-by: Johan Hovold

[PATCH 3/7] mtd: atmel_nand: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
Wu Signed-off-by: Johan Hovold --- drivers/mtd/nand/atmel_nand.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 060feea..bd1ce7d 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/na

[PATCH 4/7] pcmcia: at91_cf: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
IOL-VILLARD Cc: Nicolas Ferre Signed-off-by: Johan Hovold --- drivers/pcmcia/at91_cf.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c index b8f5acf..de24232 100644 --- a/drivers/pcmcia/at91_cf.c +++ b/drivers/p

[PATCH 2/7] mmc: mvsdio: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
Cc: Chris Ball Signed-off-by: Johan Hovold --- drivers/mmc/host/mvsdio.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 06c5b0b..deecee0 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvs

[PATCH 7/7] backlight: atmel-pwm-bl: fix deferred probe from __init

2013-09-23 Thread Johan Hovold
o Han Cc: Jean-Christophe Plagniol-Villard Signed-off-by: Johan Hovold --- drivers/video/backlight/atmel-pwm-bl.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/video/backlight/atmel-pwm-bl.c b/drivers/video/backlight/atmel-pwm-bl.c index 0393d82..f7447

Re: [PATCH 0/4] mmc: mmci: Add support for UHS cards

2013-05-15 Thread Johan Rudholm
to improve UHS card support > > drivers/mmc/host/mmci.c | 94 > +++ > drivers/mmc/host/mmci.h |4 ++ > 2 files changed, 90 insertions(+), 8 deletions(-) Looks good! Please add my Reviewed-by: Johan Rudholm to this patch set. Kind regards, Johan -- To unsubscribe fr

Re: [PATCH v2] mmc: core: Fix select power class after resume

2013-04-24 Thread Johan Rudholm
oks good to me! Please add my Reviewed-by: Johan Rudholm Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] mmc: core: Fix select power class after resume

2013-04-23 Thread Johan Rudholm
EXT_CSD_PWR_CL_DDR_52_360; > + pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? > + card->ext_csd.raw_pwr_cl_52_360 : > + card->ext_csd.raw_pwr_cl_52_360; I believe you should have "

Re: [PATCH] mmc: core: Only execute tuning for SDR50 and SDR104

2013-04-17 Thread Johan Rudholm
Hi, 2013/4/17 Fredrik Soderstedt : > Only execute tuning for sd and sdio devices that are using > SDR50 or SDR104. > > Make sure clock is hold during tuning for sdio devices. > > Signed-off-by: Fredrik Soderstedt Acked-by: Johan Rudholm //Johan -- To unsubscribe from this l

Re: [PATCH] mmc: block: fix the host's claim-release in special request

2013-03-14 Thread Johan Rudholm
t+0xac/0x1b4) > [] (__mmc_claim_host+0x0/0x1b4) from [] > (mmc_suspend+0x28/0x9c) > [] (mmc_suspend+0x0/0x9c) from [] > (mmc_suspend_host+0xb4/0x194) > ... > > Reported-by: Johan Rudholm > Signed-off-by: Seungwon Jeon Thank you for the quick response and fix! This fixes th

Trouble suspending with "mmc: queue: exclude asynchronous transfer for special request"

2013-03-13 Thread Johan Rudholm
d the amba-stuff, this is our power domain. Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] ARM: at91/avr32/atmel-mci: fix DMA-channel leak on module unload

2013-03-13 Thread Johan Hovold
is always enabled (if supported), but the DMA-channel is not released on module unload unless the DMA-config option is selected. Remove the no longer used CONFIG_MMC_ATMELMCI_DMA option completely. Cc: stable Signed-off-by: Johan Hovold --- arch/arm/configs/at91sam9g45_defconfig | 1 - arch/avr

Re: [PATCH v7 1/2] mmc: core: enhance card removal judgement for slow removal

2013-02-28 Thread Johan Rudholm
ase. >> +*/ >> + if (!ret && host->ops->get_cd && !host->ops->get_cd(host)) { >> + mmc_detect_change(host, msecs_to_jiffies(200)); >> + pr_debug("%s: card remove too slowly\n", >> +

Re: [PATCH v2] mmc: host: sdhci: Fix parameter of sdhci_do_start_signal_voltage_switch()

2013-02-14 Thread Johan Rudholm
by default] > > Use the previous type so that it matches the start_signal_voltage_switch() > definition from host.h. > > Signed-off-by: Fabio Estevam Reviewed-by: Johan Rudholm Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of

Re: [PATCH v6 0/5] mmc: core: Signal voltage switch procedure for UHS mode

2013-02-11 Thread Johan Rudholm
Hi Chris, 2013/2/11 Chris Ball : > Hi Johan, > > On Mon, Jan 28 2013, Johan Rudholm wrote: >> This patch series attempts to make the 1.8V signal voltage switch >> required for UHS mode work according to the SD specification. > > Thanks, pushed to mmc-next for 3.9. Co

[PATCH v6 4/5] mmc: core: Break out start_signal_voltage_switch

2013-01-28 Thread Johan Rudholm
: Johan Rudholm Acked-by: Ulf Hansson Tested-by: Wei WANG --- drivers/mmc/core/core.c | 35 +++ drivers/mmc/core/core.h |4 ++-- drivers/mmc/core/mmc.c |8 drivers/mmc/core/sd.c |2 +- drivers/mmc/core/sdio.c |3 +-- 5 files changed, 31

[PATCH v6 1/5] mmc: sd: Simplify by using mmc_host_uhs

2013-01-28 Thread Johan Rudholm
Signed-off-by: Johan Rudholm --- drivers/mmc/core/sd.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 74972c2..9373639 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -444,8 +444,7 @@ static void

[PATCH v6 3/5] mmc: core: Add card_busy to host_ops

2013-01-28 Thread Johan Rudholm
This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm Acked-by: Ulf Hansson Tested-by: Wei WANG --- include/linux/mmc/host.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux

[PATCH v6 5/5] mmc: core: Fixup signal voltage switch

2013-01-28 Thread Johan Rudholm
: Johan Rudholm Signed-off-by: Kevin Liu Signed-off-by: Ulf Hansson Tested-by: Wei WANG --- drivers/mmc/core/core.c | 83 +-- drivers/mmc/core/sd.c | 21 +--- drivers/mmc/core/sdio.c | 20 ++-- 3 files changed, 107 insertions

[PATCH v6 0/5] mmc: core: Signal voltage switch procedure for UHS mode

2013-01-28 Thread Johan Rudholm
dd retry-loop / power cycle in sdio.c - Fall back to 3.3 V if the switch repeatedly fails - Add an extra argument to the card_busy host_ops function, which can be used to signal polling use of the function Johan Rudholm (5): mmc: sd: Simplify by using mmc_host_uhs mmc: c

[PATCH v6 2/5] mmc: core: Add mmc_power_cycle

2013-01-28 Thread Johan Rudholm
Add mmc_power_cycle which can be used to power cycle for instance SD-cards. Signed-off-by: Johan Rudholm Acked-by: Ulf Hansson Tested-by: Wei WANG --- drivers/mmc/core/core.c |8 drivers/mmc/core/core.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core

Re: [PATCH v5 0/4] mmc: core: Signal voltage switch procedure for UHS mode

2013-01-09 Thread Johan Rudholm
Hi, 2013/1/8 Ulf Hansson : > On 8 January 2013 15:05, Johan Rudholm wrote: >> This patch series attempts to make the 1.8V signal voltage switch >> required for UHS mode work according to the SD specification. >> >> These patches have been tested with a couple of UH

[PATCH v5 0/4] mmc: core: Signal voltage switch procedure for UHS mode

2013-01-08 Thread Johan Rudholm
which can be used to signal polling use of the function Johan Rudholm (4): mmc: core: Add mmc_power_cycle mmc: core: Add card_busy to host_ops mmc: core: Break out start_signal_voltage_switch mmc: core: Fixup signal voltage switch drivers/mmc/core/core.c | 114 +++

[PATCH v5 4/4] mmc: core: Fixup signal voltage switch

2013-01-08 Thread Johan Rudholm
: Johan Rudholm Signed-off-by: Kevin Liu Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 83 +-- drivers/mmc/core/sd.c | 21 +--- drivers/mmc/core/sdio.c | 20 ++-- 3 files changed, 107 insertions(+), 17 deletions

[PATCH v5 1/4] mmc: core: Add mmc_power_cycle

2013-01-08 Thread Johan Rudholm
Add mmc_power_cycle which can be used to power cycle for instance SD-cards. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c |8 drivers/mmc/core/core.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768

[PATCH v5 3/4] mmc: core: Break out start_signal_voltage_switch

2013-01-08 Thread Johan Rudholm
: Johan Rudholm --- drivers/mmc/core/core.c | 35 +++ drivers/mmc/core/core.h |4 ++-- drivers/mmc/core/mmc.c |8 drivers/mmc/core/sd.c |2 +- drivers/mmc/core/sdio.c |3 +-- 5 files changed, 31 insertions(+), 21 deletions(-) diff --git a

[PATCH v5 2/4] mmc: core: Add card_busy to host_ops

2013-01-08 Thread Johan Rudholm
This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm --- include/linux/mmc/host.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 61a10c1..3b56ef2 100644 --- a

Re: [PATCH v4 3/4] mmc: core: Break out start_signal_voltage_switch

2013-01-08 Thread Johan Rudholm
Hi Kevin and Ulf, 2013/1/8 Ulf Hansson : > On 8 January 2013 01:56, Kevin Liu wrote: >> 2013/1/8 Ulf Hansson : >>> On 7 January 2013 16:10, Johan Rudholm wrote: >>>> Allow callers to access the start_signal_voltage_switch host_ops >>>> member with

[PATCH v4 3/4] mmc: core: Break out start_signal_voltage_switch

2013-01-07 Thread Johan Rudholm
Allow callers to access the start_signal_voltage_switch host_ops member without going through any cmd11 logic. This is mostly a preparation for the following signal voltage switch patch. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c | 31 +++ drivers/mmc

[PATCH v4 4/4] mmc: core: Fixup signal voltage switch

2013-01-07 Thread Johan Rudholm
: Johan Rudholm Signed-off-by: Kevin Liu Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 83 +-- drivers/mmc/core/sd.c | 21 +--- drivers/mmc/core/sdio.c | 20 ++-- 3 files changed, 107 insertions(+), 17 deletions

[PATCH v4 0/4] mmc: core: Signal voltage switch procedure for UHS mode

2013-01-07 Thread Johan Rudholm
mc_host_clk_hold / mmc_host_clk_release - Add retry-loop / power cycle in sdio.c - Fall back to 3.3 V if the switch repeatedly fails - Add an extra argument to the card_busy host_ops function, which can be used to signal polling use of the function Johan Rudholm (

[PATCH v4 1/4] mmc: core: Add mmc_power_cycle

2013-01-07 Thread Johan Rudholm
Add mmc_power_cycle which can be used to power cycle for instance SD-cards. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c |8 drivers/mmc/core/core.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768

[PATCH v4 2/4] mmc: core: Add card_busy to host_ops

2013-01-07 Thread Johan Rudholm
This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm --- include/linux/mmc/host.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 61a10c1..3b56ef2 100644 --- a

Re: [PATCH v3 3/3] mmc: core: Fixup signal voltage switch

2013-01-07 Thread Johan Rudholm
Hi, 2013/1/3 Johan Rudholm : > + err = host->ops->start_signal_voltage_switch(host, > &host->ios); > + if (err) { > + /* > +* Voltages may not been switched, but we've already > +

[PATCH v3 2/3] mmc: core: Add card_busy to host_ops

2013-01-03 Thread Johan Rudholm
This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm --- include/linux/mmc/host.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 61a10c1..3b56ef2 100644 --- a

[PATCH v3 1/3] mmc: core: Add mmc_power_cycle

2013-01-03 Thread Johan Rudholm
Add mmc_power_cycle which can be used to power cycle for instance SD-cards. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c |8 drivers/mmc/core/core.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768

[PATCH v3 3/3] mmc: core: Fixup signal voltage switch

2013-01-03 Thread Johan Rudholm
: Johan Rudholm Signed-off-by: Kevin Liu Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 72 --- drivers/mmc/core/sd.c | 21 ++ drivers/mmc/core/sdio.c | 20 +++-- 3 files changed, 102 insertions(+), 11 deletions

[PATCH v3 0/3] mmc: core: Signal voltage switch procedure for UHS mode

2013-01-03 Thread Johan Rudholm
- Keep calls to mmc_host_clk_hold / mmc_host_clk_release - Add retry-loop / power cycle in sdio.c - Fall back to 3.3 V if the switch repeatedly fails - Add an extra argument to the card_busy host_ops function, which can be used to signal polling use of the function Johan Rudho

Re: [PATCH v2 3/3] mmc: core: Fixup signal voltage switch

2012-12-19 Thread Johan Rudholm
Hi Kevin, 2012/12/18 Kevin Liu : > 2012/12/18 Johan Rudholm : <...> >> + host->ios.signal_voltage = signal_voltage; >> err = host->ops->start_signal_voltage_switch(host, >> &host->ios); >> - mmc_h

[PATCH v2 0/3] mmc: core: Signal voltage switch procedure for UHS mode

2012-12-18 Thread Johan Rudholm
- Add retry-loop / power cycle in sdio.c - Fall back to 3.3 V if the switch repeatedly fails - Add an extra argument to the card_busy host_ops function, which can be used to signal polling use of the function Johan Rudholm (3): mmc: core: Add mmc_power_cycle mmc:

[PATCH v2 1/3] mmc: core: Add mmc_power_cycle

2012-12-18 Thread Johan Rudholm
Add mmc_power_cycle which can be used to power cycle for instance SD-cards. Signed-off-by: Johan Rudholm --- drivers/mmc/core/core.c |8 drivers/mmc/core/core.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index aaed768

[PATCH v2 2/3] mmc: core: Add card_busy to host_ops

2012-12-18 Thread Johan Rudholm
This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm --- include/linux/mmc/host.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 23df21e..e2ed8c5 100644 --- a

[PATCH v2 3/3] mmc: core: Fixup signal voltage switch

2012-12-18 Thread Johan Rudholm
: Johan Rudholm Signed-off-by: Kevin Liu Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 75 +++ drivers/mmc/core/sd.c | 21 + drivers/mmc/core/sdio.c | 20 +++-- 3 files changed, 104 insertions(+), 12 deletions

Re: [PATCH 0/3] mmc: Signal voltage switch procedure for UHS mode (sdhci)

2012-12-14 Thread Johan Rudholm
code for signal voltage setting >>> mmc: core: cycle power the card in voltage switch rather than >>> mmc_sd_get_cid >> >> Regarding you patches on the core layer. I think it would make sense >> to instead of patching on top of Johan patchset, if needed, it i

Re: [PATCH 3/3] mmc: sdhci: update signal voltage switch code

2012-12-14 Thread Johan Rudholm
familiar with SDHCI, but don't you need some calls to sdhci_runtime_pm_get / put here? Kind regards, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/3] mmc: core: Fixup signal voltage switch

2012-12-14 Thread Johan Rudholm
Hi Kevin, 2012/12/14 Kevin Liu : > > Just sent a patchset for sdhci based on your patch. Please help to review. > Tested with both UHS and non-UHS sd card on sdhci-pxav3 platform. Great! I'll get on it right away. Kind regards, Johan -- To unsubscribe from this list: send the lin

  1   2   >