All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	'Chris Ball' <cjb@laptop.org>,
	Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: [PATCH 3/4] mmc: sdhci-s3c: revert "fix missing clock for gpio card-detect"
Date: Tue, 25 Jun 2013 21:46:15 +0200	[thread overview]
Message-ID: <201306252146.16307.heiko@sntech.de> (raw)
In-Reply-To: <51C8F07A.9060709@samsung.com>

Am Dienstag, 25. Juni 2013, 03:20:58 schrieb Jaehoon Chung:
> Fixed the warning message.(clk_disable/enable didn't pair)
> 
> [    2.110000] ------------[ cut here ]------------
> [    2.110000] WARNING: at drivers/clk/clk.c:780 clk_disable+0x18/0x24()
> [    2.110000] Modules linked in:
> [    2.110000] CPU: 0 PID: 34 Comm: kworker/0:1 Not tainted
> 3.10.0-rc1-00313-g60e5410-dirty #26 [    2.110000] Workqueue: pm
> pm_runtime_work
> [    2.110000] [<c0015824>] (unwind_backtrace+0x0/0x138) from [<c0012868>]
> (show_stack+0x10/0x14) [    2.110000] [<c0012868>] (show_stack+0x10/0x14)
> from [<c00247fc>] (warn_slowpath_common+0x4c/0x68) [    2.110000]
> [<c00247fc>] (warn_slowpath_common+0x4c/0x68) from [<c0024834>]
> (warn_slowpath_null+0x1c/0x24) [    2.110000] [<c0024834>]
> (warn_slowpath_null+0x1c/0x24) from [<c03de910>] (clk_disable+0x18/0x24) [
>    2.110000] [<c03de910>] (clk_disable+0x18/0x24) from [<c03b93fc>]
> (sdhci_s3c_runtime_suspend+0x50/0x64) [    2.110000] [<c03b93fc>]
> (sdhci_s3c_runtime_suspend+0x50/0x64) from [<c02bfd54>]
> (pm_generic_runtime_suspend+0x2c/0x40) [    2.110000] [<c02bfd54>]
> (pm_generic_runtime_suspend+0x2c/0x40) from [<c02c41d8>]
> (__rpm_callback+0x34/0x70) [    2.110000] [<c02c41d8>]
> (__rpm_callback+0x34/0x70) from [<c02c423c>] (rpm_callback+0x28/0x88) [   
> 2.110000] [<c02c423c>] (rpm_callback+0x28/0x88) from [<c02c466c>]
> (rpm_suspend+0xec/0x628) [    2.110000] [<c02c466c>]
> (rpm_suspend+0xec/0x628) from [<c02c5b60>]
> (__pm_runtime_suspend+0x5c/0x74) [    2.110000] [<c02c5b60>]
> (__pm_runtime_suspend+0x5c/0x74) from [<c02c026c>]
> (pm_generic_runtime_idle+0x44/0x4c) [    2.110000] [<c02c026c>]
> (pm_generic_runtime_idle+0x44/0x4c) from [<c02c41d8>]
> (__rpm_callback+0x34/0x70) [    2.110000] [<c02c41d8>]
> (__rpm_callback+0x34/0x70) from [<c02c4d20>] (rpm_idle+0x104/0x2b8) [   
> 2.110000] [<c02c4d20>] (rpm_idle+0x104/0x2b8) from [<c02c5cc0>]
> (pm_runtime_work+0x88/0x98) [    2.110000] [<c02c5cc0>]
> (pm_runtime_work+0x88/0x98) from [<c003ef38>]
> (process_one_work+0x138/0x43c) [    2.110000] [<c003ef38>]
> (process_one_work+0x138/0x43c) from [<c003f664>]
> (worker_thread+0x134/0x3e0) [    2.110000] [<c003f664>]
> (worker_thread+0x134/0x3e0) from [<c0045118>] (kthread+0xa4/0xb0) [   
> 2.110000] [<c0045118>] (kthread+0xa4/0xb0) from [<c000ead8>]
> (ret_from_fork+0x14/0x3c) [    2.110000] ---[ end trace 3c3a259d4aa3ba0a
> ]--
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> Signed-off-by: Kyungmin Park <Kyungmin.park@samsung.com>

Acked-by: Heiko Stuebner <heiko@sntech.de>

on a s3c2416:
Tested-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  drivers/mmc/host/sdhci-s3c.c |    9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
> index cfcacc3..f1d5965 100644
> --- a/drivers/mmc/host/sdhci-s3c.c
> +++ b/drivers/mmc/host/sdhci-s3c.c
> @@ -373,27 +373,18 @@ static struct sdhci_ops sdhci_s3c_ops = {
>  static void sdhci_s3c_notify_change(struct platform_device *dev, int
> state) {
>  	struct sdhci_host *host = platform_get_drvdata(dev);
> -#ifdef CONFIG_PM_RUNTIME
> -	struct sdhci_s3c *sc = sdhci_priv(host);
> -#endif
>  	unsigned long flags;
> 
>  	if (host) {
>  		spin_lock_irqsave(&host->lock, flags);
>  		if (state) {
>  			dev_dbg(&dev->dev, "card inserted.\n");
> -#ifdef CONFIG_PM_RUNTIME
> -			clk_prepare_enable(sc->clk_io);
> -#endif
>  			host->flags &= ~SDHCI_DEVICE_DEAD;
>  			host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
>  		} else {
>  			dev_dbg(&dev->dev, "card removed.\n");
>  			host->flags |= SDHCI_DEVICE_DEAD;
>  			host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;
> -#ifdef CONFIG_PM_RUNTIME
> -			clk_disable_unprepare(sc->clk_io);
> -#endif
>  		}
>  		tasklet_schedule(&host->card_tasklet);
>  		spin_unlock_irqrestore(&host->lock, flags);


      reply	other threads:[~2013-06-25 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-25  1:20 [PATCH 3/4] mmc: sdhci-s3c: revert "fix missing clock for gpio card-detect" Jaehoon Chung
2013-06-25 19:46 ` Heiko Stübner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201306252146.16307.heiko@sntech.de \
    --to=heiko@sntech.de \
    --cc=cjb@laptop.org \
    --cc=jh80.chung@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.