RE: [PATCH v2] mmc: dw_mmc: Make sure we don't get stuck when we get an error

2014-07-27 Thread Seungwon Jeon
Hi Chris & Ulf, I hope you find this patch for next. Thanks, Seungwon Jeon On Wed, May 21, 2014, Seungwon Jeon wrote: > On Wed, May 21, 2014, Doug Anderson wrote: > > If we happened to get a data error at just the wrong time the dw_mmc > > driver could get into a state w

RE: [PATCH v2] mmc: dw_mmc: Make sure we don't get stuck when we get an error

2014-07-27 Thread Seungwon Jeon
Hi Chris Ulf, I hope you find this patch for next. Thanks, Seungwon Jeon On Wed, May 21, 2014, Seungwon Jeon wrote: On Wed, May 21, 2014, Doug Anderson wrote: If we happened to get a data error at just the wrong time the dw_mmc driver could get into a state where it would never complete

RE: [PATCH v2] mmc: dw_mmc: Make sure we don't get stuck when we get an error

2014-05-21 Thread Seungwon Jeon
mmc: dw_mmc: change to use recommended reset procedure" Acked-by: Seungwon Jeon Thanks, Seungwon Jeon > --- > Changes in v2: > - Removed TODO > - Set cmd to NULL before calling dw_mci_request_end() > > drivers/mmc/host/dw_mmc.c | 46 ++

RE: [PATCH v2] mmc: dw_mmc: Make sure we don't get stuck when we get an error

2014-05-21 Thread Seungwon Jeon
procedure Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon --- Changes in v2: - Removed TODO - Set cmd to NULL before calling dw_mci_request_end() drivers/mmc/host/dw_mmc.c | 46 ++ 1 file changed, 46 insertions(+) diff --git

RE: [PATCH] mmc: dw_mmc: Don't print data errors

2014-04-23 Thread Seungwon Jeon
...and they think something is wrong with their hardware. > > Remove the printouts. We'll leave it up to a higher level to report > about errors. Yes, your saying makes sense. But in normal I/O, actual error information such as status below is useful, isn't it? Thanks, Seungwon Jeon >

RE: [PATCH] mmc: dw_mmc: Don't print data errors

2014-04-23 Thread Seungwon Jeon
is wrong with their hardware. Remove the printouts. We'll leave it up to a higher level to report about errors. Yes, your saying makes sense. But in normal I/O, actual error information such as status below is useful, isn't it? Thanks, Seungwon Jeon Signed-off-by: Doug Anderson diand

