Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932592AbcKPOXt (ORCPT ); Wed, 16 Nov 2016 09:23:49 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:55790 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753882AbcKPOXo (ORCPT ); Wed, 16 Nov 2016 09:23:44 -0500 From: Arnd Bergmann To: Kishon Vijay Abraham I Cc: Arnd Bergmann , Guenter Roeck , Heiko Stuebner , Shawn Lin , Frank Wang , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] phy: rockchip-inno-usb2: select USB_COMMON Date: Wed, 16 Nov 2016 15:22:39 +0100 Message-Id: <20161116142259.2123506-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161116142259.2123506-1-arnd@arndb.de> References: <20161116142259.2123506-1-arnd@arndb.de> X-Provags-ID: V03:K0:fzcdV7BD8mkkfk0mhbF8cjSFMFcirqkrnVBtohYYC8/FG5bVAWK vEWhPzldk+Laq/Luw6WQm3NtupvBFU0gwbc6PisoSRp3wKZDhJIUX/uJgGNlumf8uSd3oSF gjpordY3MKb9OwySc6eLLQHKz7f4LgtdA4ilN81i4niuUAEb0MZQ7zw1UM6DYDabQXUsFLe 6CSodpmZpJ2xlw31CEIVQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:1Uy1xoBEqdE=:yCbcjgmt1j9mmvekZLPxKo Ay2FYDSd4aDU4I8et4k9cEr+evEMNSp8fa2o/eRNEhP44dglXQwo67jTYvHkbI+Bh4hHWv5sD zlFLgtxuVxBHFEX76YGQ2sse6mGDi5F63Gt9ORtfyahZlWyuCx5z980Dz5L2fVgB5yPu9+Src OjXCA8bCVQ87QnzvoasGJUNKXpEOa8iAYd9bCWmc6LNVtQyrtgCyaNXKm7JnTs1EkImNWB4gF MoOhazI44uJh4owHk9rMaHDOXpN+zF+RfaFjdmZatA8Bod6lvfQ/tmDcg73VWABYhgBQBHhHM 0rELr7lZnqVJlJeqyw27lDOkWeGXnqGbHm0ANI/RCoyZ3Z9ZIy46t21Ze3lWrR5n5VBlDx53d e1vD05xRdh7qPIdCD6Z4BLN4UyVxDGeLMQaJGmFM2jmG2UJ/worxfZU3zi9hBLQAPfZ1GIPuX L9Q59DGShFXEO0lUA2uvoGpcZ/bFc5qr8rT+hGqBh8MYm1Cu+wtA6CZaKhmmUrLiphlz06DOS k2dg3tiFz1SmoWl0F0rf65X95s9Y2IXEKDukPfu+zWT+fIYAQESgUOencmzfwHJJ+zfmEKOBU mV7VF++hD39whCh9A+RMdmRWGqx18h2/9KvTAbof1joxQOZSWTwQlVrMNnJwYzewyfAK8EzIJ 5Q6uot4zGYX+/9GJWftBls9uA8MGKXlniN7GxfCHkqmD0B7jZnO/8YaIHw01vpINk9YM= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1204 Lines: 33 When USB is disabled, we get a link error for this driver because of the added OTG support drivers/phy/phy-rockchip-inno-usb2.o: In function `rockchip_usb2phy_otg_sm_work': phy-rockchip-inno-usb2.c:(.text.rockchip_usb2phy_otg_sm_work+0x1f4): undefined reference to `usb_otg_state_string' drivers/phy/phy-rockchip-inno-usb2.o: In function `rockchip_usb2phy_probe': phy-rockchip-inno-usb2.c:(.text.rockchip_usb2phy_probe+0x2c8): undefined reference to `of_usb_get_dr_mode_by_phy' Other phy drivers select USB_COMMON for this, so let's do the same here. Fixes: 0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399") Signed-off-by: Arnd Bergmann --- drivers/phy/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 13411960895f..53cab9f3323b 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -365,7 +365,9 @@ config PHY_ROCKCHIP_INNO_USB2 tristate "Rockchip INNO USB2PHY Driver" depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF depends on COMMON_CLK + depends on USB_SUPPORT select GENERIC_PHY + select USB_COMMON help Support for Rockchip USB2.0 PHY with Innosilicon IP block. -- 2.9.0