From patchwork Thu Feb 25 14:38:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 387220 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp365848jap; Thu, 25 Feb 2021 06:41:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLCNj/xcDpvFC+0XxbDCAS5apJLsDUKrTU+/Bu9JXYXZSfPiDyKUk+5APkci4DM47zSZY3 X-Received: by 2002:a17:906:9bd2:: with SMTP id de18mr3071345ejc.191.1614264087195; Thu, 25 Feb 2021 06:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614264087; cv=none; d=google.com; s=arc-20160816; b=qCSRVEprkupiUX2KtlBK2H6JDGpjTGQyRFAi/wJatXIQTwQgI07ZHY37GBcfeWJeRt e+fnvNMVAjLUqqGijyIqdnt/VfYq7J9UAupOkY5AkRQr4IDI2M76AbSwLgkYhWqOnesj 3IUcrccY7lBdkfdOeTe1kFV/oqZcoIkI8KH6XdXS5+3ZkTxak9fGvluGqMFV62ZE3Srg 0OzhZ5+sWIXQ234KUpW4WfNdWo3C7ac5NbQVJycEaJdTDyWLrBCKcC7XgyM7u2fqEvVc CsGQLrU92yNsxPrN5v2v5d8vO8+39+WgYpXYc5ZVBAE0qA0QTve2PW6ce89TZgiT/foT mI1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wp0+TGTGt0iMCBulFQ5XIY2OnK4S8HxlZzELF4TjqxY=; b=UugASUzRPf/pd+QDVHR7ROcmHNlOP1pcE1MmUevHKZnsHlxKOVBT2dx5YBSc0VyVYs 5EUP1yafB4qPXp3+20JHS+q4C3REILKUP+xL8dj3FzTdEpXmuRYKy74hb5810KCXFuEp g4Y4Rhn6bed9GcHsal9g2/dJ6gqeuZyFfxtpnkPqDlKu8Z2Imnn4WCcmzfK43NfizIrz dvJhfAwcr/G2SQcbbavst3O/Y06GOVwMBFMfP/g3HGz5RH8ikV7AKixULiJFWg/0roHZ 0H0KEQILGnkbKiOdvQXNhYVxRwvx9sPGucVxbX/6Ow92qIsRzqP37UhZK+fzl/Nm64W/ UCHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aJ24KEJD; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di21si3551551edb.597.2021.02.25.06.41.27; Thu, 25 Feb 2021 06:41:27 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aJ24KEJD; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232767AbhBYOkv (ORCPT + 9 others); Thu, 25 Feb 2021 09:40:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:58116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232557AbhBYOkm (ORCPT ); Thu, 25 Feb 2021 09:40:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 350D164F0C; Thu, 25 Feb 2021 14:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614264001; bh=dz3Sbgg/xpmcniXZjEqhsxwzzTzHt6BhgNO7KsulOfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aJ24KEJDU2rGKJpM8gePQBoRP7Mv8Pe3VKYaNyt9rbqNM9nvLrMQlB6FkIW8tmFCA MXM1hp2x/81XTPWOy2AZA14qDMm3dZQZOYom0Rpep446fX7x766fsbPbCFqvf0e2jn XZNx5t5HoFWnhGpJp14Oez0+LA498NAPkQn4Z6PiMztxj61Dy4qtCVbCCZYKPCc86K cs75pzgmRfK724Uiy7et45+RYn6/cbpmJssTP0yQgXOCNENvCxSX2ZtTcy1D0fM3WI q46BSHHkgSnKzhnNJLyDR06UcuDb5fUyc3hGaRWoAOrwbQYy+6Us7PS/0JacJHqfwe 8rwMo31ByPxuQ== From: Arnd Bergmann To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Linus Walleij , DENG Qingfang Cc: Arnd Bergmann , Landen Chao , Sean Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] net: dsa: mt7530: add GPIOLIB dependency Date: Thu, 25 Feb 2021 15:38:33 +0100 Message-Id: <20210225143910.3964364-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210225143910.3964364-1-arnd@kernel.org> References: <20210225143910.3964364-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann The new gpio support may be optional at runtime, but it requires building against gpiolib: ERROR: modpost: "gpiochip_get_data" [drivers/net/dsa/mt7530.ko] undefined! ERROR: modpost: "devm_gpiochip_add_data_with_key" [drivers/net/dsa/mt7530.ko] undefined! Add a Kconfig dependency to enforce this. Fixes: 429a0edeefd8 ("net: dsa: mt7530: MT7530 optional GPIO support") Signed-off-by: Arnd Bergmann --- drivers/net/dsa/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 Reported-by: Arnd Bergmann diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index 3af373e90806..07fc2a732597 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig @@ -37,6 +37,7 @@ config NET_DSA_LANTIQ_GSWIP config NET_DSA_MT7530 tristate "MediaTek MT753x and MT7621 Ethernet switch support" depends on NET_DSA + depends on GPIOLIB select NET_DSA_TAG_MTK help This enables support for the MediaTek MT7530, MT7531, and MT7621