From: Roger Quadros <rogerq@kernel.org>
To: trini@konsulko.com, nm@ti.com
Cc: vigneshr@ti.com, s-vadapalli@ti.com, srk@ti.com,
r-gunasekaran@ti.com, u-boot@lists.denx.de,
Roger Quadros <rogerq@kernel.org>
Subject: [PATCH 1/3] mux: autoprobe if "idle-states" present in device tree
Date: Wed, 31 Jan 2024 15:33:46 +0200 [thread overview]
Message-ID: <20240131133348.182987-2-rogerq@kernel.org> (raw)
In-Reply-To: <20240131133348.182987-1-rogerq@kernel.org>
Some platforms need the MUX state to be auto initialized at
boot time even if there are no explicit users for the MUX.
In these cases, the MUX device tree has "idle-states" property
which specifies what state the MUX should be initialized to.
So far we were relying on custom u-boot property "u-boot,mux-autoprobe"
to autoprobe such MUXes. This patch causes the MUX to autoprobe
if it has "idle-states" property in device tree.
This should allow us to stop using the custom "u-boot,mux-autoprobe"
property.
Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
drivers/mux/mux-uclass.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mux/mux-uclass.c b/drivers/mux/mux-uclass.c
index c98576ceb8..8833888ded 100644
--- a/drivers/mux/mux-uclass.c
+++ b/drivers/mux/mux-uclass.c
@@ -318,7 +318,8 @@ int dm_mux_init(void)
return ret;
}
uclass_foreach_dev(dev, uc) {
- if (dev_read_bool(dev, "u-boot,mux-autoprobe")) {
+ if (dev_read_bool(dev, "u-boot,mux-autoprobe") ||
+ dev_read_bool(dev, "idle-states")) {
ret = device_probe(dev);
if (ret)
log_debug("unable to probe device %s\n",
--
2.34.1
next prev parent reply other threads:[~2024-01-31 13:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 13:33 [PATCH 0/3] mux: Drop usage of "u-boot,mux-autoprobe" Roger Quadros
2024-01-31 13:33 ` Roger Quadros [this message]
2024-01-31 13:33 ` [PATCH 2/3] arm: dts: k3-u-boot: Drop usage of "u-boot, mux-autoprobe" Roger Quadros
2024-01-31 13:33 ` [PATCH 3/3] arm: dts: k3-u-boot: Add missing "bootph-all" property to MUX nodes Roger Quadros
2024-01-31 14:14 ` [PATCH 0/3] mux: Drop usage of "u-boot,mux-autoprobe" Tom Rini
2024-02-29 3:05 ` Tom Rini
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=20240131133348.182987-2-rogerq@kernel.org \
--to=rogerq@kernel.org \
--cc=nm@ti.com \
--cc=r-gunasekaran@ti.com \
--cc=s-vadapalli@ti.com \
--cc=srk@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/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