Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2277965imc; Tue, 12 Mar 2019 10:26:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpanI0tx7PJ5nPRdsBX+w1gPdpgKhBI7X5Nb+DmDds/XYQK2SptL7L6juWHSp/9GniJpgz X-Received: by 2002:a17:902:bd02:: with SMTP id p2mr40535132pls.260.1552411576950; Tue, 12 Mar 2019 10:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411576; cv=none; d=google.com; s=arc-20160816; b=uaZKasBqGMdb+NKlkzplgIXspOLIm1oXKVaTgOHuJuhxcR6wNedbbZtBeaJT2ug6ZI +oaTM+VRNeyaq5bcbLSlgQldMNNw4GyzGUDUf25rVY+PHNzcHP6NJVY4xKdoujCfQC6T Yel2V89CN5pBTmFagQ4PIXu6KbYQIuWAeXF9g7WTjY97FPj1wjX9h5Nh+kgiLjgm8X9E njucJI2xXU2BA15ax1kaZpaxvxxDo9VeqXFYsMWDEJz7X+GX4IPjun5IpVPLoZUWZ2s5 +DMlG3QOBP8eBaCSJZVCFOjKXIUUNhQdTXFq0tBoSkYDCkR1PwcjcZM+fxykRvPiJM1n q7BA== 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=1Y3+2NdG93Vq8Scdnha0slE0s/aH/CHCEfZiE5uV3DA=; b=Z2CxdpRrqEJOis8uzhv+dadmzKDVgmSF7XTG+QZ+T5WC3oTz2lieKQnUgTP+X9x7hF o0Z86mC5cxsbDHRZE3BPKG033KuyowoqR3Ip3xxyl+BzjDijXu2b/L31LYEQ9eCBVHXm 86clg5Sl9W/HYElopZmgab0i7YRnngguxnhMwB/pzm4q/WJT5Me3sikRYdNTNgfveqMy arykJiUBMaIzKiuSrNslLOkY0fnmycWYqbN6LiuFR0zhKHCMNfTZgKoaO+thyJ3Zqdpi EiMkyjsOdUGFrsjZUoNPxzsgLBXU0sx0PVLmOQeYqHATx9yf/kuyfNAwRepMbuoqee5s V2pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yfppu1SD; 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 k7si8462257plt.198.2019.03.12.10.26.00; Tue, 12 Mar 2019 10:26:16 -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=Yfppu1SD; 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 S1729793AbfCLRRw (ORCPT + 99 others); Tue, 12 Mar 2019 13:17:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:59470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728855AbfCLRQs (ORCPT ); Tue, 12 Mar 2019 13:16:48 -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 88B70217D4; Tue, 12 Mar 2019 17:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552411007; bh=vjb7LeK+0QoWAzv0h/m/QbzOhczP1OaFw09OVhXpAsM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yfppu1SDMeuefmVh4N7mGND7Jx03BniS5Vdi11/Lb+U3F67NBvgqn4X03fDqx6qIJ Q49M2239TXtSRP5LYw26ONbPQG/1sBOPxkkddeyC6LVE27mrSXIsLWXmSISPO8R9eo n2uE7h67bWR2HkJMMEwsc4620K2gULk1WvsxWn2A= 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.14 094/135] usb: phy: fix link errors Date: Tue, 12 Mar 2019 10:09:01 -0700 Message-Id: <20190312170349.848799219@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190312170341.127810985@linuxfoundation.org> References: <20190312170341.127810985@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.14-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 aff702c0eb9f..85a92d0813dd 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig @@ -21,7 +21,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