Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7133568imu; Tue, 22 Jan 2019 00:39:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN6DD40j5UeybyIUHUiBKDM+V7Ep1EXB+9FUIb8lKuOOGRPa7GmnhVQ8VqgTQrDNKAyVHWtU X-Received: by 2002:a63:4665:: with SMTP id v37mr31586505pgk.425.1548146363699; Tue, 22 Jan 2019 00:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548146363; cv=none; d=google.com; s=arc-20160816; b=gunh6FoCsaT1IsxnytImJctuPHaMFAdEBamMdACaTVkb8miXMwPesC6CvklMA3huAB vRGYCKncMw04M67yZ8lvjz/4i9JNhlxHGBRVndDQKfM17IZEeBXS83Nt8ja3f3huvcuH c46jpb8A490E1seor6+clN08xKbukMmS7dTv+W5UT6m9xE3JJYMvl5Rzi7Ftk/kJdPc4 ml6v/cWjKcuVT+zW5DAJRaqw3RglLVgfjRsE4YABsLsQc6yRLeHKWaBzuG7Q33aBdbQq aqyZg9hlJ4BIkgyhD3VrJ7688RJ7zdFIePkilNa1QZvUULQQGnogL6Wv8J240HK6sgGB 5tqw== 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=QC6hI+o1F3bLp+jmcz5gH6/fp29Fuo/YO8irWTolOwQ=; b=UM426BZfSczgPWL6g8CP//xnldkUW05Nedf29yOzgFwhN3Go4RIRLhKwoOdjijHzjL vgFBhChtp7t4XFQFgw66Ld9O3E4Cn9y2hGx8Mnenu+WAY737m8zgSXlGqJ+PdnGdgdq4 d+b7et6WzZR39T4OD8KnDVBkFohxIXxV6hu8y/RuXlx8KZ+06fTIGGJXFTSfBACFNfm0 YnChi+oaC6atBP1qYQF7bfvTe7Fa0B0/vfZ4L2GhjyQ971PJejHNl6qs94REcb5OdwhA N9azWGrFZd1c5u8Fy8zbz4T+clg6apE7cQjtIE4OhVq+7ZzHBYb2YREjnjCzV3XGciQE ksVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dcP7txpk; 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 n4si13123085pgv.512.2019.01.22.00.39.07; Tue, 22 Jan 2019 00:39:23 -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=dcP7txpk; 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 S1727303AbfAVIiC (ORCPT + 99 others); Tue, 22 Jan 2019 03:38:02 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36396 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbfAVIiB (ORCPT ); Tue, 22 Jan 2019 03:38:01 -0500 Received: by mail-lf1-f66.google.com with SMTP id a16so17423452lfg.3 for ; Tue, 22 Jan 2019 00:38:00 -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=QC6hI+o1F3bLp+jmcz5gH6/fp29Fuo/YO8irWTolOwQ=; b=dcP7txpkZVMC5PY8+fHNtQdRKOBS8HtscDAMHiI61ZMr9YXMRWPbnCeMSQKQjplSRA zS8h69fsjVE92EumcWExSrIQDdS5zdILWqxUZAqrzo3dCSjYEY6jCRuyHWeZb95GashH lvCRV2WGRAshMPHhZBp5KLM4a25TA5uewzzGs= 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=QC6hI+o1F3bLp+jmcz5gH6/fp29Fuo/YO8irWTolOwQ=; b=KyDJMzFGqVVYfEhnk/cIwyXtI41Bw18hw/+pwVRFmUCQgXum+Oah1AksZYe1joamL3 BCy8GA5pl4wGH22WG6Qga+XT6iNIrFHKR9KQYcKyT3okD+fIJ5Lu2/J7qzqPww3dM/yb 2prJu3K8VA3zVA5KXHzqH5opceJMzOnjbx9Of9GjPH/rAfhMZvLua6OE0unmPrNIv2zf hcBdglL0xPcYX0lCOPBSUoaLzKbnOfECKz9sOFXyv0DkHblUp6jE7BJrS0krJ6Hh97nU oB35pK2L184GxZ5tOs1d6RlRrVrC07sAfpykbLWss/OhM7M18uUgJpytH0lU+wRfoHMr oo1g== X-Gm-Message-State: AJcUuke6ejaFmHra7EH/6HC5W5vKzMyeZ8XcV2Iw6k+vgdkAkNw/78AX uA9/OsVFI0Hrh50D8y/5/grJkw== X-Received: by 2002:a19:c203:: with SMTP id l3mr7312577lfc.113.1548146279423; Tue, 22 Jan 2019 00:37:59 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id c133sm2988651lfc.45.2019.01.22.00.37.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 00:37:58 -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 v3] pinctrl: freescale: fix link errors Date: Tue, 22 Jan 2019 09:37:35 +0100 Message-Id: <20190122083735.13286-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..af141dd2331d 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 && 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 && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help Say Y here to enable the imx8qxp pinctrl driver -- 2.19.2