Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1624040pxp; Mon, 21 Mar 2022 00:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtLl+yhI8IDjMdHIPRYmuf4U4usk/vy69xXogzrtbjFP8AR0rxYyhsfrSxlra7N4BBR6TF X-Received: by 2002:a65:6c16:0:b0:380:f45b:f1b2 with SMTP id y22-20020a656c16000000b00380f45bf1b2mr17279188pgu.65.1647849101913; Mon, 21 Mar 2022 00:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647849101; cv=none; d=google.com; s=arc-20160816; b=iXzq4vpSTMXgdG5jtrgv+/WcE7LrSSc4Oii65vhB7RIfWMnnPL4Q8J8YXJM9iwjO4s fTSovJuXgJMovA94SBSKVvJoKoZavVIXvlPmkSLWHzEkZYOm6HQttFLXVzIxQy4n28SM t4VEu8+9MHXHFmvhcHNLDcZp5T2qAkMNaKsPiV7UVAd/m2gzbqHmufq72qiXQHv1FOhv ke21VGVgz01lTdzSvUsgfKCifom8TdFpXhwB1/tQBDY8jYs3totUauZoWOFiElCJ3NXn FP/8Bwn8d0Qt7Sxx7r4e73PrBlWSHmk0RwcfbJTPBqW5Zh2aSV1CShE4Sse1fMmiI2In R2fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=t8MNLWtxpuu7dFx773an/Vd1Non6VvSRz25V5aL5GGc=; b=v5zcbVJezEBsSZsq99RN0amsR9KSZbI7FmyUOESxo8QCgS6fqH3vuR7slnUUPYwnSi aLUbA2OQdrjVwJSzRYP4AONdLSEPrHo44OaY27fNsl/XqaeyTiecTDftZywnXFpGefuz 4AhppATXGIuGcpsBi+Hsr212tBAQgoFuaB692lOZb7PhjXJuCmdkDu4Zdz/G9cmdxL4i 150EluzC0eKPly25cR1YFx5eh2ZjzCYzSV3QMI8udrUk/Hf/ygvauUdEmbRmrgxK9yWU 1IlbRAwuSEWqgAnF3xn/YjY/sVN7eKzPYt5QE61IJwx09cH3N97L81o7YadNj/3wfQY4 iAqw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo11-20020a056a000e8b00b004fa950150a6si3341872pfb.113.2022.03.21.00.51.30; Mon, 21 Mar 2022 00:51:41 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240117AbiCTFe3 (ORCPT + 99 others); Sun, 20 Mar 2022 01:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234851AbiCTFe1 (ORCPT ); Sun, 20 Mar 2022 01:34:27 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11D62630; Sat, 19 Mar 2022 22:33:00 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KLmZQ6QXRzfZ8X; Sun, 20 Mar 2022 13:31:26 +0800 (CST) Received: from dggpemm500015.china.huawei.com (7.185.36.181) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sun, 20 Mar 2022 13:32:57 +0800 Received: from [10.174.177.133] (10.174.177.133) by dggpemm500015.china.huawei.com (7.185.36.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sun, 20 Mar 2022 13:32:57 +0800 Subject: Re: [PATCH 1/2] iio:filter:admv8818: Add depends on REGMAP To: "Sa, Nuno" CC: "cj.chengjian@huawei.com" , "liwei391@huawei.com" , "Miclaus, Antoniu" , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jic23@kernel.org" , "Jonathan.Cameron@huawei.com" References: <20220318025914.2614812-1-bobo.shaobowang@huawei.com> <20220318025914.2614812-2-bobo.shaobowang@huawei.com> From: "Wangshaobo (bobo)" Message-ID: <2781b5e5-ad45-cd90-4bbb-813672098807@huawei.com> Date: Sun, 20 Mar 2022 13:32:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.133] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500015.china.huawei.com (7.185.36.181) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 ?? 2022/3/18 16:45, Sa, Nuno ะด??: > Hi Wang, > > Thanks for the patch > >> -----Original Message----- >> From: Wang ShaoBo >> Sent: Friday, March 18, 2022 3:59 AM >> Cc: cj.chengjian@huawei.com; liwei391@huawei.com; >> bobo.shaobowang@huawei.com; Miclaus, Antoniu >> ; linux-iio@vger.kernel.org; linux- >> kernel@vger.kernel.org; jic23@kernel.org; >> Jonathan.Cameron@huawei.com >> Subject: [PATCH 1/2] iio:filter:admv8818: Add depends on REGMAP >> >> [External] >> >> Add "depends on REGMAP" to CONFIG_ADMV8818, because >> admv8818 driver >> uses structure/symbols such as 'struct regmap_config' which are >> defined >> only when CONFIG_REGMAP is set. >> >> Fixes: f34fe888ad05 ("iio:filter:admv8818: add support for ADMV8818") >> Signed-off-by: Wang ShaoBo >> --- >> drivers/iio/filter/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/iio/filter/Kconfig b/drivers/iio/filter/Kconfig >> index 3ae35817ad82..4bbf10f8692c 100644 >> --- a/drivers/iio/filter/Kconfig >> +++ b/drivers/iio/filter/Kconfig >> @@ -7,7 +7,7 @@ menu "Filters" >> >> config ADMV8818 >> tristate "Analog Devices ADMV8818 High-Pass and Low-Pass >> Filter" >> - depends on SPI && COMMON_CLK && 64BIT >> + depends on REGMAP && SPI && COMMON_CLK && 64BIT > I think the best way is to have select REGMAP_SPI. Hence: > > depends on SPI && COMMON_CLK && 64BIT > select REGMAP_SPI > > This will automatically default CONFIG_REGMAP to y. with your > patch, I guess we can still have issues with ' __devm_regmap_init_spi()' > > - Nuno S?? > . Yes, only set REGMAP but REGMAP_SPI may causing __devm_regmap_init_spi undeined. -- wangshaobo