mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH v3 4/6] syscon: Decrease driver registration priority
Date: Mon, 16 May 2016 09:45:59 -0700	[thread overview]
Message-ID: <1463417161-28634-5-git-send-email-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <1463417161-28634-1-git-send-email-andrew.smirnov@gmail.com>

A number of devices on i.MX6 list "syscon" as second compatibility
string, among them, most importantly, is "iomuxv3" pinmux driver, which
gets probed at "postcore_initcall". Probing this driver at
"core_initcall" results in "syscon" driver usurping pinmux device and
preventing "iomuxv3" driver from loading and correctly initializing
pinmux of the system (which in turn results in a lot of sadness).

Moving this driver to be initialized at "device_initcall" time resolves
the issue.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 drivers/mfd/syscon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 9589a03..ee62da0 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -111,7 +111,7 @@ static int __init syscon_init(void)
 {
 	return platform_driver_register(&syscon_driver);
 }
-core_initcall(syscon_init);
+device_initcall(syscon_init);
 
 MODULE_AUTHOR("Dong Aisheng <dong.aisheng@linaro.org>");
 MODULE_DESCRIPTION("System Control driver");
-- 
2.5.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2016-05-16 16:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-16 16:45 [PATCH v3 0/6] AIODEV subsystem Andrey Smirnov
2016-05-16 16:45 ` [PATCH v3 1/6] drivers: Introduce " Andrey Smirnov
2016-05-16 16:45 ` [PATCH v3 2/6] commands: Add 'hwmon' command Andrey Smirnov
2016-05-16 16:45 ` [PATCH v3 3/6] syscon: Do not return NULL when driver is not selected Andrey Smirnov
2016-05-16 16:45 ` Andrey Smirnov [this message]
2016-05-16 16:46 ` [PATCH v3 5/6] aiodev: Add TEMPMON driver Andrey Smirnov
2016-05-16 16:46 ` [PATCH v3 6/6] aiodev: Add basic LM75 temperature driver Andrey Smirnov
2016-05-18  5:49 ` [PATCH v3 0/6] AIODEV subsystem Sascha Hauer

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=1463417161-28634-5-git-send-email-andrew.smirnov@gmail.com \
    --to=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox