Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3448975imu; Mon, 14 Jan 2019 03:15:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lNRIQ7H6qVsL9EksKNzkhvf0oGKnP6fwsveW6ALLYx+IfjgH3pQ4qQXSGg/vTrX8OjsEQ X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr25374646plt.106.1547464509789; Mon, 14 Jan 2019 03:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464509; cv=none; d=google.com; s=arc-20160816; b=PWP4HoyEgjpIoDGo9ERnQn79ysnlsIksD7wuUoPOhVccfh9rTyLNOj3BCquAC3VBoi GXRzPX7Uf4bvV+50SX+wl5tToyLy8NQwFVJV49psylzbOtbz3o69N0KdXqZnc2FFwcLs 9DWV9s1//BDv0c/EL41hzMSCZrkbg5mdbeqMS1Xcc7Z+sT+UGVXUou0FhB5HH514V9pE nR0/0+mdkcVZOB30tEnOjc0KPCxjhdkAssWcWs3xCA4xwTlrRxDD4W9UKcty3pg5LPnE 7vr1aqq4fiLyea/0AsCIM/1wnLBM/aiBB0nBmfFfCojVGnQDKAfaL9PVP1KqruxnA+Vy VUdQ== 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 :dkim-signature; bh=rYIMl9/h9EZOQmMPk92EhDxxI1xRjILmyoLT4QeKm3M=; b=ARiJii5PG6QxbcYjlij3F3U3WHANIJStE/GkbOF4HFHN1rUhGhNBkQUIxKOnKH0eOw 2rZXROePEhnv4APnOhlv9QztNAUBFvBVYDyfiIRSLKuIWyKU9WV7Y7KaQEx+C7HtAXLw gcg0la06o5vJuRYXf/3d+f4eSrcalreFNbRkGZDbf170F6GWIH4MlqTFKFy1vHzB59bQ SlsIjAp03L0MN3/BHCnTXe7CQY052lHQW3jK40rbfwbXXyFNa9uFz9xL6IMDaV0TR2LZ u65rXy+710dhhlEel8C2e16s1DRdAFILt32Dr4MDoQ6So++oL6u8t4ELMq7+aGYxi4eV Cf7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XMPW9bh3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si104825pgv.277.2019.01.14.03.14.53; Mon, 14 Jan 2019 03:15:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=XMPW9bh3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbfANLNj (ORCPT + 99 others); Mon, 14 Jan 2019 06:13:39 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46154 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbfANLNj (ORCPT ); Mon, 14 Jan 2019 06:13:39 -0500 Received: by mail-lf1-f67.google.com with SMTP id y14so15244568lfg.13 for ; Mon, 14 Jan 2019 03:13:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=rYIMl9/h9EZOQmMPk92EhDxxI1xRjILmyoLT4QeKm3M=; b=XMPW9bh3DkgBuWhCBgRf9IkQTrK+wVhTFd+AFtB3ndn8y/TiHX2q8CYSqQ1hXgMX/b +klvYxQDL3TPW5r0Zf4tvyznotCCQSDseZqthkQOy1pOnXBJi79E/j12mkybq5uSsLIc LlfKi+9E3sRbqy5q10nbTOdtGF5/ZlXaHlCBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rYIMl9/h9EZOQmMPk92EhDxxI1xRjILmyoLT4QeKm3M=; b=nrO4w1o5RGZ2/Z7+O93ZsfVXKFwYsCzXMPcfstsX4ALolGABZYUuimwGKl4bR+9Fgj reTubFy6ph2oAH01WCFZFxr9Dj/UwjAU7C8R2wGk+J6sA9B6NTZvvrnH8mij6DRWzTSm b3LZPgplJMJWDja6h3jGSYVLaR5jmmJNkaWBybQPUUjhTcxdgnzwjcHmNZ8tX6MnB9pW B3Rx1WF1euvJyFwgOD1wApzdifOzYbVEw6lpfI3QRTFS6GMkoRRd90GSbwuRVve8dY2o Qf6CUeQKVnv2abkQ3Cm5U6a+UH4pTYUp9Fy7CmI9EbiaVXnj607YCDpacmfGfhYqGQ+A WJng== X-Gm-Message-State: AJcUuke2V3gY7ZAAzrWJMpoI204/+hpstLrNrqPHN3zvDdkpOILSy9XY enM44m2Plb6jS2rDZ24+rlUF2w== X-Received: by 2002:a19:7006:: with SMTP id h6mr13729987lfc.147.1547464416777; Mon, 14 Jan 2019 03:13:36 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id h3sm28169lfj.25.2019.01.14.03.13.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 03:13:36 -0800 (PST) From: Anders Roxell To: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2] pinctrl: freescale: fix link errors Date: Mon, 14 Jan 2019 12:13:27 +0100 Message-Id: <20190114111327.27272-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix link errors when PINCTRL_IMX_SCU, PINCTRL_IMX8QM or PINCTRL_IMXBQXP is enabled as a module and the dependent module is built-in. ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinctrl_sc_ipc_init': pinctrl-scu.c:(.text+0x10): undefined reference to `imx_scu_get_handle' ld: pinctrl-scu.c:(.text+0x10): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_get_handle' ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinconf_get_scu': pinctrl-scu.c:(.text+0xa0): undefined reference to `imx_scu_call_rpc' ld: pinctrl-scu.c:(.text+0xa0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_call_rpc' ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinconf_set_scu': pinctrl-scu.c:(.text+0x1b4): undefined reference to `imx_scu_call_rpc' ld: pinctrl-scu.c:(.text+0x1b4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_call_rpc' ld: drivers/pinctrl/freescale/pinctrl-imx8qxp.o: in function `imx8qxp_pinctrl_probe': pinctrl-imx8qxp.c:(.text+0x28): undefined reference to `imx_pinctrl_probe' ld: pinctrl-imx8qxp.c:(.text+0x28): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_pinctrl_probe' Rework so that PINCTRL_IMX_SCU and the config's that 'select PINCTRL_IMX_SCU' depends on IMX_SCU=y. Suggested-by: Arnd Bergmann Signed-off-by: Anders Roxell --- drivers/pinctrl/freescale/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index b318c24b61be..a599b72b350a 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -7,7 +7,7 @@ config PINCTRL_IMX config PINCTRL_IMX_SCU bool - depends on IMX_SCU + depends on IMX_SCU=y select PINCTRL_IMX config PINCTRL_IMX1_CORE @@ -131,14 +131,14 @@ config PINCTRL_IMX8MQ config PINCTRL_IMX8QM bool "IMX8QM pinctrl driver" - depends on ARCH_MXC && ARM64 + depends on IMX_SCU=y && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help Say Y here to enable the imx8qm pinctrl driver config PINCTRL_IMX8QXP bool "IMX8QXP pinctrl driver" - depends on ARCH_MXC && ARM64 + depends on IMX_SCU=y && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help Say Y here to enable the imx8qxp pinctrl driver -- 2.19.2