RE: [PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
On Tue, April 22, 2014, Ulf Hansson wrote: > On 22 April 2014 12:53, Seungwon Jeon wrote: > > On Tue, April 22, 2014, Ulf Hansson wrote: > >> On 22 April 2014 08:57, Seungwon Jeon wrote: > >> > As commit 3957848(mmc: drop the speed mode of card's state) appl

RE: [PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
On Tue, April 22, 2014, Ulf Hansson wrote: > On 22 April 2014 08:57, Seungwon Jeon wrote: > > As commit 3957848(mmc: drop the speed mode of card's state) applies, > > this change should be followed. > > > > drivers/net/wireless/rsi/rsi_91x_sdio.c:288:20: error

[PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
of function 'mmc_card_set_highspeed' [-Werror=implicit-function-declaration] drivers/net/wireless/rsi/rsi_91x_sdio.c:306:2: error: implicit declaration of function 'mmc_card_highspeed' [-Werror=implicit-function-declaration] Signed-off-by: Seungwon Jeon --- drivers/net/wireless/rsi/rsi_91x_sdio.c

[PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
of function 'mmc_card_set_highspeed' [-Werror=implicit-function-declaration] drivers/net/wireless/rsi/rsi_91x_sdio.c:306:2: error: implicit declaration of function 'mmc_card_highspeed' [-Werror=implicit-function-declaration] Signed-off-by: Seungwon Jeon tgih@samsung.com --- drivers/net/wireless

RE: [PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
On Tue, April 22, 2014, Ulf Hansson wrote: On 22 April 2014 08:57, Seungwon Jeon tgih@samsung.com wrote: As commit 3957848(mmc: drop the speed mode of card's state) applies, this change should be followed. drivers/net/wireless/rsi/rsi_91x_sdio.c:288:20: error: 'MMC_STATE_HIGHSPEED

RE: [PATCH] linux-next: rsi: fix using of removed stuff from mmc

2014-04-22 Thread Seungwon Jeon
On Tue, April 22, 2014, Ulf Hansson wrote: On 22 April 2014 12:53, Seungwon Jeon tgih@samsung.com wrote: On Tue, April 22, 2014, Ulf Hansson wrote: On 22 April 2014 08:57, Seungwon Jeon tgih@samsung.com wrote: As commit 3957848(mmc: drop the speed mode of card's state) applies

RE: linux-next: build failure after merge of the mmc tree

2014-04-21 Thread Seungwon Jeon
next-20140417 for today. I didn't detect usage out of mmc-sub for that. Let me fix and send a patch. Thanks, Seungwon Jeon > -- > Cheers, > Stephen Rothwells...@canb.auug.org.au -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

RE: linux-next: build failure after merge of the mmc tree

2014-04-21 Thread Seungwon Jeon
-declaration] if (mmc_card_highspeed(card)) ^ Caused by commit 395784826a81 (mmc: drop the speed mode of card's state). I have used the version of the mmc tree from next-20140417 for today. I didn't detect usage out of mmc-sub for that. Let me fix and send a patch. Thanks, Seungwon Jeon

RE: [PATCH v2] mmc: fix host release issue after discard operation

2013-11-18 Thread Seungwon Jeon
; > Reported by: Harold (SoonYeal) Yang > > Signed-off-by: Ray Jui > > Reviewed-by: Seungwon Jeon > > --- > > drivers/mmc/card/block.c |7 --- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/mmc/card/block.c b

RE: [PATCH v2] mmc: fix host release issue after discard operation

2013-11-18 Thread Seungwon Jeon
...@broadcom.com Reviewed-by: Seungwon Jeon tgih@samsung.com --- drivers/mmc/card/block.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 1a3163f..4e8212c 100644 --- a/drivers/mmc/card/block.c

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-31 Thread Seungwon Jeon
On Tue, October 29, 2013, Doug Anderson wrote > Seungwon, > > On Fri, Oct 25, 2013 at 2:29 AM, Seungwon Jeon wrote: > >> By SDIO devices, are you referring to actual SDIO cards or some > >> implementations of dw_mmc? > >> > >> As far as I unders

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-31 Thread Seungwon Jeon
On Tue, October 29, 2013, Doug Anderson wrote Seungwon, On Fri, Oct 25, 2013 at 2:29 AM, Seungwon Jeon tgih@samsung.com wrote: By SDIO devices, are you referring to actual SDIO cards or some implementations of dw_mmc? As far as I understand in the CLKENA description in the generic

RE: [PATCH] mmc: fix host release issue after discard operation

2013-10-25 Thread Seungwon Jeon
_flags like below. unsigned int cmd_flags = req ? req->cmd_flags : 0; Then, we could replace several 'if statement' without dereference. if (req && req->cmd_flags & REQ_DISCARD) -> if (cmd_flags & REQ_DISCARD) Just my suggestion. Thanks, Seungwon Jeon > struct

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-25 Thread Seungwon Jeon
On Thu, October 24, 2013, Doug Anderson wrote: > Seungwon, > > On Wed, Oct 23, 2013 at 12:25 PM, Seungwon Jeon wrote: > >> >> + if (card->type == MMC_TYPE_SDIO || > >> >> + card->type == MMC_TYPE_SD_COMBO) { > > &a

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-25 Thread Seungwon Jeon
On Thu, October 24, 2013, Doug Anderson wrote: Seungwon, On Wed, Oct 23, 2013 at 12:25 PM, Seungwon Jeon tgih@samsung.com wrote: + if (card-type == MMC_TYPE_SDIO || + card-type == MMC_TYPE_SD_COMBO) { card-quirks MMC_QUIRK_BROKEN_CLK_GATING How about

RE: [PATCH] mmc: fix host release issue after discard operation

2013-10-25 Thread Seungwon Jeon
; Then, we could replace several 'if statement' without dereference. if (req req-cmd_flags REQ_DISCARD) - if (cmd_flags REQ_DISCARD) Just my suggestion. Thanks, Seungwon Jeon struct mmc_blk_data *md = mq-data; struct mmc_card *card = md-queue.card; struct mmc_host *host = card

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-23 Thread Seungwon Jeon
_PRV_DAT_WAIT, 0); > >> + clk_en_a_old = mci_readl(host, CLKENA); > >> + > >> + if (card->type == MMC_TYPE_SDIO || > >> + card->type == MMC_TYPE_SD_COMBO) { && card->quirks

RE: [PATCH 06/27] mmc: dw_mmc: Move away from using deprecated APIs

2013-10-23 Thread Seungwon Jeon
deprecated APIs. > > Cc: Seungwon Jeon Acked-by: Seungwon Jeon Thanks, Seungwon Jeon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.ht

RE: [PATCH 06/27] mmc: dw_mmc: Move away from using deprecated APIs

2013-10-23 Thread Seungwon Jeon
: Seungwon Jeon tgih@samsung.com Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH 1/2] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2013-10-23 Thread Seungwon Jeon
MMC_QUIRK_BROKEN_CLK_GATING? Some sdio device can work with gating clock. For this, mmc_fixup_device() should be called prior to init_card() in core(sdio.c). I guess you found that. Thanks, Seungwon Jeon + set_bit(DW_MMC_CARD_NO_LOW_PWR, slot-flags

RE: MMC request with REQ_DISCARD option may not release host when it should

2013-10-22 Thread Seungwon Jeon
Hi Ray, Thank you for information. Your analysis is right. I also noticed same problem. If you'd like to submit patch, not to report, please send it with regular form. Or I could send similar patch I have. Thanks, Seungwon Jeon On Wed, Oct 23, 2013, Ray Jui wrote: Hi Seungwon/Chris, We

RE: MMC request with REQ_DISCARD option may not release host when it should

2013-10-22 Thread Seungwon Jeon
Hi Ray, Thank you for information. Your analysis is right. I also noticed same problem. If you'd like to submit patch, not to report, please send it with regular form. Or I could send similar patch I have. Thanks, Seungwon Jeon On Wed, Oct 23, 2013, Ray Jui wrote: Hi Seungwon/Chris, We

RE: [PATCH v7 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-30 Thread Seungwon Jeon
"Bus speed (slot %d) = %dHz (slot req %dHz, actual > %dHZ" > - " div = %d)\n", slot->id, host->bus_hz, slot->clock, > - div ? ((host->bus_hz / div) >> 1) : host->bus_hz, div); > +

RE: [PATCH v7 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-30 Thread Seungwon Jeon
' is different with old one as well, it should be considered. 'div' can be a good factor to compare this condition. Then 'last_printed_clock' should reflect clock divider. Thanks, Seungwon Jeon + dev_info(slot-mmc-class_dev, + Bus speed (slot %d) = %dHz

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-29 Thread Seungwon Jeon
On Fri, August 30, 2013, Doug Anderson wrote: > Seungwon, > > On Thu, Aug 29, 2013 at 12:04 AM, Seungwon Jeon wrote: > >> I'd really still rather honor the MMC subsystem's request. It > >> shouldn't _hurt_ to turn the clock off when the subsystem requests it,

RE: [PATCH] mmc/dw_mmc: Add support for ARC

2013-08-29 Thread Seungwon Jeon
On Thu, August 29, 2013, Mischa Jonker wrote: > Adapt Kconfig to include ARC in supported architectures > > Signed-off-by: Mischa Jonker Acked-by: Seungwon Jeon Thanks, Seungwon Jeon > --- > drivers/mmc/host/Kconfig |2 +- > 1 file changed, 1 insertion(+), 1 deletion(

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-29 Thread Seungwon Jeon
On Tuesday, August 27, 2013, Doug Anderson wrote: > Jaehoon / Seungwon, > > On Mon, Aug 26, 2013 at 2:06 AM, Jaehoon Chung wrote: > > On 08/26/2013 01:34 PM, Seungwon Jeon wrote: > >> On Fri, August 23, 2013, Doug Anderson wrote: > >>> Previously the dw_

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-29 Thread Seungwon Jeon
On Tuesday, August 27, 2013, Doug Anderson wrote: Jaehoon / Seungwon, On Mon, Aug 26, 2013 at 2:06 AM, Jaehoon Chung jh80.ch...@samsung.com wrote: On 08/26/2013 01:34 PM, Seungwon Jeon wrote: On Fri, August 23, 2013, Doug Anderson wrote: Previously the dw_mmc driver would ignore any

RE: [PATCH] mmc/dw_mmc: Add support for ARC

2013-08-29 Thread Seungwon Jeon
On Thu, August 29, 2013, Mischa Jonker wrote: Adapt Kconfig to include ARC in supported architectures Signed-off-by: Mischa Jonker mjon...@synopsys.com Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon --- drivers/mmc/host/Kconfig |2 +- 1 file changed, 1 insertion

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-29 Thread Seungwon Jeon
On Fri, August 30, 2013, Doug Anderson wrote: Seungwon, On Thu, Aug 29, 2013 at 12:04 AM, Seungwon Jeon tgih@samsung.com wrote: I'd really still rather honor the MMC subsystem's request. It shouldn't _hurt_ to turn the clock off when the subsystem requests it, Even though turning

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-25 Thread Seungwon Jeon
RV_DAT_WAIT, 0); Basically dw_mmc driver uses host's low power mode(auto clock gating) So, how about keeping origin code rather than programming clock setting to '0'? > + } else if (slot->clock != host->current_speed || force_clkinit) { And then, if condition('slot->clock

RE: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-25 Thread Seungwon Jeon
clock setting to '0'? + } else if (slot-clock != host-current_speed || force_clkinit) { And then, if condition('slot-clock is not zero') is added in order to allow to set clock, print messages which Jaehoon pointed would be solved. Thanks, Seungwon Jeon div = host-bus_hz

RE: [PATCH v5 0/4] mmc: dw_mmc: fixes for suspend/resume on exynos

2013-08-21 Thread Seungwon Jeon
Hi Doug, Do you have any update for this series? Please let me know. Thanks, Seungwon Jeon On Sat, August 10, 2013, Doug Anderson wrote: > This series of patches addresses some suspend/resume problems with > dw_mmc on exynos platforms, espeically exynos5420. Since > suspend/resume is

RE: [PATCH v5 0/4] mmc: dw_mmc: fixes for suspend/resume on exynos

2013-08-21 Thread Seungwon Jeon
Hi Doug, Do you have any update for this series? Please let me know. Thanks, Seungwon Jeon On Sat, August 10, 2013, Doug Anderson wrote: This series of patches addresses some suspend/resume problems with dw_mmc on exynos platforms, espeically exynos5420. Since suspend/resume is not fully

RE: [PATCH] mmc: dw_mmc: Don't disable vmmc if keeping power in suspend

2013-08-12 Thread Seungwon Jeon
silent. Origin code has stood up somewhat long. Did you see? Acked-by: Seungwon Jeon Thanks, Seungwon Jeon > > Signed-off-by: Derek Basehore > Reviewed-by: Doug Anderson > --- > drivers/mmc/host/dw_mmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >

RE: [PATCH v5 2/4] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-08-12 Thread Seungwon Jeon
should probably disable the clock to the card in the suspend > path. In suspend, clock is gated, isn't it? Rather, no comment looks better, if intention is not clear. Thanks, Seungwon Jeon > + */ > +static int dw_mci_exynos_suspend(struct device *dev) > +{ > +

RE: [PATCH v4 3/4] mmc: dw_mmc: Always setup the bus after suspend/resume

2013-08-12 Thread Seungwon Jeon
On Sat, August 10, 2013,Doug Anderson wrote: > Seungwon, > > On Fri, Aug 9, 2013 at 6:35 AM, Seungwon Jeon wrote: > > On Wed, August 07, 2013, Doug Anderson wrote: > >> After suspend/resume all of the dw_mmc registers are reset to > >> defaults. We restore mos

RE: [PATCH v4 1/4] mmc: dw_mmc: Invalidate cache of current_speed after suspend/resume

2013-08-12 Thread Seungwon Jeon
On Sat, August 10, 2013, Doug Anderson wrote: > Seungwon and Jaehoon, > > On Fri, Aug 9, 2013 at 6:32 AM, Seungwon Jeon wrote: > > On Wed, August 07, 2013, Doug Anderson wrote: > >> The dw_mmc driver keeps a cache of the current slot->clock in order to > >> a

RE: [PATCH v4 1/4] mmc: dw_mmc: Invalidate cache of current_speed after suspend/resume

2013-08-12 Thread Seungwon Jeon
On Sat, August 10, 2013, Doug Anderson wrote: Seungwon and Jaehoon, On Fri, Aug 9, 2013 at 6:32 AM, Seungwon Jeon tgih@samsung.com wrote: On Wed, August 07, 2013, Doug Anderson wrote: The dw_mmc driver keeps a cache of the current slot-clock in order to avoid doing a whole lot

RE: [PATCH v4 3/4] mmc: dw_mmc: Always setup the bus after suspend/resume

2013-08-12 Thread Seungwon Jeon
On Sat, August 10, 2013,Doug Anderson wrote: Seungwon, On Fri, Aug 9, 2013 at 6:35 AM, Seungwon Jeon tgih@samsung.com wrote: On Wed, August 07, 2013, Doug Anderson wrote: After suspend/resume all of the dw_mmc registers are reset to defaults. We restore most of them

RE: [PATCH v5 2/4] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-08-12 Thread Seungwon Jeon
is not clear. Thanks, Seungwon Jeon + */ +static int dw_mci_exynos_suspend(struct device *dev) +{ + struct dw_mci *host = dev_get_drvdata(dev); + + return dw_mci_suspend(host); +} + +static int dw_mci_exynos_resume(struct device *dev) +{ + struct dw_mci *host = dev_get_drvdata

RE: [PATCH] mmc: dw_mmc: Don't disable vmmc if keeping power in suspend

2013-08-12 Thread Seungwon Jeon
. Origin code has stood up somewhat long. Did you see? Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon Signed-off-by: Derek Basehore dbaseh...@chromium.org Reviewed-by: Doug Anderson diand...@chromium.org --- drivers/mmc/host/dw_mmc.c | 4 ++-- 1 file changed, 2 insertions

RE: [PATCH v4 3/4] mmc: dw_mmc: Always setup the bus after suspend/resume

2013-08-09 Thread Seungwon Jeon
ff(). On seeing fields of 'mmc->ios' stored last, these values aren't proper in resume phase. Please check mmc_power_off() function. In case MMC_PM_KEEP_POWER it could be kept. Thanks, Seungwon Jeon > > There doesn't seem to be any reason that I can see _not_ to set things > up after re

RE: [PATCH v4 2/4] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-08-09 Thread Seungwon Jeon
_noirq = dw_mci_exynos_resume_noirq; > + dw_mci_exynos_pmops.thaw_noirq = dw_mci_exynos_resume_noirq; > + dw_mci_exynos_pmops.restore_noirq = dw_mci_exynos_resume_noirq; If CONFIG_PM_SLEEP is not defined, we don't need to add it. And also, instead of reusing dw_mci_pltfm_pmops, how about defini

RE: [PATCH v4 1/4] mmc: dw_mmc: Invalidate cache of current_speed after suspend/resume

2013-08-09 Thread Seungwon Jeon
of 'dw_mci_setup_bus(slot, true)'. Eventually, this change does same? Thanks, Seungwon Jeon > > Invalidating the current_speed also means that we don't need to call: > dw_mci_setup_bus(slot, true); > ...to force an update of the clock in the case when the slot was left > power

RE: [PATCH v4 1/4] mmc: dw_mmc: Invalidate cache of current_speed after suspend/resume

2013-08-09 Thread Seungwon Jeon
does same? Thanks, Seungwon Jeon Invalidating the current_speed also means that we don't need to call: dw_mci_setup_bus(slot, true); ...to force an update of the clock in the case when the slot was left powered. Signed-off-by: Doug Anderson diand...@chromium.org --- Changes in v4: None

RE: [PATCH v4 2/4] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-08-09 Thread Seungwon Jeon
with dw_mci_pltfm* just now. But specific code for exynos would be added soon. Thanks, Seungwon Jeon -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

RE: [PATCH v4 3/4] mmc: dw_mmc: Always setup the bus after suspend/resume

2013-08-09 Thread Seungwon Jeon
of 'mmc-ios' stored last, these values aren't proper in resume phase. Please check mmc_power_off() function. In case MMC_PM_KEEP_POWER it could be kept. Thanks, Seungwon Jeon There doesn't seem to be any reason that I can see _not_ to set things up after resume. Restoring this state makes

RE: dw_mmc: Does anyone use multiple slots?

2013-08-08 Thread Seungwon Jeon
is no actual use case for that though origin Synopsys IP supports. Multi-slot might be not useful in terms of performance because shared bus should be allowed. (At least this is the way I see it, though) As Exynos's host does so, other hosts which are introduced in Linux seems use one card pe

RE: dw_mmc: Does anyone use multiple slots?

2013-08-08 Thread Seungwon Jeon
. (At least this is the way I see it, though) As Exynos's host does so, other hosts which are introduced in Linux seems use one card per host. If it's really not found now, I could agree on this topic. Thanks, Seungwon Jeon -- To unsubscribe from this list: send the line unsubscribe linux-kernel

RE: [PATCH 4/5] mmc: dw_mmc: Indicate that regulators may be absent

2013-07-30 Thread Seungwon Jeon
On Tue, July 30, 2013, Mark Brown wrote: > From: Mark Brown > > Use regulator_get_optional() to tell the core that requests for regulators > can fail in a real system. > > Signed-off-by: Mark Brown Acked-by: Seungwon Jeon Thanks, Seungwon Jeon -- To unsubscribe from this l

RE: [PATCH 4/5] mmc: dw_mmc: Indicate that regulators may be absent

2013-07-30 Thread Seungwon Jeon
On Tue, July 30, 2013, Mark Brown wrote: From: Mark Brown broo...@linaro.org Use regulator_get_optional() to tell the core that requests for regulators can fail in a real system. Signed-off-by: Mark Brown broo...@linaro.org Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon

RE: [PATCH v3 2/5] mmc: dw_mmc: Add suspend_noirq/resume_noirq callbacks for dw_mmc-pltfm

2013-07-15 Thread Seungwon Jeon
x_noirq now. I feel like it is for handling quirk. If we meet use case for that in some day, it could be added commonly. How do you think? Thanks, Seungwon Jeon > > Signed-off-by: Doug Anderson > Reviewed-by: James Hogan > --- > Changes in v3: > - Add freeze/thaw and poweroff/res

RE: [PATCH v2 3/5] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-07-15 Thread Seungwon Jeon
On Thu, July 11, 2013, Doug Anderson wrote: > Seungwon, > > On Wed, Jul 10, 2013 at 7:54 AM, Seungwon Jeon wrote: > > On Wed, July 10, 2013, Doug Anderson wrote: > >> If the WAKEUP_INT is asserted at wakeup and not cleared, we'll end up > >> looping around forev

RE: [PATCH v2 3/5] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-07-15 Thread Seungwon Jeon
On Thu, July 11, 2013, Doug Anderson wrote: Seungwon, On Wed, Jul 10, 2013 at 7:54 AM, Seungwon Jeon tgih@samsung.com wrote: On Wed, July 10, 2013, Doug Anderson wrote: If the WAKEUP_INT is asserted at wakeup and not cleared, we'll end up looping around forever. This has been seen

RE: [PATCH v3 2/5] mmc: dw_mmc: Add suspend_noirq/resume_noirq callbacks for dw_mmc-pltfm

2013-07-15 Thread Seungwon Jeon
use case for that in some day, it could be added commonly. How do you think? Thanks, Seungwon Jeon Signed-off-by: Doug Anderson diand...@chromium.org Reviewed-by: James Hogan james.ho...@imgtec.com --- Changes in v3: - Add freeze/thaw and poweroff/restore noirq entries. Changes in v2

RE: [PATCH] mmc: dw_mmc: Handle DW_MCI_QUIRK_IDMAC_DTO properly

2013-07-10 Thread Seungwon Jeon
of any > boards that need DW_MCI_QUIRK_IDMAC_DTO. > > Signed-off-by: Doug Anderson Acked-by: Seungwon Jeon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ker

RE: [PATCH v2 3/5] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-07-10 Thread Seungwon Jeon
is bit is 1 to indicate that it fired and we can > + * clear it by writing a 1 back. Clear it to prevent interrupts from going > off > + * constantly. > + */ As I know this bit is auto-cleared. Did you find the cause of this problem? How about your GPIO setting in sleep? Currently, we

RE: [PATCH v2 5/5] mmc: dw_mmc: Set timeout to max upon resume

2013-07-10 Thread Seungwon Jeon
is data to send), but it makes the > register dump before and after suspend clean. > > Signed-off-by: Doug Anderson Acked-by: Seungwon Jeon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

RE: [PATCH v2 5/5] mmc: dw_mmc: Set timeout to max upon resume

2013-07-10 Thread Seungwon Jeon
), but it makes the register dump before and after suspend clean. Signed-off-by: Doug Anderson diand...@chromium.org Acked-by: Seungwon Jeon tgih@samsung.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

RE: [PATCH v2 3/5] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-07-10 Thread Seungwon Jeon
off + * constantly. + */ As I know this bit is auto-cleared. Did you find the cause of this problem? How about your GPIO setting in sleep? Currently, we don't know why the problem is happened. At least, we should make it clear. Thanks, Seungwon Jeon + +static int dw_mci_exynos_resume_noirq

RE: [PATCH] mmc: dw_mmc: Handle DW_MCI_QUIRK_IDMAC_DTO properly

2013-07-10 Thread Seungwon Jeon
that need DW_MCI_QUIRK_IDMAC_DTO. Signed-off-by: Doug Anderson diand...@chromium.org Acked-by: Seungwon Jeon tgih@samsung.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

RE: [PATCH] mmc: dw_mmc: don't queue up a card detect at slot startup

2013-07-01 Thread Seungwon Jeon
On Sat, June 29, 2013, Doug Anderson wrote: > Seungwon, > > On Mon, Jun 24, 2013 at 1:04 AM, Seungwon Jeon wrote: > > This patch looks good to me. I agree above. > > Card detection procedure of mmc subsystem will be started by mmc_start_host > > during probe time.

RE: [PATCH] mmc: dw_mmc: don't queue up a card detect at slot startup

2013-07-01 Thread Seungwon Jeon
On Sat, June 29, 2013, Doug Anderson wrote: Seungwon, On Mon, Jun 24, 2013 at 1:04 AM, Seungwon Jeon tgih@samsung.com wrote: This patch looks good to me. I agree above. Card detection procedure of mmc subsystem will be started by mmc_start_host during probe time. There is no need

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-06-25 Thread Seungwon Jeon
Hi Jaehoon, Do you have the same result? Could you share the result? Thanks, Seungwon Jeon On Tuesday, June 25 2013, Bing Zhao wrote: > > I think the proposal on the table is to take Seungwon's patches > > instead of mine. Assuming they solve your problems, I'm OK with that. >

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-06-25 Thread Seungwon Jeon
Hi Jaehoon, Do you have the same result? Could you share the result? Thanks, Seungwon Jeon On Tuesday, June 25 2013, Bing Zhao wrote: I think the proposal on the table is to take Seungwon's patches instead of mine. Assuming they solve your problems, I'm OK with that. I think he

RE: [PATCH] mmc: dw_mmc: don't queue up a card detect at slot startup

2013-06-24 Thread Seungwon Jeon
If a actual detection of card is triggered during probe, similar problem may be occurred in spite of this patch. Thanks, Seungwon Jeon > > Specifically, I found that with just the right set of printouts in my > system that one of the three SD/MMC devices in my system was having > troubl

RE: [PATCH] mmc: dw_mmc: don't queue up a card detect at slot startup

2013-06-24 Thread Seungwon Jeon
of card is triggered during probe, similar problem may be occurred in spite of this patch. Thanks, Seungwon Jeon Specifically, I found that with just the right set of printouts in my system that one of the three SD/MMC devices in my system was having trouble probing. It would get an err -123

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-06-18 Thread Seungwon Jeon
On Thursday, June 13, 2013, Doug Anderson wrote: > Seungwon, > > On Wed, Apr 10, 2013 at 12:02 AM, Seungwon Jeon wrote: > >> > There are two solutions we have applied. > >> > >> I'm a little confused. Have you already applied one or both of the &g

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-06-18 Thread Seungwon Jeon
On Thursday, June 13, 2013, Doug Anderson wrote: Seungwon, On Wed, Apr 10, 2013 at 12:02 AM, Seungwon Jeon tgih@samsung.com wrote: There are two solutions we have applied. I'm a little confused. Have you already applied one or both of the solutions you list below, or are you

RE: [PATCH v3 4/7] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-11 Thread Seungwon Jeon
Looks good to me. But this patch has a dependency on '[PATCH 2/2] mmc: dw_mmc: Add support DW SD/MMC driver on SOCFPGA' After that, it can be applied.(SDMMC_CMD_USE_HOLD_REG should be moved in dw_mmc.h) Acked-by: Seungwon Jeon Thanks, Seungwon Jeon On 06/11/13 2013 8:31 PM Heiko Stübner

RE: [PATCH v3 3/7] mmc: dw_mmc-pltfm: move probe and remove below dt match table

2013-06-11 Thread Seungwon Jeon
On 06/11/13 2013 8:30 PM Heiko Stübner wrote: > In a subsquent patch probe will need to do some handling of data from > the dt match table. So to prevent the need for forward declarations, > move probe and remove below the match table. > > Signed-off-by: Heiko Stuebner Acked-by

RE: [PATCH v3 3/7] mmc: dw_mmc-pltfm: move probe and remove below dt match table

2013-06-11 Thread Seungwon Jeon
-by: Seungwon Jeon tgih@samsung.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH v3 4/7] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-11 Thread Seungwon Jeon
Looks good to me. But this patch has a dependency on '[PATCH 2/2] mmc: dw_mmc: Add support DW SD/MMC driver on SOCFPGA' After that, it can be applied.(SDMMC_CMD_USE_HOLD_REG should be moved in dw_mmc.h) Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon On 06/11/13 2013 8:31

RE: [PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-05 Thread Seungwon Jeon
mci_rockchip_prepare_command(struct dw_mci *host, u32 *cmdr) > +{ > + *cmdr |= SDMMC_CMD_USE_HOLD_REG; Currently, SDMMC_CMD_USE_HOLD_REG is defined in dw_mmc-exynos.c It should be moved to dw_mmc.h Thanks, Seungwon Jeon > +} > + > +static const struct dw_mci_drv_data rockchip_dr

RE: [PATCH 05/10] mmc: dw_mmc-pltfm: remove static from dw_mci_pltfm_remove

2013-06-05 Thread Seungwon Jeon
On 06/03/13 2013 7:58 AM, Heiko Stübner wrote: > dw_mci_pltfm_remove gets exported and used by dw_mmc-exynos, so should > not be static. > > Signed-off-by: Heiko Stuebner Acked-by: Seungwon Jeon Thanks, Seungwon Jeon -- To unsubscribe from this list: send the line "unsubsc

RE: [PATCH 05/10] mmc: dw_mmc-pltfm: remove static from dw_mci_pltfm_remove

2013-06-05 Thread Seungwon Jeon
On 06/03/13 2013 7:58 AM, Heiko Stübner wrote: dw_mci_pltfm_remove gets exported and used by dw_mmc-exynos, so should not be static. Signed-off-by: Heiko Stuebner he...@sntech.de Acked-by: Seungwon Jeon tgih@samsung.com Thanks, Seungwon Jeon -- To unsubscribe from this list: send

RE: [PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-05 Thread Seungwon Jeon
|= SDMMC_CMD_USE_HOLD_REG; Currently, SDMMC_CMD_USE_HOLD_REG is defined in dw_mmc-exynos.c It should be moved to dw_mmc.h Thanks, Seungwon Jeon +} + +static const struct dw_mci_drv_data rockchip_drv_data = { + .prepare_command= dw_mci_rockchip_prepare_command, +}; + int dw_mci_pltfm_register(struct

RE: [PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-12 Thread Seungwon Jeon
On Sunday, May 12, 2013, Dolev Raviv wrote: Author should be identified here. (From: author...) Except last patch of series(8/8), all of patches are not from you. > Simplify operations with hiding mmio_base. > > Signed-off-by: Seungwon Jeon > Signed-off-by: Dolev Raviv I'm not su

RE: [PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-12 Thread Seungwon Jeon
On Sunday, May 12, 2013, Dolev Raviv wrote: Author should be identified here. (From: author...) Except last patch of series(8/8), all of patches are not from you. Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Dolev Raviv dra

RE: [PATCH] mmc: dw_mmc: exynos: Turn SDIO interrupts on

2013-04-16 Thread Seungwon Jeon
On Tuesday, April 16, 2013, Doug Anderson > Seungwon, > > On Mon, Apr 15, 2013 at 5:14 AM, Seungwon Jeon wrote: > >> + MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, > >> + MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, > > This line for [1] > >&

RE: [PATCH] mmc: dw_mmc: exynos: Turn SDIO interrupts on

2013-04-16 Thread Seungwon Jeon
On Tuesday, April 16, 2013, Doug Anderson Seungwon, On Mon, Apr 15, 2013 at 5:14 AM, Seungwon Jeon tgih@samsung.com wrote: + MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, + MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, This line for [1] + MMC_CAP_CMD23

RE: [PATCH] mmc: dw_mmc: exynos: Turn SDIO interrupts on

2013-04-15 Thread Seungwon Jeon
23 | MMC_CAP_SDIO_IRQ, This line for [1] > + MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, > + MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, [1] is for mshc1. mshc1 is only used for SDIO. As I know, The others are improper for SDIO. Thanks, Seungwon Jeon > }; > > static const struct dw_mci_dr

RE: [PATCH] mmc: dw_mmc: exynos: Turn SDIO interrupts on

2013-04-15 Thread Seungwon Jeon
, + MMC_CAP_CMD23 | MMC_CAP_SDIO_IRQ, [1] is for mshc1. mshc1 is only used for SDIO. As I know, The others are improper for SDIO. Thanks, Seungwon Jeon }; static const struct dw_mci_drv_data exynos_drv_data = { -- 1.8.1.3 -- To unsubscribe from this list: send the line unsubscribe linux-mmc

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-10 Thread Seungwon Jeon
On Tuesday, April 09, 2013, Doug Anderson wrote: > Seungwon, > > On Mon, Apr 8, 2013 at 5:17 AM, Seungwon Jeon wrote: > > I guess Doug are debugging it with wifi, right? > > Yes, we're debugging it on the Samsung ARM Chromebook on a part that > has an SDIO WiFi modul

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-10 Thread Seungwon Jeon
On Tuesday, April 09, 2013, Doug Anderson wrote: Seungwon, On Mon, Apr 8, 2013 at 5:17 AM, Seungwon Jeon tgih@samsung.com wrote: I guess Doug are debugging it with wifi, right? Yes, we're debugging it on the Samsung ARM Chromebook on a part that has an SDIO WiFi module by Marvell

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-08 Thread Seungwon Jeon
transfer was stopped by the interrupt handler */ - set_bit(EVENT_XFER_COMPLETE, >pending_events); } + + set_bit(EVENT_XFER_COMPLETE, >pending_events); } If you have any opinion, please let me know. Thanks, Seungwon Jeon > > Best Regards, > Ja

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-08 Thread Seungwon Jeon
*/ - set_bit(EVENT_XFER_COMPLETE, host-pending_events); } + + set_bit(EVENT_XFER_COMPLETE, host-pending_events); } If you have any opinion, please let me know. Thanks, Seungwon Jeon Best Regards, Jaehoon Chung On 03/27/2013 03:06 AM, Doug Anderson wrote

RE: [PATCH] mmc: dw_mmc: rewrite CLKDIV computation

2013-03-27 Thread Seungwon Jeon
On Wednesday, March 27, 2013, Grant Grundler wrote: > Last year Seungwon Jeon (Samsung) fixed a bug in CLKDIV computation. For easily identifying, it would be good to point the commit id and subject. > But when debugging a related issue (http://crbug.com/221828) I found It is not easy to ca

RE: [PATCH] mmc: dw_mmc: rewrite CLKDIV computation

2013-03-27 Thread Seungwon Jeon
On Wednesday, March 27, 2013, Grant Grundler wrote: Last year Seungwon Jeon (Samsung) fixed a bug in CLKDIV computation. For easily identifying, it would be good to point the commit id and subject. But when debugging a related issue (http://crbug.com/221828) I found It is not easy to catch up

RE: [PATCH] mmc: dw_mmc: setpower on MMC_POWER_{UP,OFF}

2013-03-14 Thread Seungwon Jeon
On Wednesday, March 13, 2013, James Hogan wrote: > On 13/03/13 14:20, Seungwon Jeon wrote: > > Hi James, > > > > On Tuesday, March 12, 2013, James Hogan wrote: > >> Call the setpower platform callback in response to set_ios with > >> ios->power_mode

RE: [PATCH] mmc: dw_mmc: setpower on MMC_POWER_{UP,OFF}

2013-03-14 Thread Seungwon Jeon
On Wednesday, March 13, 2013, James Hogan wrote: On 13/03/13 14:20, Seungwon Jeon wrote: Hi James, On Tuesday, March 12, 2013, James Hogan wrote: Call the setpower platform callback in response to set_ios with ios-power_mode == MMC_POWER_UP or MMC_POWER_OFF, instead of from the card

RE: [PATCH 1/3] dw_mmc: Don't loop when handling an interrupt

2013-03-13 Thread Seungwon Jeon
> of the while loop. > > Signed-off-by: Markos Chandras > Cc: Seungwon Jeon Acked-by: Seungwon Jeon You can add my ack to other patches. However, could you change the subject prefix to 'mmc: dw_mmc' and resend? Thanks, Seungwon Jeon -- To unsubscribe from this list: send the

RE: [PATCH] mmc: dw_mmc: move host->data_offset init earlier

2013-03-13 Thread Seungwon Jeon
n't occur prior to host->data_offset being initialised. > > Signed-off-by: James Hogan > Cc: Seungwon Jeon Acked-by: Seungwon Jeon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majo

  1   2   >