All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Varnin <fenixk19@mail.ru>
To: linux-samsung-soc@vger.kernel.org
Subject: sdhci-s3c suspends immediately
Date: Fri, 12 Apr 2013 16:20:45 +0400	[thread overview]
Message-ID: <5167FC1D.7020601@mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

Hello. I'm trying to bring up sdhci-s3c driver on S3C2443 SOC.
It seems to initialize correctly, but immediately after that it get 
suspended by some force. This turns off all interrupts, so SD controller 
doesn't work. I don't know, where suspend command comes from, but whole 
system stay in working state.
I've recorded some boot log with extended verbose for a driver. It is 
attached.

I want to understand, why and where does this command come from. And how 
to turn it off. Now there is no suspend support working on my board, but 
i don't want to turn suspend (PM runtime) off at all, because it may be 
need to set it up in future.
Please, help.


[-- Attachment #2: boot-log-part --]
[-- Type: text/plain, Size: 5747 bytes --]

sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.1: clock source 0: mmc_busclk.0 (133500000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: mmc_busclk.2 (96000000 Hz)
sdhci_add_host
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using PIO
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
sdhci_runtime_suspend_host
[<c000e820>] (unwind_backtrace+0x0/0x12c) from [<c03948f4>] (dump_stack+0x20/0x24)
[<c03948f4>] (dump_stack+0x20/0x24) from [<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90)
[<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90) from [<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48)
[<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48) from [<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54)
[<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54) from [<c01f85c0>] (__rpm_callback+0x40/0x5c)
[<c01f85c0>] (__rpm_callback+0x40/0x5c) from [<c01f8c38>] (rpm_suspend+0x2b0/0x498)
[<c01f8c38>] (rpm_suspend+0x2b0/0x498) from [<c01f9b08>] (__pm_runtime_suspend+0x50/0x60)
[<c01f9b08>] (__pm_runtime_suspend+0x50/0x60) from [<c01f4c08>] (pm_generic_runtime_idle+0x58/0x60)
[<c01f4c08>] (pm_generic_runtime_idle+0x58/0x60) from [<c01f85c0>] (__rpm_callback+0x40/0x5c)
[<c01f85c0>] (__rpm_callback+0x40/0x5c) from [<c01f902c>] (rpm_idle+0x1a4/0x23c)
[<c01f902c>] (rpm_idle+0x1a4/0x23c) from [<c01f9180>] (__pm_runtime_idle+0x50/0x60)
[<c01f9180>] (__pm_runtime_idle+0x50/0x60) from [<c01ef91c>] (driver_probe_device+0x2f0/0x34c)
[<c01ef91c>] (driver_probe_device+0x2f0/0x34c) from [<c01ef9e4>] (__driver_attach+0x6c/0x8c)
[<c01ef9e4>] (__driver_attach+0x6c/0x8c) from [<c01edccc>] (bus_for_each_dev+0x64/0x94)
[<c01edccc>] (bus_for_each_dev+0x64/0x94) from [<c01ef260>] (driver_attach+0x28/0x30)
[<c01ef260>] (driver_attach+0x28/0x30) from [<c01eec40>] (bus_add_driver+0xd0/0x24c)
[<c01eec40>] (bus_add_driver+0xd0/0x24c) from [<c01eff9c>] (driver_register+0xac/0x13c)
[<c01eff9c>] (driver_register+0xac/0x13c) from [<c01f1110>] (platform_driver_register+0x54/0x68)
[<c01f1110>] (platform_driver_register+0x54/0x68) from [<c0517fc0>] (sdhci_s3c_driver_init+0x14/0x1c)
[<c0517fc0>] (sdhci_s3c_driver_init+0x14/0x1c) from [<c00085c8>] (do_one_initcall+0xb8/0x188)
[<c00085c8>] (do_one_initcall+0xb8/0x188) from [<c0391228>] (kernel_init+0xfc/0x2a4)
[<c0391228>] (kernel_init+0xfc/0x2a4) from [<c0009250>] (ret_from_fork+0x14/0x20)
sdhci_clear_set_irqs clear -1 set 0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP: cubic registered
NET: Registered protocol family 17
rtc-ds1307 0-0068: setting system clock to 2013-04-12 11:56:23 UTC (1365767783)
ALSA device list:
  No soundcards found.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 11468KiB [1 disk] into ram disk... sdhci_runtime_suspend_host
[<c000e820>] (unwind_backtrace+0x0/0x12c) from [<c03948f4>] (dump_stack+0x20/0x24)
[<c03948f4>] (dump_stack+0x20/0x24) from [<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90)
[<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90) from [<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48)
[<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48) from [<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54)
[<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54) from [<c01f85c0>] (__rpm_callback+0x40/0x5c)
[<c01f85c0>] (__rpm_callback+0x40/0x5c) from [<c01f8c38>] (rpm_suspend+0x2b0/0x498)
[<c01f8c38>] (rpm_suspend+0x2b0/0x498) from [<c01f9c38>] (pm_runtime_work+0x80/0x9c)
[<c01f9c38>] (pm_runtime_work+0x80/0x9c) from [<c0032fc0>] (process_one_work+0x26c/0x3e8)
[<c0032fc0>] (process_one_work+0x26c/0x3e8) from [<c00349d8>] (worker_thread+0x290/0x394)
[<c00349d8>] (worker_thread+0x290/0x394) from [<c0039444>] (kthread+0xb8/0xc4)
[<c0039444>] (kthread+0xb8/0xc4) from [<c0009250>] (ret_from_fork+0x14/0x20)
sdhci_clear_set_irqs clear -1 set 0
usb 1-1: new full-speed USB device number 2 using s3c2410-ohci
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
sdhci_clear_set_irqs clear -1 set 16711683
sdhci_set_card_detection 1
sdhci_clear_set_irqs clear 0 set 64
usb 1-1: New USB device found, idVendor=0451, idProduct=2046
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
sdhci_runtime_suspend_host
[<c000e820>] (unwind_backtrace+0x0/0x12c) from [<c03948f4>] (dump_stack+0x20/0x24)
[<c03948f4>] (dump_stack+0x20/0x24) from [<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90)
[<c02b0a8c>] (sdhci_runtime_suspend_host+0x24/0x90) from [<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48)
[<c02b24a0>] (sdhci_s3c_runtime_suspend+0x24/0x48) from [<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54)
[<c01f4560>] (pm_generic_runtime_suspend+0x40/0x54) from [<c01f85c0>] (__rpm_callback+0x40/0x5c)
[<c01f85c0>] (__rpm_callback+0x40/0x5c) from [<c01f8c38>] (rpm_suspend+0x2b0/0x498)
[<c01f8c38>] (rpm_suspend+0x2b0/0x498) from [<c01f9c38>] (pm_runtime_work+0x80/0x9c)
[<c01f9c38>] (pm_runtime_work+0x80/0x9c) from [<c0032fc0>] (process_one_work+0x26c/0x3e8)
[<c0032fc0>] (process_one_work+0x26c/0x3e8) from [<c00349d8>] (worker_thread+0x290/0x394)
[<c00349d8>] (worker_thread+0x290/0x394) from [<c0039444>] (kthread+0xb8/0xc4)
[<c0039444>] (kthread+0xb8/0xc4) from [<c0009250>] (ret_from_fork+0x14/0x20)
sdhci_clear_set_irqs clear -1 set 0


             reply	other threads:[~2013-04-12 12:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 12:20 Alexander Varnin [this message]
2013-04-12 13:47 ` sdhci-s3c suspends immediately Heiko Stübner

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=5167FC1D.7020601@mail.ru \
    --to=fenixk19@mail.ru \
    --cc=linux-samsung-soc@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.