Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6918885rwr; Wed, 10 May 2023 00:55:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6B3GxR5aIix0G9lq7zrNAiWMstcItUVAs9zW4OT0coLnCP2TQunnyKA/xmLz2NNYNJHwWJ X-Received: by 2002:a17:903:1247:b0:1ab:afd:903a with SMTP id u7-20020a170903124700b001ab0afd903amr21913545plh.24.1683705338766; Wed, 10 May 2023 00:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683705338; cv=none; d=google.com; s=arc-20160816; b=lUnhzJyb0bRlI/+19y4LdRNZTGPg/FBAnG4k5L0ep5jFp14NXj4THZsywYD2QzAmzy chTZA3vMA0CFS3nrdMSiKQAJdfRrUhE+tSCo+5MI9RAB6rfmEB2bHh0vZ52nSeCaT4b3 rmrS0YsnclZwPseoilmteAv6cXJ7sGXzaFv6DAYiL2y4Tz58s6BLPD4wY0QF+JcHRg+A oAhELFLjQeHuo5+lmJt+SNLYhTXfSu2yqVjl7SGUkucuyTY1obnCSdDxSj5QYOgTZcPO mtdpmhBSWVNKwgguLaEM6DtNEXy5qGADLFzhXyrW+bLOCJdEtSJ9eE3noI7lPSJfYKWv bDLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:authenticated-by; bh=IJGgh8G3BuIEVCJg8I8WgXmf7MVgrSGhoZkqUwuSZUA=; b=kozqivuPDN9vzDFSOxMfOzJq53kmufgCACZGGPjXLB/zBgYI3HwNIFTzDlI/wXEyNI YdIp5rq0vfbEQis+nomkQH0sq4251dMPJUjYBRoiFXKDKRq75lC/vztVllQYrznSyMp9 n3MXDZima3CbNVyaSiXSVANdvpdpxbznsAZS5Q5mq9tlZuwTN5dyt15vvOGFb1DSEerv 7yFLcPHmIAd9sJA1X2aPVKMQ+yd0YBQz8zOSjRNFx7SxwlKDZvLJ1nTB4BtRbzCDhSfL d5i08BIT3k8qH8OvbFyiQ4YmTnXgnMcoyS/LhZKo6jgMOSm9LFYKFbfkj2xfEne3VUCf q9Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a1709027e8600b001aafe496e6dsi3354354pla.539.2023.05.10.00.55.23; Wed, 10 May 2023 00:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236312AbjEJHvn (ORCPT + 99 others); Wed, 10 May 2023 03:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236223AbjEJHvl (ORCPT ); Wed, 10 May 2023 03:51:41 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D447D116; Wed, 10 May 2023 00:51:38 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 34A7pNtM5009224, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 34A7pNtM5009224 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Wed, 10 May 2023 15:51:24 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 10 May 2023 15:51:30 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 10 May 2023 15:51:29 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2375.32 via Frontend Transport; Wed, 10 May 2023 15:51:29 +0800 From: Stanley Chang To: Greg Kroah-Hartman CC: Stanley Chang , Klaus Kudielka , Mathias Nyman , , Subject: [PATCH v1] usb: xhci: plat: remove error log for failure to get usb-phy Date: Wed, 10 May 2023 15:51:29 +0800 Message-ID: <20230510075129.28047-1-stanley_chang@realtek.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXDAG02.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove this log to avoid non-error conditions. If CONFIG_USB_PHY is disabled, the following error message appears: [ 0.231609] xhci-hcd f10f0000.usb3: xhci_plat_probe get usb3phy fail (ret=-6) [ 0.239716] xhci-hcd f10f8000.usb3: xhci_plat_probe get usb3phy fail (ret=-6) In this case, devm_usb_get_phy_by_phandle is declared static inline and returns -ENXIO. It is easy to pinpoint the failure to get the usb-phy using the debug log in drivers/usb/phy/phy.c. Therefore, it can be removed. Signed-off-by: Stanley Chang --- drivers/usb/host/xhci-plat.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index b0c8e8efc43b..6a45ee431945 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -294,10 +294,6 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 1); if (IS_ERR(xhci->shared_hcd->usb_phy)) { - if (PTR_ERR(xhci->shared_hcd->usb_phy) != -ENODEV) - dev_err(sysdev, "%s get usb3phy fail (ret=%d)\n", - __func__, - (int)PTR_ERR(xhci->shared_hcd->usb_phy)); xhci->shared_hcd->usb_phy = NULL; } else { ret = usb_phy_init(xhci->shared_hcd->usb_phy); -- 2.34.1