Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-10-2018, 03:43 AM   #1
Registered: Aug 2017
Posts: 30

Rep: Reputation: Disabled
Designed image with no PMIC board issue

I'm working on i.MX6 DL sabreSD board which has no PMIC and OS is Android 6.

This was what I did.
  1. disable Power Management driver configuration
  2. disabled PFUZE100 power Management IC driver

After I had done all this configuration settings I rebuild image.

And I got errors.
host C++: libicuuc-host_32 <= external/icu/icu4c/source/common/ustrenum.cpp
drivers/pci/host/pci-imx6.c:1413:10: error: 'pci_imx_pm_ops' undeclared here (not in a function)
.pm = &pci_imx_pm_ops,
make[4]: *** [drivers/pci/host/pci-imx6.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [drivers/pci/host] Error 2
make[3]: *** Waiting for unfinished jobs....
After I traced the code I found that "pci_imx_pm_ops" is defined at pci-imx6.c

static const struct dev_pm_ops pci_imx_pm_ops = {
.suspend_noirq = pci_imx_suspend_noirq,
.resume_noirq = pci_imx_resume_noirq,
.freeze_noirq = pci_imx_suspend_noirq,
.thaw_noirq = pci_imx_resume_noirq,
.poweroff_noirq = pci_imx_suspend_noirq,
.restore_noirq = pci_imx_resume_noirq,
static struct platform_driver imx6_pcie_driver = {
.driver = {
.name = "imx6q-pcie",
.of_match_table = imx6_pcie_of_match,
.pm = &pci_imx_pm_ops,
.shutdown = imx6_pcie_shutdown,
As you can see pci_imx_pm_ops is defined in CONFIG_PM_SLEEP but since I disabled CONFIG_PM the CONFIG_PM_SLEEP will also be disabled.

That means code will not defined pci_imx_pm_ops.

But imx6_pcie_driver still defined ".pm = &pci_imx_pm_ops" at the end of the code even pci_imx_pm_ops do not be defined at all.

This is what I can not understand.

If pci_imx_pm_ops is defined in CONFIG_PM_SLEEP why did imx6_pcie_driver's ".pm = &pci_imx_pm_ops" do not defined in CONFIG_PM_SLEEP.

What if I mark out ".pm = &pci_imx_pm_ops", would kernel system appear with error that I didn't know?

  • Am I doing the right way?
  • If I mark out "pci_imx_pm_ops", would system get error ?
  • Did anyone got any experience or document on designed image with no PMIC?
Thanks in Advanced!
Old 07-25-2018, 02:41 AM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
The module dependencies are probably messed up. Did you edit .config?


android, imx6, kernel, power management

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] is it needed to flash kernel image and rootfs image separately in embedded board? ayyasprings Linux - Embedded & Single-board computer 11 10-16-2014 10:31 AM
Loading Linux Image from U-Boot for Xilinx ML507 Board manikumar086 Linux - Newbie 0 10-12-2011 09:55 AM
program usring SDL lib run at ARM board, show image speed is very slow. yuechun Linux - Software 0 12-22-2009 07:55 AM
BAD block Image file s3c2440-IV board kennyha85 Linux - Newbie 0 12-10-2009 10:53 AM
Will rfs change when kernel image is built(for a target board) LN85 Linux - Kernel 3 07-04-2007 04:34 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration