Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: drop probe registration printks

Drivers should generally be quiet on successful probe, but this is not
followed by some PHY drivers, for example:

snps-eusb2-hsphy 88e1000.phy: Registered Snps-eUSB2 phy
qcom-eusb2-repeater c432000.spmi:pmic@7:phy@fd00: Registered Qcom-eUSB2 repeater
qcom-eusb2-repeater c432000.spmi:pmic@a:phy@fd00: Registered Qcom-eUSB2 repeater
qcom-eusb2-repeater c432000.spmi:pmic@b:phy@fd00: Registered Qcom-eUSB2 repeater
snps-eusb2-hsphy fd3000.phy: Registered Snps-eUSB2 phy
snps-eusb2-hsphy fd9000.phy: Registered Snps-eUSB2 phy
snps-eusb2-hsphy fde000.phy: Registered Snps-eUSB2 phy
snps-eusb2-hsphy 88e0000.phy: Registered Snps-eUSB2 phy
snps-eusb2-hsphy 88e2000.phy: Registered Snps-eUSB2 phy

Drop (or demote to debug level) unnecessary registration info messages
to make boot logs a little less noisy.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250523085112.11287-1-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
95463cbb 351e07e6

+4 -21
-2
drivers/phy/broadcom/phy-bcm-ns2-pcie.c
··· 61 61 return PTR_ERR(provider); 62 62 } 63 63 64 - dev_info(dev, "%s PHY registered\n", dev_name(dev)); 65 - 66 64 return 0; 67 65 } 68 66
-1
drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
··· 395 395 396 396 platform_set_drvdata(pdev, driver); 397 397 398 - dev_info(dev, "Registered NS2 DRD Phy device\n"); 399 398 queue_delayed_work(system_power_efficient_wq, &driver->wq_extcon, 400 399 driver->debounce_jiffies); 401 400
-2
drivers/phy/broadcom/phy-bcm-sr-pcie.c
··· 277 277 return PTR_ERR(provider); 278 278 } 279 279 280 - dev_info(dev, "Stingray PCIe PHY driver initialized\n"); 281 - 282 280 return 0; 283 281 } 284 282
+1 -1
drivers/phy/broadcom/phy-brcm-sata.c
··· 832 832 return PTR_ERR(provider); 833 833 } 834 834 835 - dev_info(dev, "registered %d port(s)\n", count); 835 + dev_dbg(dev, "registered %d port(s)\n", count); 836 836 837 837 return 0; 838 838 }
-1
drivers/phy/marvell/phy-pxa-usb.c
··· 325 325 phy_create_lookup(pxa_usb_phy->phy, "usb", "mv-otg"); 326 326 } 327 327 328 - dev_info(dev, "Marvell PXA USB PHY"); 329 328 return 0; 330 329 } 331 330
-2
drivers/phy/phy-snps-eusb2.c
··· 599 599 if (IS_ERR(phy_provider)) 600 600 return PTR_ERR(phy_provider); 601 601 602 - dev_info(dev, "Registered Snps-eUSB2 phy\n"); 603 - 604 602 return 0; 605 603 } 606 604
-2
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
··· 264 264 if (IS_ERR(phy_provider)) 265 265 return PTR_ERR(phy_provider); 266 266 267 - dev_info(dev, "Registered Qcom-eUSB2 repeater\n"); 268 - 269 267 return 0; 270 268 } 271 269
-2
drivers/phy/qualcomm/phy-qcom-m31.c
··· 305 305 phy_set_drvdata(qphy->phy, qphy); 306 306 307 307 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); 308 - if (!IS_ERR(phy_provider)) 309 - dev_info(dev, "Registered M31 USB phy\n"); 310 308 311 309 return PTR_ERR_OR_ZERO(phy_provider); 312 310 }
+1 -3
drivers/phy/qualcomm/phy-qcom-qusb2.c
··· 1114 1114 phy_set_drvdata(generic_phy, qphy); 1115 1115 1116 1116 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); 1117 - if (!IS_ERR(phy_provider)) 1118 - dev_info(dev, "Registered Qcom-QUSB2 phy\n"); 1119 - else 1117 + if (IS_ERR(phy_provider)) 1120 1118 pm_runtime_disable(dev); 1121 1119 1122 1120 return PTR_ERR_OR_ZERO(phy_provider);
-2
drivers/phy/st/phy-stih407-usb.c
··· 139 139 if (IS_ERR(phy_provider)) 140 140 return PTR_ERR(phy_provider); 141 141 142 - dev_info(dev, "STiH407 USB Generic picoPHY driver probed!"); 143 - 144 142 return 0; 145 143 } 146 144
+2 -2
drivers/phy/st/phy-stm32-usbphyc.c
··· 757 757 } 758 758 759 759 version = readl_relaxed(usbphyc->base + STM32_USBPHYC_VERSION); 760 - dev_info(dev, "registered rev:%lu.%lu\n", 761 - FIELD_GET(MAJREV, version), FIELD_GET(MINREV, version)); 760 + dev_dbg(dev, "registered rev: %lu.%lu\n", 761 + FIELD_GET(MAJREV, version), FIELD_GET(MINREV, version)); 762 762 763 763 return 0; 764 764
-1
drivers/phy/ti/phy-twl4030-usb.c
··· 784 784 pm_runtime_mark_last_busy(&pdev->dev); 785 785 pm_runtime_put_autosuspend(twl->dev); 786 786 787 - dev_info(&pdev->dev, "Initialized TWL4030 USB module\n"); 788 787 return 0; 789 788 } 790 789