mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
BACKPORT: usb: xhci: plat: remove error log for failure to get usb-phy
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 <stanley_chang@realtek.com>
Tested-by: Klaus Kudielka <klaus.kudielka@gmail.com>
Link: https://lore.kernel.org/r/20230510075129.28047-1-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 286930662
(cherry picked from commit 424e02931e
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Change-Id: I872ceb810cd0389700342911cc601f1703d557cd
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4b219f7fc9
commit
61067bd1c2
@@ -341,9 +341,6 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user