Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4306810rwd; Tue, 23 May 2023 06:11:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pUZndE5VBX8WYIlFXGyvczzvG4PbUdgsLFh6QdSqvg3t8P0ZgInwYMbB4GbchB/29kRQE X-Received: by 2002:a05:6a21:918c:b0:106:3b67:b5db with SMTP id tp12-20020a056a21918c00b001063b67b5dbmr12963298pzb.18.1684847472280; Tue, 23 May 2023 06:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684847472; cv=none; d=google.com; s=arc-20160816; b=SIVoi3iVp37rEJHh89ze/SOk4lEL+jQk+hnq59ksudw8Ygnh+lRWJswRoya3W5OVsw 83MTtQaalkGXOKJigr//oZEfYvSniES5KR477G37SKkub34SWMCY3EIxjtlimXwdpWYK y4IwUObzqvFvSXl6SY05jnkz1uUdLARNpxjizwW73hjPx/8M1BpdLaKmbz2P/RdWoHTV FJJSeN9OUR9+DeUYN2eJB+3Mm79iBB1slgpCKVpAZylKbFwfSBDK8SusAahYv5MfY0ko tczXLhvqk4jOHuMncnpv9luTFiAOwG2t14Ji+PAEyWF5ixhdXqq0UAiu0MlipIB8Atcd V1VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VDihVEcLMzk57R5AAVHXoIgG6xvJ+4UJ9czggKvd4OQ=; b=afAEpR6RP8ccpQT3/x7AO29LsaOsrAwOalsn3g4wqXvfH8WcHi9qVQrCWGxmw74SOp Atu4gTZN/YfXySGXwbFDoDmAe51ZTuin9BE0KP+Jf75Wpq89stRQT1QvorQz/UXzemb5 4SvhSIr2q3rWEtl7HEfbKUNrUh96D1bbWFyl5Sokja4KLJHxsejI6eZqkK5cNIUbOZCN gCG5LXkKuZmtjX6mZziigpCh/nw6JSdHJwO8gJ8dnFIe+FjQf2OsK+fu19EGzUeIqPm5 nBHPaY2lOaD0w7Cl5Xd7NwF5dg5wkjLKdj+OnbkdRCqDAs07MXYUHMIjVus5f82lHjZO ZAAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=maNowJRK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a63be49000000b00535f192eac4si1302130pgo.128.2023.05.23.06.10.59; Tue, 23 May 2023 06:11:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=maNowJRK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236929AbjEWMli (ORCPT + 99 others); Tue, 23 May 2023 08:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236865AbjEWMlg (ORCPT ); Tue, 23 May 2023 08:41:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C837132; Tue, 23 May 2023 05:41:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC6DC631F6; Tue, 23 May 2023 12:41:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D9F2C433EF; Tue, 23 May 2023 12:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684845687; bh=eUBl+ZnfzYeZ0g6XjgKIvOJMemP5JTgiBEpuJ7440Hw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=maNowJRK9Qh5A3qhRgIyp9jFenpldl102b9JSGZp9s4oECGdWln5gmVv2loSK3BYI vzeWe55TTWaF1qZIBkXzTdDHMma2zio8wmC3imoo7No7DFhwTB2fargizkolFokBsE UC6BWztRhrj+DjZiB4NcjrsDJg0F1gWhi9TkE8ZvOcMgU7an/39FhInIBWmd1HoJrM f0ynnXgIErxsaRhJJ2IAwwg7HXNaSzcnjUIDNWNsYaeA2iHFBKVe4e02hLpjkkqlnC s0RtBGX2VwfwQvXJIc0+OQuXemwNJSB87Hw2SyXhrv22qcahbSNQle0Nf6PD3KhePK VaxtWaar6NhUA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q1RKT-0003qL-V1; Tue, 23 May 2023 14:41:30 +0200 Date: Tue, 23 May 2023 14:41:29 +0200 From: Johan Hovold To: Stanley Chang , Greg Kroah-Hartman Cc: Klaus Kudielka , Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] usb: xhci: plat: remove error log for failure to get usb-phy Message-ID: References: <20230510075129.28047-1-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230510075129.28047-1-stanley_chang@realtek.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, May 10, 2023 at 03:51:29PM +0800, Stanley Chang wrote: > 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 This one fixes the annoying bogus error messages that started showing up in 6.4-rc on the Lenovo X13s and other machines not using the legacy PHY drivers: Fixes: 9134c1fd0503 ("usb: xhci: plat: Add USB 3.0 phy support") Reviewed-by: Johan Hovold Tested-by: Johan Hovold Greg, I noticed you applied this one for 6.5; any chance we could get this fixed already in 6.4 which has the offending commit? > --- > 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); Johan