]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: drop probe registration printks
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 23 May 2025 08:51:12 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:41 +0000 (11:18 +0100)
[ Upstream commit 95463cbb4fe6489921fb8c72890113dca54ce83f ]

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>
Stable-dep-of: 1ca52c0983c3 ("phy: qcom-qusb2: Fix NULL pointer dereference on early suspend")
Signed-off-by: Sasha Levin <sashal@kernel.org>
12 files changed:
drivers/phy/broadcom/phy-bcm-ns2-pcie.c
drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
drivers/phy/broadcom/phy-bcm-sr-pcie.c
drivers/phy/broadcom/phy-brcm-sata.c
drivers/phy/marvell/phy-pxa-usb.c
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
drivers/phy/qualcomm/phy-qcom-m31.c
drivers/phy/qualcomm/phy-qcom-qusb2.c
drivers/phy/qualcomm/phy-qcom-snps-eusb2.c
drivers/phy/st/phy-stih407-usb.c
drivers/phy/st/phy-stm32-usbphyc.c
drivers/phy/ti/phy-twl4030-usb.c

index 2eaa41f8fc70c8a45a6bb99d001009b0c7533f77..67a6ae5ecba0216967fdfe0c7607c3d317b2f5b8 100644 (file)
@@ -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;
 }
 
index 36ad02c33ac556ed977acae9dd7a8094d162b532..8473fa5745296de0444edea70f39ff66d19251e4 100644 (file)
@@ -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);
 
index ff9b3862bf7af42473cf80f739123e54d114787d..706e1d83b4ceec28286d6208055686f1a61842fc 100644 (file)
@@ -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;
 }
 
index 228100357054d9c2069f6ceee408b4d469f7f0a6..d52dd065e862289e2cf823d265ab229023e28056 100644 (file)
@@ -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;
 }
index 6c98eb9608e9c1f0c42deef70be0a86b9db834a1..c0bb71f80c0420fc63be56da02306c3de2b3ba53 100644 (file)
@@ -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;
 }
 
index c173c6244d9e56c1d3faee1414654df9ffbcd0c5..3b68d20142e01c0282d71412f5bebd56d238d5ef 100644 (file)
@@ -241,8 +241,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;
 }
 
index 8b0f8a3a059c21743c9024c49f76b5d52ac6ab1e..168ea980fda03de502dff8bb39134d6f844f28f7 100644 (file)
@@ -311,8 +311,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);
 }
index c52655a383cef008552ed4533b9f31d1cbf34a13..531c3860c3160d4968f8b8bf1088036c2e4dd5e1 100644 (file)
@@ -1084,9 +1084,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);
index e1b175f481b4e125530d67d66926c867ad378abf..4a1dfef5ff8ff65285aa755924b355f3f89cb449 100644 (file)
@@ -418,8 +418,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;
 }
 
index a4ae2cca7f637bcfb61db08505dd5ddb0c7679c9..02e6117709dca853eaeea06db0dbb6738e39fb94 100644 (file)
@@ -149,8 +149,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;
 }
 
index 9dbe60dcf3190d0e96b0fa915f784d1a91ec7701..dbf23ae38255aacbf9dc5503bb45c86656feb540 100644 (file)
@@ -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;
 
index 6b265992d988faff2abbb564b454761ab1d3c313..e5918d3b486ccda342b4f661ed428a1f7aeec4ab 100644 (file)
@@ -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;
 }