phy: drop probe registration printks
Subsystems (5)
PATCH 1/1 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.
--- drivers/phy/broadcom/phy-bcm-ns2-pcie.c | 2 -- drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c | 1 - drivers/phy/broadcom/phy-bcm-sr-pcie.c | 2 -- drivers/phy/broadcom/phy-brcm-sata.c | 2 +- drivers/phy/marvell/phy-pxa-usb.c | 1 - drivers/phy/phy-snps-eusb2.c | 2 -- drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 2 -- drivers/phy/qualcomm/phy-qcom-m31.c | 2 -- drivers/phy/qualcomm/phy-qcom-qusb2.c | 4 +--- drivers/phy/st/phy-stih407-usb.c | 2 -- drivers/phy/st/phy-stm32-usbphyc.c | 4 ++-- drivers/phy/ti/phy-twl4030-usb.c | 1 - 12 files changed, 4 insertions(+), 21 deletions(-)
drivers/phy/broadcom/phy-bcm-ns2-pcie.c +0 -2
@@ -61,8 +61,6 @@ static int ns2_pci_phy_probe(struct mdio_device *mdiodev)return PTR_ERR (provider); } -dev_info (dev,"%s PHY registered\n" ,dev_name (dev)); -return 0 ; }
drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c +0 -1
@@ -395,7 +395,6 @@ static int ns2_drd_phy_probe(struct platform_device *pdev)platform_set_drvdata (pdev, driver); -dev_info (dev,"Registered NS2 DRD Phy device\n" );queue_delayed_work (system_power_efficient_wq, &driver->wq_extcon, driver->debounce_jiffies);
drivers/phy/broadcom/phy-bcm-sr-pcie.c +0 -2
@@ -277,8 +277,6 @@ static int sr_pcie_phy_probe(struct platform_device *pdev)return PTR_ERR (provider); } -dev_info (dev,"Stingray PCIe PHY driver initialized\n" ); -return 0 ; }
drivers/phy/broadcom/phy-brcm-sata.c +1 -1
@@ -832,7 +832,7 @@ static int brcm_sata_phy_probe(struct platform_device *pdev)return PTR_ERR (provider); } -dev_info (dev,"registered %d port(s)\n" , count); +dev_dbg (dev,"registered %d port(s)\n" , count);return 0 ; }
drivers/phy/marvell/phy-pxa-usb.c +0 -1
@@ -325,7 +325,6 @@ static int pxa_usb_phy_probe(struct platform_device *pdev)phy_create_lookup (pxa_usb_phy->phy,"usb" ,"mv-otg" ); } -dev_info (dev,"Marvell PXA USB PHY" );return 0 ; }
drivers/phy/phy-snps-eusb2.c +0 -2
@@ -599,8 +599,6 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider); -dev_info (dev,"Registered Snps-eUSB2 phy\n" ); -return 0 ; }
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +0 -2
@@ -264,8 +264,6 @@ static int eusb2_repeater_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider); -dev_info (dev,"Registered Qcom-eUSB2 repeater\n" ); -return 0 ; }
drivers/phy/qualcomm/phy-qcom-m31.c +0 -2
@@ -305,8 +305,6 @@ static int m31usb_phy_probe(struct platform_device *pdev)phy_set_drvdata (qphy->phy, qphy); phy_provider =devm_of_phy_provider_register (dev, of_phy_simple_xlate); -if (!IS_ERR (phy_provider)) -dev_info (dev,"Registered M31 USB phy\n" );return PTR_ERR_OR_ZERO (phy_provider); }
drivers/phy/qualcomm/phy-qcom-qusb2.c +1 -3
@@ -1139,9 +1139,7 @@ static int qusb2_phy_probe(struct platform_device *pdev)phy_set_drvdata (generic_phy, qphy); phy_provider =devm_of_phy_provider_register (dev, of_phy_simple_xlate); -if (!IS_ERR (phy_provider)) -dev_info (dev,"Registered Qcom-QUSB2 phy\n" ); -else +if (IS_ERR (phy_provider))pm_runtime_disable (dev);return PTR_ERR_OR_ZERO (phy_provider);
drivers/phy/st/phy-stih407-usb.c +0 -2
@@ -139,8 +139,6 @@ static int stih407_usb2_picophy_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider); -dev_info (dev,"STiH407 USB Generic picoPHY driver probed!" ); -return 0 ; }
drivers/phy/st/phy-stm32-usbphyc.c +2 -2
@@ -757,8 +757,8 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) } version =readl_relaxed (usbphyc->base +STM32_USBPHYC_VERSION ); -dev_info (dev,"registered rev:%lu.%lu\n" , -FIELD_GET (MAJREV , version),FIELD_GET (MINREV , version)); +dev_dbg (dev,"registered rev: %lu.%lu\n" , +FIELD_GET (MAJREV , version),FIELD_GET (MINREV , version));return 0 ;
drivers/phy/ti/phy-twl4030-usb.c +0 -1
@@ -784,7 +784,6 @@ static int twl4030_usb_probe(struct platform_device *pdev)pm_runtime_mark_last_busy (&pdev->dev);pm_runtime_put_autosuspend (twl->dev); -dev_info (&pdev->dev,"Initialized TWL4030 USB module\n" );return 0 ; }
Signature · 1 line
2.49.0
Quoted 13 lines · Johan Hovold
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
Quoted 1 line
[...]
Applied, thanks!
[1/1] phy: drop probe registration printks
commit: 95463cbb4fe6489921fb8c72890113dca54ce83f
Best regards,
Signature · 1 line
~Vinod