From patchwork Mon Mar 4 20:23:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159602 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4176609jad; Mon, 4 Mar 2019 12:24:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYIsrPYStQHpntyTNH2T7fOzX5TuXBKmfxpaXElQQ3Nj4SUnAE9YnPcwPYh3WxfgimJd9sR X-Received: by 2002:a62:fb10:: with SMTP id x16mr21794797pfm.5.1551731075414; Mon, 04 Mar 2019 12:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551731075; cv=none; d=google.com; s=arc-20160816; b=zlzgRwOSRZ2wrB3VAoS6y3zlySqie4jaxFQe4/u1HXdeAJrcaFIFKxoM/PGouNyW5a cO7elazBUFnsoNBc0fRnFUdX1kPCeiZlU0vxfvioFMX7ztC0yScnSSqv8rHC0wpDq9L0 IwzDLJv+fVIhkjLPlpVpw7AhmRnu4UXr1jVI0GAiYR610W25gQVeOxSCvlaUvlD9iT6r +eFztwh26D4+KNBj9XHzyJAmHyxJp/ICwjSGn0VJf1vvvvhiuGiiX1D8v2n8MPNTeL2p f0EoEFCyjQX0cYwu4uhgM3VFvMTJayMnsPqjWtgUWnqfKMEdxYa+LKEzthTQVpiFkS+m kqsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iQXb9m8YCFNohJSQ3lYyTMvtREnotdHdK1h2E1VTjIU=; b=xhRfkcn6K5M3dsldOEwav/FisvWQtag19c6N43evxet6YhLszUctIQPZOxUn8n6wuR 5lwwRp4FcKMUIQw4qJNaugqFmvzQjqRKZeCAy3R0REM7HDVtS0kLOsYHWxhB19WcP7B+ SH58UjDhbS2oAv2XqvdU4jFHm7fdkt3L12KllAFbjIrTQ9ayiSBRg8/q8/0m0TiNyn1B Z3LeMP7IMclvMNJf57Ilmw3s+GycqDmII7ZmGXoWrs5NUMmrEQLFDdl7Y7sudislhIAE H+fydpF2dNWp0bq60ejVVsIxLSQFvFesGhbj+Tshj17rqxLWAbJRVTlvBEDR2fDCz3CG 8/kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63si5947050pgb.248.2019.03.04.12.24.35; Mon, 04 Mar 2019 12:24:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbfCDUYd (ORCPT + 31 others); Mon, 4 Mar 2019 15:24:33 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:34529 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbfCDUYd (ORCPT ); Mon, 4 Mar 2019 15:24:33 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MHFwM-1gnkyI0qI4-00DIlm; Mon, 04 Mar 2019 21:24:26 +0100 From: Arnd Bergmann To: Kishon Vijay Abraham I , Roger Quadros , Sekhar Nori , "David S. Miller" , Jason Gunthorpe , Arnd Bergmann , Grygorii Strashko Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/3] phy: ti: usb2: fix OMAP_CONTROL_PHY dependency Date: Mon, 4 Mar 2019 21:23:57 +0100 Message-Id: <20190304202406.1716350-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190304202406.1716350-1-arnd@arndb.de> References: <20190304202406.1716350-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:JQmSenYXKz0L0BH+G3P7TY1KisuMQn0QAx1QkrKe2qDgQGQMrTQ ESSgdIMGeWW9yzezgH/Qx9E0QJBCyIppPHjLqXU1kAQEDVDDq1X7+3SklTrCn5133oVA7kd HPcAvx7ub5KYYTcZYkPmJ383/IC69nkGTQKXLgdi+yHmtCqwufG5D8KJGMCk1TfYQEmvMc6 gS3hOTsbvjl1+PNeJQdYw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:FRjI4uFPDe4=:N9u4e4zQicx39gEeMMAziA XkdZIZ4KZEfeYXi1KcNK4e/QFcFkGfsAf8D1TP2Gjk1f9YLult+/0ryKjoj0cwblahtP6ojXT o9K9YCxnNxp9E9/UAqEbFYeA08YKaqgBoU8wvyxyWkLWK3F55D0/YQa66hcLNkxqGb3GjpJ6Y Q96QRd45lQsjjpFush718wbCv8a4KVwX0AhN2HN7n4cNvDKDfOTbTbIAaB/l1JO74ydoc6fdg qh81ggJokvmxqFCJlUjylWfRu+8YiPYKqFS0JyEm1rr6csb/qiaxnz5iqB9ZDaZL683vcmMAc vmHLrXA0WQg29l9Pr8Hu+96eQwINKgrd9qLHRRrUZVL6ukzIqz8wJ/PwZJFs/reA/BDGdPZ5z /bGcELv8VdeqHabZu/uQw7k7X5BzkyQBOm/JK8WHiuRis82ORsYu0ue+7r3/PALHU1mABSeOH lNlAFsn5KJ2ayNGZd7hvwRE1QVwiUta41exSOvpu2mZ//PsyrI99mp11Fr0OdaieFF0UeMvSk Ce5UzGz12pD+/siGaZTaS7b5UyU6NRmzcDYYvKZhIIshVu+qrpXUv+y6sUFiCBdYC2uM4Y8YL CfbMpiOQHfP9fJ0HsjGo8QhC6xkC1FVsDWDlsbjUsm5r7AqdM/vLrEngD712RQ6hjTCo1yJE/ 6JOpPIvINapgVpnd6LR0gROo5pIHQllOCzqdYrAOb0UUOFyYVZLFury55P1jOvxK+JstBia4E Cg4P8gaOjH8yEDl2CJ+kZfgPEnT6NPvBEygAuA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With randconfig build testing on arm64, we can run into a configuration that has CONFIG_OMAP_CONTROL_PHY=m and CONFIG_OMAP_USB2=y, which in turn causes a link failure: drivers/phy/ti/phy-omap-usb2.o: In function `omap_usb_phy_power': phy-omap-usb2.c:(.text+0x17c): undefined reference to `omap_control_phy_power' I could not come up with a good way to correctly describe the relation of the two symbols, but if we just select CONFIG_OMAP_CONTROL_PHY during compile testing, we can no longer run into the broken configuration. Fixes: 6777cee3a872 ("phy: ti: usb2: Add support for AM654 USB2 PHY") Signed-off-by: Arnd Bergmann --- drivers/phy/ti/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/phy/ti/Kconfig b/drivers/phy/ti/Kconfig index 103efc456a12..022ac16f626c 100644 --- a/drivers/phy/ti/Kconfig +++ b/drivers/phy/ti/Kconfig @@ -37,7 +37,7 @@ config OMAP_USB2 depends on USB_SUPPORT select GENERIC_PHY select USB_PHY - select OMAP_CONTROL_PHY if ARCH_OMAP2PLUS + select OMAP_CONTROL_PHY if ARCH_OMAP2PLUS || COMPILE_TEST help Enable this to support the transceiver that is part of SOC. This driver takes care of all the PHY functionality apart from comparator.