From patchwork Mon Jan 28 22:35:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Voytik X-Patchwork-Id: 10784969 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 029096C2 for ; Mon, 28 Jan 2019 22:35:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3CEF2B230 for ; Mon, 28 Jan 2019 22:35:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67762B26D; Mon, 28 Jan 2019 22:35:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7DFEF2B230 for ; Mon, 28 Jan 2019 22:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jHjq7Xs2Itq5ClWPjG67Q5EpZreA0U0xh0J1sKULDDI=; b=PuVbgQ2OvUTnrg Ta0R5H9KP7O3gO1UNp9EU7Gbyz+fWmOBCRZcraSJKfW4moitQVAm8WAJyvIhk7aUcaaEmqoTIltim s4qEr0T1WuJcw9kIMqylefA26D2qVpHSdocSg/Ah4U+ZSsoR3Unn3pM1FAliTpy0EfF3dczEFhPnJ PvjkTyUll8VHrtyQqZ1zJZmbaEVvQj79czkxm9IdjOoUeMTUxss1KbdQfVSTC1VGBa+hwWTtJSMEl gcb0X8b9fGmxDwC2m/KSEw9Sdhyml2dB7qyevDqyCgASDTeLE7uGH9Z2+lbkVdn16wXeuEjU2655f Q+gG9Qi6wP00hE8gR93A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1goFVA-0002nV-OZ; Mon, 28 Jan 2019 22:35:36 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1goFV6-0002n3-M7; Mon, 28 Jan 2019 22:35:34 +0000 Received: by mail-wr1-x443.google.com with SMTP id v13so19909508wrw.5; Mon, 28 Jan 2019 14:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7TrALtjK5VfQJXLM+noL+eRhCYVQ0l+5KwWNGeNwvD0=; b=qJ03L7XDrgyYkc/aj/jLu6NnmCt24qMLraxKCmOxeOXp8wWa8hd6L+NBITwoJ0donr 1MVD9IBdF5WSJBexWFNsq2R/4cE19IgKqZAiG1L3kkz1rTu6H2heLO5JQPW0RvT+ibny 5fzwnHqZ77BS14GF9HZr0BSw0fD+2hUfKD+geBukCPHEhwH9msyec0wzc4HWndlSMs8Q D94YYuWo5CJBBrFMjl3lQpel59ZaJ8Y8nlZzDzhRVNJVjW/ocFvX37wF7QnsxAdbHJ/C 07ZntzQseC3r7TI6o50rL4vmI1nAgsx5j0Dj690FVSCl5dEjfBaZHTN1tLlDCN83oxQW 9zmg== 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:mime-version :content-transfer-encoding; bh=7TrALtjK5VfQJXLM+noL+eRhCYVQ0l+5KwWNGeNwvD0=; b=J/td/CJmMuknQ9RF67q66maXlRo9rlhKRr4pICDKtq/4a2IBO2/iZQnQsZfgBaqm6T C5g+UtM6VbtEbX4i01FszGnNzkSz3vCD5k5ze/DIKXjoqOkid2NseHdf4Uz5Dx2KUYmu Vlr4PwLqbD2FMHyLuDKejgrkwAzeSbh6VclPWl/kO2hEJ0wNjdTLZQk18R1JIZRD4eV2 gVkF/DaicGodWVK+3RsQMfBHnJgjiAB/xZnst4OLd9EQKWTdCBdJ8Aj5xB307rC5dtZG //Fo49nEHQW0iqFf/cZMsELJwRoL4OYAAwB6c03taldPBeBMFTHEU+NImdLkF0oSjs0O NFYA== X-Gm-Message-State: AJcUukfuDQ1EsCkOAi76jAWxzFcIfw/pdo83iodjSGstF70n7yAMyiWw P7a+sf1JVGD+tfK6CsYjL6k= X-Google-Smtp-Source: ALg8bN5dCnJy0Q8vUXfM/10/WRekOKJiKac+KCGvETwHMy/BivdcImQRkNBrEbpZ+f/1njCHF7/Okw== X-Received: by 2002:adf:f605:: with SMTP id t5mr21831988wrp.229.1548714929708; Mon, 28 Jan 2019 14:35:29 -0800 (PST) Received: from voyt-hp.fritz.box ([2001:16b8:a0d8:9300:66d8:3ba:de17:f9bf]) by smtp.gmail.com with ESMTPSA id p5sm414641wmh.16.2019.01.28.14.35.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 28 Jan 2019 14:35:29 -0800 (PST) From: Dmitry Voytik To: Linus Walleij , Sean Wang Subject: [PATCH] pinctrl: mediatek: fix dependencies for PINCTRL_MT76XX Date: Mon, 28 Jan 2019 23:35:21 +0100 Message-Id: <20190128223521.2690-1-voytikd@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190128_143532_774808_4A65AD45 X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryder Lee , linux-kernel@vger.kernel.org, Dmitry Voytik , linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP How to reproduce the problem: $ make tinyconfig $ make menuconfig then enable: CONFIG_COMPILE_TEST=y CONFIG_PINCTRL=y and any of these: CONFIG_PINCTRL_MT7622=y CONFIG_PINCTRL_MT7629=y CONFIG_PINCTRL_MT7623=y This combination causes build failure. Fix the problem by making PINCTRL_MT76XX to depend on CONFIG_OF=y. Signed-off-by: Dmitry Voytik --- drivers/pinctrl/mediatek/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index 1817786ab6aa..a005cbccb4f7 100644 --- a/drivers/pinctrl/mediatek/Kconfig +++ b/drivers/pinctrl/mediatek/Kconfig @@ -45,12 +45,14 @@ config PINCTRL_MT2701 config PINCTRL_MT7623 bool "Mediatek MT7623 pin control with generic binding" depends on MACH_MT7623 || COMPILE_TEST + depends on OF default MACH_MT7623 select PINCTRL_MTK_MOORE config PINCTRL_MT7629 bool "Mediatek MT7629 pin control" depends on MACH_MT7629 || COMPILE_TEST + depends on OF default MACH_MT7629 select PINCTRL_MTK_MOORE @@ -92,6 +94,7 @@ config PINCTRL_MT6797 config PINCTRL_MT7622 bool "MediaTek MT7622 pin control" + depends on OF depends on ARM64 || COMPILE_TEST default ARM64 && ARCH_MEDIATEK select PINCTRL_MTK_MOORE