Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp492633ybl; Wed, 11 Dec 2019 03:00:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzbD3oNIzZu2TqetNpIvF0fuKF/6DxFv6SCwemL2s5F9K2t3qLCamkdMHzQmHXPOijyfBbD X-Received: by 2002:a9d:53cb:: with SMTP id i11mr1882995oth.158.1576062059417; Wed, 11 Dec 2019 03:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576062059; cv=none; d=google.com; s=arc-20160816; b=BPDHKTTi7MFvZ/4VI3oxKkfZdNJSZmIeileZbhTverMXjMdDL3nrYtiE2GqmYtHIZA Bv6TmlI3uq/l9Yoe+/2RJij4qsx2evlw+Pa4yelU3fRy0pT90VixCn4371W0quI06w/w CnVQv6QfFJ/BWDDRd891mgTDqk9PdIQ2duDJonevVBuJPHqbtBikoOvpTpnJV1iu9LJt MKoNQpSnOXgmgq083fXEKZVuIE0kv77Wnc74jvXOTbQ7r+3wMchSHJK7f4eEB5b+EKa0 1kbms7Hj1Gh81oCrpbAfBP5Fmk+weeGiVfmshc2GuDcO//SEBkU/0CTqAOBUw7dJ/Y4v RLCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=MQK8ZVgrVvXj2CCi28ItwK2/xlFo7vqiSDqFxR2ycEA=; b=Hk7aYiMJBZyVcsSVyz4u6U6y1KB4WBz2fd5dEtEb6KovWWJRTu+ajj8XpvnqCReoB2 9+pP+E8pnFae2EKIqeMs3XINkNKLI3Xb7tQQKa05yQPF+0IIZtqWFcGlk7scMBw1AHy0 xgeAWFaea7hvzl3wJRYebnbnPKnDhK5/mwvCdFwsI1M2yMIDM6bA1ncfe0pQQhIxQIUi rbaGFBUWd2gSIVVWCylGQ4dFM6WqWA0ehr19lxRE7pDHSm606jPautkBEfV7CsEoNasa y4uPV501wNEnDopJUoKRHg0xjufzl2q7XSY0l8ip24DnzCpNkbP89SKsp9LtfvVbKSSU JB3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=XYF0uUIP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si984591oic.72.2019.12.11.03.00.47; Wed, 11 Dec 2019 03:00:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nvidia.com header.s=n1 header.b=XYF0uUIP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728943AbfLKLAA (ORCPT + 99 others); Wed, 11 Dec 2019 06:00:00 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:7668 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbfLKLAA (ORCPT ); Wed, 11 Dec 2019 06:00:00 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 11 Dec 2019 02:59:52 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 11 Dec 2019 02:59:59 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 11 Dec 2019 02:59:59 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 11 Dec 2019 10:59:57 +0000 Received: from [10.26.11.206] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 11 Dec 2019 10:59:53 +0000 Subject: Re: [PATCH] ASoC: rt5677: add SPI_MASTER dependency To: Arnd Bergmann , Mark Brown CC: Ben Zhang , Curtis Malainey , Liam Girdwood , "Jaroslav Kysela" , Takashi Iwai , Cezary Rojewski , Pierre-Louis Bossart , Jie Yang , Thierry Reding , Matthias Brugger , Charles Keepax , KaiChieh Chuang , , , , , References: <20191210195333.648018-1-arnd@arndb.de> From: Jon Hunter Message-ID: Date: Wed, 11 Dec 2019 10:59:51 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191210195333.648018-1-arnd@arndb.de> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1576061992; bh=MQK8ZVgrVvXj2CCi28ItwK2/xlFo7vqiSDqFxR2ycEA=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=XYF0uUIPrfVZWGpMaViwy03efYcRVbDgtnOcU0FZmQogsvCRIi7nl5qF7oHsMi1cB UR126BMNKqOpTLRdnWGkSTzRk1y76Gg2XyJutGSZDP55Kvi80aBdQ2MWCt2l+Wm0QJ EKxVYbjxVxz/Bowr/qYlCXOlVyTcB0405ASX3VXwZJkuLpNzthrWpF8LH4dGkoMbD6 2ZCio9eSOkANH2ysYs0lWfvl3zyd8Ck/BoCTPNDZSVOBwAcZTUp01vLexN1vtHDq50 jhnyS/6aeYyuK7icmpNbnibMOIX9aTAM19weFl61QAtNC+aaUb7XGGeOforRV9Wm11 FJug7rWvb8ObQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/2019 19:52, Arnd Bergmann wrote: > When CONFIG_SPI is disabled, the newly added code for the DSP > firmware loading fails to link: > > ERROR: "rt5677_spi_hotword_detected" [sound/soc/codecs/snd-soc-rt5677.ko] undefined! > ERROR: "rt5677_spi_write" [sound/soc/codecs/snd-soc-rt5677.ko] undefined! Would it be better if the above functions or the functions that call these are conditional on CONFIG_SND_SOC_RT5677_SPI? > Add a dependency to prevent this configuration. > > Note: the does not work with the DT probing, as there is no binding Are you missing 'SPI' or something here? > for the SPI half of the driver, but nothing seems to be using that > with the mainline kernel anyway. From a Tegra perspective, given that we don't use SPI in conjunction with the rt5677 codec, only I2C so far, I am not sure we should make the tegra_rt5677 driver dependent upon it. We should be able to operate without the SPI bits enabled. Cheers Jon -- nvpublic