From patchwork Mon Jan 14 09:56:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 155416 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3468011jaa; Mon, 14 Jan 2019 01:57:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN6rdz9Jj8GorlMWk/nSXEiqgPP7O+DRVgUBz7eFlCucUD9F7iK8aY6pTOXCzImDeB/pZZKh X-Received: by 2002:a62:9683:: with SMTP id s3mr24431516pfk.60.1547459826044; Mon, 14 Jan 2019 01:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547459826; cv=none; d=google.com; s=arc-20160816; b=UM8rXTRM1MAwbn3egZFS+rjc4VsMQOj3Y0t998480YJ0izIWAW5lSuZxv/nkQD7GMR 0VjjT4ul0Hfxw8VJw1uyi0dOGys8P7a5WmVCzmDBCNgncLs8bJJAurHxy82ulbafjpbQ 763116rdNfuyiHL3phN6uwnoPFiwFI1b3qGUIKVIBPEFbsNv4XGTK73UiHF4k8unQeDQ vqlsOjPbrX2MC4EIcy7JwwmxZUcN3c+kmtaVRu7zPv4XWYRqNa2v7ajiBuvL6DOsT5D8 M4CH22KBrvef6hR4I3qbsLfb2e/BScjdujoiDLUQukQnFPrXT1qsJTNNu9Uuen4P4Xk2 JctQ== 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=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=pCOjMaOQBWVKTC3zgjskHQo59bwGHJySgSx7ZuuTsvGqFpnPhO5dOtnisR4CwpTa5s LKlKZTwL2wv5Sn8XBrHHBnW2Wa6oIbE+gUKWjUd0qjJ5tYZGFEPVAasIYQRSswPjlTKX eQz30Vzg6Fmz+5+Tnh2j6Fyd95Y7y/hdo0x50f9JqB6W0J79EKXAr26ObtwvftQcTaCB zoFfLO3vanzcmWt4/ouImsiYy0pCGpEiBZ2OID9VpfPkalq+RZX1tf+6dmX7ux89I2u5 ScLbrR/sn99AwQ24qjmFXaUnDU1vURsrlMty/h4b7XASm+5YDNSLfu0F9+1tH8/UWuiQ fazw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QhIPD/xg"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 b36si44405503pla.354.2019.01.14.01.57.05; Mon, 14 Jan 2019 01:57:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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="QhIPD/xg"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1726561AbfANJ5F (ORCPT + 5 others); Mon, 14 Jan 2019 04:57:05 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40303 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfANJ5F (ORCPT ); Mon, 14 Jan 2019 04:57:05 -0500 Received: by mail-lj1-f194.google.com with SMTP id n18-v6so18424346lji.7 for ; Mon, 14 Jan 2019 01:57:03 -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=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=QhIPD/xggrsyG6bM2Jtax8BmR0+YMpQLOA7lXMEdCMV6tLoZvEvjgpoiyDrjBrE/Jg l7PihnO3HJgueg3SO7zYGEuamtTAJ/m8uTmJHViEjxvrI6sbS8V5o9tq6hVtrbmRoFBO CwG49w4k0ANEBC6rpr/O/b91jgu9BsmYlV4kA= 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=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=HKRjbMI7iHh51uFLWqgCrrn9pNFckY2lTb6V9WZoKKOsh9rB7HNVuHUXa6p76+VI9n uyW8YhG079T9syZcdWKj1mr/HsAQHkMJWjRVRvJ0kjhRF5uiZZiDGzNhEVwgEzlS78y+ ORI92lzwGl2nyWVOztsYvupCbFaoiV8SlKjCfX78xFRD652s2/cePkLC2xicgokMSu5O bQNkvKZ/TIdWFLdRBX6HARWOe9hM6oFF0T6DyOI+1/lFtpV0fsTzpUup7ldJD3mo5VZR WlSrPpsnoifsPx7WrLlJWvlq7G3x9YKGLLPXECnILNXiMmVQ0efYlaO8eW4gHxvJIeU/ rv/g== X-Gm-Message-State: AJcUukfFDU1g8NHb2EePhSJeXSc6AfUzrd5B+6Gys0eas9OdqLThyz3V 3DlEOVdUBu+wRKt+6nkBbJQv3w== X-Received: by 2002:a2e:2e1a:: with SMTP id u26-v6mr15274568lju.8.1547459822786; Mon, 14 Jan 2019 01:57:02 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id 4-v6sm17077049ljw.84.2019.01.14.01.57.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 01:57:02 -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 2/3] pinctrl: freescale: fix link errors Date: Mon, 14 Jan 2019 10:56:59 +0100 Message-Id: <20190114095659.23082-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Fix link errors when PINCTRL_IMX_SCU 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 both depends on IMX_SCU=y. Suggested-by: Arnd Bergmann Signed-off-by: Anders Roxell --- drivers/pinctrl/freescale/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.19.2 diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index b318c24b61be..ac158309cfe9 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 @@ -138,7 +138,7 @@ config PINCTRL_IMX8QM 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