Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2199952rwb; Sat, 29 Jul 2023 01:48:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsDi1cb6jHpchEmfG8BW8xrVHYCSKv7kadrlx8MM9mBEa2Dg/Inkty+MgSSDN27DXzlIWB X-Received: by 2002:a17:906:649e:b0:99b:bf43:732b with SMTP id e30-20020a170906649e00b0099bbf43732bmr1481076ejm.23.1690620539529; Sat, 29 Jul 2023 01:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690620539; cv=none; d=google.com; s=arc-20160816; b=vIqw2GCODfNF/g/roS850RbDGzOvnBIbODb1TlOJ+O8uC2ZbmzBlINEi6w6nhQwBEs nZr1N4mhmYyCkmDaZVx2xXYRbzJ1U6FeosaQb8O1Nc+uohQaEGN4UXEG0QdBICGPsHQR DCVXYDaVCgRZ/LM9soCSsk3tkE/TLnd1X7D3vZrEZpUTw9v2zAXcRgUsqx3yxPYZKPch nhME5gibYfXdhqX8hcJG95E68tVv8FTj6YdaBtyBQT6k72xP9VM/ZovHjHaBDEkpN81Z iIpQLoYHUclmtWtoiYQ6v2uCLLtSylos9lMmfwVaNVIsWDjjmHh0v+XeWQ1O/JrYnl7l WeLw== 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=hAHJC0Xyg2QrbHcU6a+0nCj4FYZ8BN6nUz34h/ENYtk=; fh=ACUPdMiA+6MnWwEBNJHF+bhhMu5SRMA1FfFs/TUQAcs=; b=XSreaBs89hefe7gTM0DUz6n+xmDdDT56DRx8IfuqP+hx3OqluZ7dqCKsAPw0FcSFdL Zbfvec2Qple+/LLax7ZRMnh0QXfVwPZfx9n11OHr1V2J3BXsDNT0fVrI5w1G5bD2+XtO lTcawoRXgnkpCksFPbaPoUPNYKKuYwpKiSS122BkB855yzhgL1gxogpZW19DdIGSWCJ7 FoHJSuuG45hMKgmO9zSB9v8nGtTbdpsn3kRLfH2yXNVhjUZoptZDABQuTOQBrKw6iQTm CdGP6LW1SIBHEfN9MZpn18xP6PP4G/E5KrnzVXZXAbv4C5cQMCZxxTjg8di5atmBkjU3 mZew== 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 rn3-20020a170906d92300b0098e47bbff3csi3977653ejb.297.2023.07.29.01.48.34; Sat, 29 Jul 2023 01:48:59 -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 S235285AbjG2FbZ (ORCPT + 99 others); Sat, 29 Jul 2023 01:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjG2FbW (ORCPT ); Sat, 29 Jul 2023 01:31:22 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B5D3449CA; Fri, 28 Jul 2023 22:31:18 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36T5UHcxC025140, 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 36T5UHcxC025140 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Sat, 29 Jul 2023 13:30:17 +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; Sat, 29 Jul 2023 13:30: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; Sat, 29 Jul 2023 13:30: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; Sat, 29 Jul 2023 13:30:29 +0800 From: Stanley Chang To: Greg Kroah-Hartman CC: Stanley Chang , , , kernel test robot , Vinod Koul , Kishon Vijay Abraham I , Subject: [PATCH usb-next] phy: realtek: usb: phy-rtk-usb2 and phy-rtk-usb3 needs USB_COMMON Date: Sat, 29 Jul 2023 13:30:26 +0800 Message-ID: <20230729053029.6226-1-stanley_chang@realtek.com> X-Mailer: git-send-email 2.41.0 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 When USB_COMMON are not enabled, phy-rtk-usb2 and phy-rtk-usb3 suffers a build error due to a missing usb_debug_root that is provided by CONFIG_USB_COMMON, so make the driver select USB_COMMON. or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.o: in function `create_phy_debug_root': >> drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root' >> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root' or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.o: in function `create_phy_debug_root': >> drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root' >> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root' Fixes: 134e6d25f6bd ("phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY") Fixed: adda6e82a7de ("phy: realtek: usb: Add driver for the Realtek SoC USB 3.0 PHY") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307290733.weSlHrGp-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202307291022.3pVeTR9z-lkp@intel.com/ Signed-off-by: Stanley Chang --- drivers/phy/realtek/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/realtek/Kconfig b/drivers/phy/realtek/Kconfig index a5a5a71edc9c..650e20ed69af 100644 --- a/drivers/phy/realtek/Kconfig +++ b/drivers/phy/realtek/Kconfig @@ -7,6 +7,7 @@ config PHY_RTK_RTD_USB2PHY depends on USB_SUPPORT select GENERIC_PHY select USB_PHY + select USB_COMMON help Enable this to support Realtek SoC USB2 phy transceiver. The DHC (digital home center) RTD series SoCs used the Synopsys @@ -18,6 +19,7 @@ config PHY_RTK_RTD_USB3PHY depends on USB_SUPPORT select GENERIC_PHY select USB_PHY + select USB_COMMON help Enable this to support Realtek SoC USB3 phy transceiver. The DHC (digital home center) RTD series SoCs used the Synopsys -- 2.34.1