Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2275793imc; Tue, 12 Mar 2019 10:23:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM+eDwJYT7XC79/ppprUCfMsrhtGOFh+AprTKTg1dwEfwhfVwjzUpJrq1BqKXfvSrJTkd2 X-Received: by 2002:a63:6f49:: with SMTP id k70mr5470106pgc.132.1552411417303; Tue, 12 Mar 2019 10:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411417; cv=none; d=google.com; s=arc-20160816; b=RhVV8b1rLNkhIR7JIUkPJMj143c9YlLBrbAUEWAyXKLop/MzQsD0EI9mf51HMxH5aS IiEsCrzo4q3YRc/Xusuy4CNc9Httk8ydUR1hm4MXm11pGGuDLNA01vRt/I3G+OakNfGT Wn9mo7PxKc3Q1dXwDTHjkZxJZiOUasVfpI2U2y7LvwqUi4WEaW1Tsak6ztv5pvCu/BBv EgMIZPbdf+8RsWoOSxMfHA6TMCAzVKNOjuqD1WZrJm86jfTc0qlbMRjw4RCW1P5tU+fe WtGCRUbAVPUFT9gcL60Zfz1l9A5Jb5o+gR6Kum1FuHF0Ndv2sNrjh/eCrmfgGaRoQrvv hFwg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iioEPAQ/hIZCsShH9QygV4GfeyNcDP4+Kuim5mZWFSE=; b=VeTczUdumL12/dd5T2JCyNcGKJsYKzAsG9uNIuEoQUMwV1RX4jgEYmHYtsty6loL63 vrfTym5xD0CcLBRaXA16qg6NJjB88HJK17Gq/UDSIm2Cy1JXN4mvIA4ex15rfhRrr0GI XKegUfMUYjalsWXMnunXrE3AvMCZZVsauUwHibFXKpfKIK7TJawcX0DF91MqS059WnNi JLdR6REmCQdjh8a8jHv16n6TXF/JBPl/j1p2TsOAEqrvMv+EkfHfAKMcrRDKevwSY4/f 8ePGxD2mKDLThRF4qU9ALW5KmoaJdYTgpaZ0yCe3fD6rlnsMioMdl1EDpkOaOsgzAWw0 iykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="a9ru/f6K"; 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 r192si7866741pgr.331.2019.03.12.10.23.21; Tue, 12 Mar 2019 10:23:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b="a9ru/f6K"; 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 S1729539AbfCLRWL (ORCPT + 99 others); Tue, 12 Mar 2019 13:22:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:35402 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729956AbfCLRSK (ORCPT ); Tue, 12 Mar 2019 13:18:10 -0400 Received: from localhost (unknown [104.133.8.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67CD72184C; Tue, 12 Mar 2019 17:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552411089; bh=0c1gC9KHLLotoLG+fu8m2RbtGCyJckNtIsZYP2/U/XU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a9ru/f6KRR5CiNeyWSqX4V8nZTkOrfaMkytU5XT3X0QdWhUiHzi0v3NgIlZTA9kye Usx1AUXTX4Jk4+ZGdH3V29mTvtTufPpZ1rb0RnSgDXnLQrYyGA36kqX35nw7fM3+T3 KmABiccFydCTJoQCXchzaRT8/YaCSyETDqT3D5co= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Felipe Balbi , Sasha Levin Subject: [PATCH 4.9 68/96] usb: phy: fix link errors Date: Tue, 12 Mar 2019 10:10:26 -0700 Message-Id: <20190312171039.724096063@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190312171034.530434962@linuxfoundation.org> References: <20190312171034.530434962@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit f2105d42597f4d10e431b195d69e96dccaf9b012 ] Fix link errors when CONFIG_FSL_USB2_OTG is enabled and USB_OTG_FSM is set to module then the following link error occurs. aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `fsl_otg_ioctl': drivers/usb/phy/phy-fsl-usb.c:1083: undefined reference to `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.c:1083:(.text+0x574): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `fsl_otg_start_srp': drivers/usb/phy/phy-fsl-usb.c:674: undefined reference to `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.c:674:(.text+0x61c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `fsl_otg_set_host': drivers/usb/phy/phy-fsl-usb.c:593: undefined reference to `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.c:593:(.text+0x7a4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `fsl_otg_start_hnp': drivers/usb/phy/phy-fsl-usb.c:695: undefined reference to `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.c:695:(.text+0x858): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `a_wait_enum': drivers/usb/phy/phy-fsl-usb.c:274: undefined reference to `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.c:274:(.text+0x16f0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o:drivers/usb/phy/phy-fsl-usb.c:619: more undefined references to `otg_statemachine' follow aarch64-linux-gnu-ld: drivers/usb/phy/phy-fsl-usb.o: in function `fsl_otg_set_peripheral': drivers/usb/phy/phy-fsl-usb.c:619:(.text+0x1fa0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `otg_statemachine' make[1]: *** [Makefile:1020: vmlinux] Error 1 make[1]: Target 'Image' not remade because of errors. make: *** [Makefile:152: sub-make] Error 2 make: Target 'Image' not remade because of errors. Rework so that FSL_USB2_OTG depends on that the USB_OTG_FSM is builtin. Signed-off-by: Anders Roxell Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 125cea1c3c8d..19ce615455c1 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig @@ -20,7 +20,7 @@ config AB8500_USB config FSL_USB2_OTG bool "Freescale USB OTG Transceiver Driver" - depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM + depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM=y && PM depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' select USB_PHY help -- 2.19.1