U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@kernel.org>
To: Tom Rini <trini@konsulko.com>, vigneshr@ti.com, nm@ti.com
Cc: j-humphreys@ti.com, srk@ti.com, s-vadapalli@ti.com,
	 u-boot@lists.denx.de, Roger Quadros <rogerq@kernel.org>
Subject: [PATCH] phy: don't spam console if phys property is absent in device node
Date: Tue, 03 Dec 2024 22:57:36 +0200	[thread overview]
Message-ID: <20241203-nophys-v1-1-a5fdbccd2af9@kernel.org> (raw)

In generic_phy_get_bulk(), if 'phys' property is absent in
the device node then it is not an error condition.

Change print message verbosity to debug to avoid spamming
console in such cases.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
 drivers/phy/phy-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c
index 777d952b041..714be123856 100644
--- a/drivers/phy/phy-uclass.c
+++ b/drivers/phy/phy-uclass.c
@@ -415,7 +415,7 @@ int generic_phy_get_bulk(struct udevice *dev, struct phy_bulk *bulk)
 	if (!dev_read_prop(dev, "phys", NULL)) {
 		phydev = dev->parent;
 		if (!dev_read_prop(phydev, "phys", NULL)) {
-			pr_err("%s : no phys property\n", __func__);
+			pr_debug("%s : no phys property\n", __func__);
 			return 0;
 		}
 	}

---
base-commit: 3073246d1be682071d8b3d07d06c2484907aed60
change-id: 20241203-nophys-0b539d183a16

Best regards,
-- 
Roger Quadros <rogerq@kernel.org>


             reply	other threads:[~2024-12-03 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 20:57 Roger Quadros [this message]
2024-12-06  6:49 ` [PATCH] phy: don't spam console if phys property is absent in device node Siddharth Vadapalli
2024-12-19  3:10 ` 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=20241203-nophys-v1-1-a5fdbccd2af9@kernel.org \
    --to=rogerq@kernel.org \
    --cc=j-humphreys@ti.com \
    --cc=nm@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