From patchwork Tue Jan 22 08:37:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 156288 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp7309595jaa; Tue, 22 Jan 2019 00:38:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN7zHg1AxGDH/hSe0D8cm462ktjXTh9D+c8aFuHVqmDo4oo6++hir7w6RimguaBPZdOObyXx X-Received: by 2002:a62:4156:: with SMTP id o83mr32714690pfa.72.1548146284749; Tue, 22 Jan 2019 00:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548146284; cv=none; d=google.com; s=arc-20160816; b=xzf4xpa9mBWnS1gXA1p9HPeEorv4Fys4yGG69ST2q87oAh8bJTa353JiAKhjF+2bY+ EXpNGOniWLje2s8FwyR4IU15gBrB77XkYUXvVeSvJOeL2kHblbZ4UiWPtgKutn5hz8mL bCG0gXYM4rJ8I725sXpR7DTPsH1fzPvnzive6tEHxbWA3H6T7E/9Dzb/N8iBNQ3g4RVQ 3doeTQCURuEwbyQeFjVI0oe22L9LHyvsg1WpBltveQHVx/LV+LbUKpkZoyGPPljMo1RJ gOcghsVYjax5Sw+yTd0g3KQ6CX59OtrKkB5JB+fojrkm/Km7tW94XUejt6MVdNu6UkHm vocA== 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 n5si15901112pgh.422.2019.01.22.00.38.04; Tue, 22 Jan 2019 00:38:04 -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 S1727322AbfAVIiC (ORCPT + 27 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(-) -- 2.19.2 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