Skip to contentSkip to conversation

button: qcom-pmic: demote "unknown button" message to debug

PATCH In review Caleb Connolly 3 participants 3 messages Feb 9, 2024 – Feb 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 button: qcom-pmic: demote "unknown button" message to debug

This message isn't an error (there can be a watchdog subnode for example) but it shouldn't be printed unless this driver is being debugged. Demote it to a debug print.

---
 drivers/button/button-qcom-pmic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/button/button-qcom-pmic.c +1 -1
index 34a976d1e6c6..e6702139ca2d 100644
@@ -133,7 +133,7 @@ static int button_qcom_pmic_bind(struct udevice *parent)
 		} else if (NODE_IS_RESIN(node)) {
 			uc_plat->label = "vol_down";
 		} else {
-			printf("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
+			debug("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
 			       ofnode_get_name(node));
 			device_unbind(dev);
 		}
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Caleb Connolly

This message isn't an error (there can be a watchdog subnode for example) but it shouldn't be printed unless this driver is being debugged. Demote it to a debug print.

---
 drivers/button/button-qcom-pmic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-Sumit

Quoted 16 lines
drivers/button/button-qcom-pmic.c +1 -2
index 34a976d1e6c6..e6702139ca2d 100644
@@ -133,7 +133,7 @@ static int button_qcom_pmic_bind(struct udevice *parent)
                } else if (NODE_IS_RESIN(node)) {
                        uc_plat->label = "vol_down";
                } else {
-                       printf("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
+                       debug("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
                               ofnode_get_name(node));
                        device_unbind(dev);
                }
--

2.43.0

Reviewed-by on v1 1/1
#2 lore raw
In reply to Caleb Connolly
Quoted 14 lines · Caleb Connolly

This message isn't an error (there can be a watchdog subnode for example) but it shouldn't be printed unless this driver is being debugged. Demote it to a debug print.

---
  drivers/button/button-qcom-pmic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/button/button-qcom-pmic.c +0 -0
index 34a976d1e6c6..e6702139ca2d 100644

drivers/button/button-qcom-pmic.c static int button_qcom_pmic_bind(struct udevice *parent) · line 139

Quoted 8 lines
drivers/button/button-qcom-pmic.c +1 -1
@@ -133,7 +133,7 @@ static int button_qcom_pmic_bind(struct udevice *parent)
  		} else if (NODE_IS_RESIN(node)) {
  			uc_plat->label = "vol_down";
  		} else {
-			printf("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
+			debug("Unknown button node '%s' should be 'pwrkey' or 'resin'\n",
  			       ofnode_get_name(node));
  			device_unbind(dev);
  		}