From patchwork Thu Nov 2 11:56:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117805 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2066772qgn; Thu, 2 Nov 2017 04:57:29 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RO0QrFCbiQ58gLtGf3gWlC04kUGgRX09CFY3apCU2P+KvV4o4KXz961KZyGo23ntJYo1U6 X-Received: by 10.99.123.88 with SMTP id k24mr3343267pgn.213.1509623849491; Thu, 02 Nov 2017 04:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509623849; cv=none; d=google.com; s=arc-20160816; b=YC7FT6pCZ46JlkZrFyEKm0tGj20+f6EwMGAJh/+7++jJndsN/WtVi8hi5JCL2m8BSB NU/hsiHOj3NKEpqsq6kieh8O2Oa1HXQC3PCOG3gU9j8u6Gh+nH849y13NLmt+Y27pKO9 6Axs8JBt7NOctSUSP1ew/VEiIASTl1IsWkM1QQwpAgUsC6IJlT9U7hfUNOC0mCTDmOPx cMPabGnwnNdKRWl/+tuVxkQ+xhDzRoVINDKUobtedUiwxi7QCgHgp4a2XUsb1axz1lBO aeVZFKGgItnQgYcmnwtAO7z+dJwLK+ieIstfkbNizbJJujGa+PZ09E/cIB9ka9rTe1mO xHrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=HuWxpLTnQlRCSVevaJGu+InwRAEWRjsk8Il99Jt/Kcc=; b=dYD9gsbPTdkpMN06+AauL3yMms0y+KM+awGTZGN9jEXTgg9MYCGYDoUt5S7ayyBKrB P8LG435k/v5hZ+C4b4FlNr22LzBITxC5vFInrIvMGy3vwLrS46G6Mf5YovEOn/vBF/lF 9KrYGrOSY9z9glSp+lbkQnHbzoLxvacHAzZJYKgv4X3bK/TV87Pq0T6JILfFjbZPN0XO hmi4wjwSTQk3RpQIWMoMZRyRDmm8FnLURPzvB8nfw9sOJxs1uUTY68nmXaJy7cwT+LSJ XB7CH250jn/EKpFFmDfJUiQ5cN5RsVrBl5fOVx6rUlU6rSqKJEkMEcWuCXaHo+H91c81 5kqw== 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 y22si3550328pgc.508.2017.11.02.04.57.29; Thu, 02 Nov 2017 04:57:29 -0700 (PDT) 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 S1754341AbdKBL51 (ORCPT + 26 others); Thu, 2 Nov 2017 07:57:27 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:54010 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753960AbdKBL5Z (ORCPT ); Thu, 2 Nov 2017 07:57:25 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MBCTt-1e2IAq47bp-00AByF; Thu, 02 Nov 2017 12:57:18 +0100 From: Arnd Bergmann To: Kishon Vijay Abraham I , Yoshihiro Shimoda Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] phy: rcar-gen3-usb2: select USB_COMMON Date: Thu, 2 Nov 2017 12:56:36 +0100 Message-Id: <20171102115712.3392843-1-arnd@arndb.de> X-Mailer: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2ScbQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When USB is disabled, we get a link error for this driver because of the added OTG support drivers/phy/renesas/phy-rcar-gen3-usb2.o: In function `rcar_gen3_phy_usb2_probe': phy-rcar-gen3-usb2.c:(.text+0x250): 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: 7e0540f41332 ("phy: rcar-gen3-usb2: check dr_mode for otg mode") Signed-off-by: Arnd Bergmann --- drivers/phy/renesas/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 Acked-by: Yoshihiro Shimoda diff --git a/drivers/phy/renesas/Kconfig b/drivers/phy/renesas/Kconfig index cb09245e9b4c..c845facacb06 100644 --- a/drivers/phy/renesas/Kconfig +++ b/drivers/phy/renesas/Kconfig @@ -12,7 +12,9 @@ config PHY_RCAR_GEN3_USB2 tristate "Renesas R-Car generation 3 USB 2.0 PHY driver" depends on ARCH_RENESAS depends on EXTCON + depends on USB_SUPPORT select GENERIC_PHY + select USB_COMMON help Support for USB 2.0 PHY found on Renesas R-Car generation 3 SoCs.