OSDN Git Service

phy: rk-inno-usb2: Decrease verbosity of repeating log.
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>
Thu, 19 Mar 2020 14:08:52 +0000 (15:08 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 20 Mar 2020 14:04:29 +0000 (19:34 +0530)
phy-rockchip-inno-usb2 logs the message

  "phy-ff2c0000.syscon:usb2-phy@100.2: charger = INVALID_CHARGER"

constantly with a frequency of about 1 Hz and a verbosity level
of INFO. As this is clearly annoying, this patch decreases
the log level to DEBUG.

Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c

index 680cc0c..a84e9f0 100644 (file)
@@ -763,7 +763,7 @@ static void rockchip_chg_detect_work(struct work_struct *work)
                /* put the controller in normal mode */
                property_enable(base, &rphy->phy_cfg->chg_det.opmode, true);
                rockchip_usb2phy_otg_sm_work(&rport->otg_sm_work.work);
-               dev_info(&rport->phy->dev, "charger = %s\n",
+               dev_dbg(&rport->phy->dev, "charger = %s\n",
                         chg_to_string(rphy->chg_type));
                return;
        default: