From patchwork Mon Feb 27 08:58:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 61879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2312226wrd; Mon, 27 Feb 2023 01:09:06 -0800 (PST) X-Google-Smtp-Source: AK7set+JWuOu/e0Gw5M4cD80Io+vSbRJLEEsKGWK+FsSkNK3j/tIK5/4By2i7wYghEnZ8P2qJimK X-Received: by 2002:a17:902:6b01:b0:19c:f849:80a1 with SMTP id o1-20020a1709026b0100b0019cf84980a1mr5517952plk.27.1677488946252; Mon, 27 Feb 2023 01:09:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677488946; cv=none; d=google.com; s=arc-20160816; b=zkconjl9DwH5hjEA7ylYFBcXN7nKl9i/VtqpjsMeamRJkNNhW2BfrpH9832vXmDOnA j8RlKED/asX0Ayw7Fto753soRQ/UsjCyFc1iWLs2yNPLwmRGUrrl2FJsD11je8lYRCZB hTrax7P+zJW4MKDD12YmCN+NbA9NbdwVvIFkqqycASKNMxmxbt8HxHdCaDNZjaAY8t9X 4iWQqmPf+LYLSDodWxqwjv3/Ah6WrtY5VqlXToIERlCqZ7mATai/LVj0CPtFhNhbonb4 ghH2E+gMThbs2K48dqVAAqStHjTCta5MP3vASMHSJxdu45mxRawjO3YQE/W1o7QFuu/2 HhDA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=E1MbDhDN2ePaiWS1holC/8U9aNQcb9IBFI1FJ6x8GhY=; b=JSoAElFXHStm/izK+1a8PESGCzE1V+2RvThwhR2FhxhNP3JAkuQRzUlYK+MQDqo2GX IluSyjFZOu8o+emyiyVQUIHNKCvkGqHieL3EtHrtkUhU7r/E+pZKNbquGBn7e7SwrPTm eo4EPHti9iSQX5wAA2GStqW4TTy2Q25KAEX6I8fFjeysPZpVZxYh02I+n++aUB4Wsl9g hSxUGL8IeIalEmtcullmXx7vzP3PjB3QYXMYJZMlYXQzVTRRpoDXyREP5vR7FFc0noEg qo7EvKvkzS37l93BLAE9IlvtxT297YlfY02NIvMWWqyTEMdG6aG+dl2O5BNlSV9Q1Sie wW6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r8bma6NO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kq4-20020a170903284400b0018862b7f8bbsi6390066plb.198.2023.02.27.01.08.54; Mon, 27 Feb 2023 01:09:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r8bma6NO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229935AbjB0JIZ (ORCPT + 99 others); Mon, 27 Feb 2023 04:08:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjB0JIN (ORCPT ); Mon, 27 Feb 2023 04:08:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8207D2DE47 for ; Mon, 27 Feb 2023 00:59:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8476360C7C for ; Mon, 27 Feb 2023 08:58:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B0FAC433EF; Mon, 27 Feb 2023 08:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677488336; bh=C1E2gKQQ6zAKsQYIT+4AqLKUHJ/N8g0P98PgENo6NUw=; h=From:To:Cc:Subject:Date:From; b=r8bma6NOlrhYSSk7Z8pXKRUqvjv03el/pcVZTZbvecpqM/ufpW2NPA014A3OAzL/e L1+qoW45crCtV/DJIZ9WCQ44sP6F46m3O8xmzOqvJTuFTnbi4WnhUgUKVr9Xaevq7g P6JKD13sx9jAOUeLoI9ZmFbpFZhADh8cHyplXO6Y4Up8ktW7QxhVrCfFMAoNFpzhT0 T0EzaaBQ5sIWEZrHvFMyjpMY/6FBvA1SnXkjn00tKFUMw1cS7623C+1HC1R/suBlPy g0cGACzj6G/0EnNWNxU60JDhAZK6oMqlBvwtVFPORxbhwMOewuZ9bAqYtrpZDPi4FT RQcRxdpJGcMkg== From: Arnd Bergmann To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Sven Van Asbroeck Cc: Arnd Bergmann , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: zl38060 add gpiolib dependency Date: Mon, 27 Feb 2023 09:58:26 +0100 Message-Id: <20230227085850.2503725-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758974649291401543?= X-GMAIL-MSGID: =?utf-8?q?1758974649291401543?= From: Arnd Bergmann Without gpiolib, this driver fails to link: arm-linux-gnueabi-ld: sound/soc/codecs/zl38060.o: in function `chip_gpio_get': zl38060.c:(.text+0x30): undefined reference to `gpiochip_get_data' arm-linux-gnueabi-ld: sound/soc/codecs/zl38060.o: in function `zl38_spi_probe': zl38060.c:(.text+0xa18): undefined reference to `devm_gpiochip_add_data_with_key' This appears to have been in the driver since the start, but is hard to hit in randconfig testing since gpiolib is almost always selected by something else. Fixes: 52e8a94baf90 ("ASoC: Add initial ZL38060 driver") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index bd72c426a93d..07747565c3b5 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -2103,6 +2103,7 @@ config SND_SOC_WSA883X config SND_SOC_ZL38060 tristate "Microsemi ZL38060 Connected Home Audio Processor" depends on SPI_MASTER + depends on GPIOLIB select REGMAP help Support for ZL38060 Connected Home Audio Processor from Microsemi,