Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22338835ybl; Tue, 7 Jan 2020 00:18:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzXsuKXerILSKMBQRW/neQgs6GjYIF5m7gKXaLorVX1E2TVolsSn+jiWUVRsl8v3ySn6AGI X-Received: by 2002:a9d:5c10:: with SMTP id o16mr11000001otk.286.1578385130554; Tue, 07 Jan 2020 00:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578385130; cv=none; d=google.com; s=arc-20160816; b=ELF5JN2vnj0/iiK1A9x2egzhlSiMUlzAFDER71AyXlqLG9e8PdPpZ1uIfno6RtEoJC U5gkjzLF9NlWQ3P2VX76jraDymb6gYryzjCHWOCklJV26UasCqVb4SKLfFcJlGkbR/6X JrGOUz6bI5vxQufyFNHNtiijVEXEIE5UwTol+RNG0/6PEhQAkGivOoGXr+Ck+PFls/0L roAUSYDov9Pb6hHkCQUy+W1B97RUOKU/FGY9aDCSPwz2mvIL9BX7nV94ZAYXjniTkoGy gjDN4+ddcegjidJIsCXyqcjry4P+UdO3wGFuAe0ptRsKWZ/EvVZ2EAyWlCgr9hM0WCsG Mzbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=pyg25rqOikh95GcMBcpMwHtPh8kztsC89h7HFlC0B7s=; b=lG/F7BVcrlGh0Uwo6n59CrkOpZdtE7GoJXUhlC7GPod+fV1VzYvfUS0J3oZsQuw3I3 f9ET2uFaIslP3NHmHJafMKyeBVd3txIT7Tr+EFxmkNcLkdOW9iqszmBaK4B+3g9ldHXT AK7B4W0psTvqYQ3ZH3IcAPmqUgtpr/EJgNuks5X14CggNBWIdQjMpbWSp2REpJHwtADa InND0KY7RLlgiRLDVsCwxwUZ22pLG1mlA6yp3M6p5Rm3A2REhbdPwTm5SIdyN04ZjzNZ vCyN53xURFUsjKX+feY2FG1LBsT3S6LQJjGsHjvaZLYb9ykIQQrKtY3NPt+oBY7KVu6m 7P5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si3779105oth.181.2020.01.07.00.18.38; Tue, 07 Jan 2020 00:18:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbgAGIQv (ORCPT + 99 others); Tue, 7 Jan 2020 03:16:51 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:37139 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgAGIQu (ORCPT ); Tue, 7 Jan 2020 03:16:50 -0500 Received: from mail-qt1-f175.google.com ([209.85.160.175]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MDhth-1ixE5X3eAp-00AmD0; Tue, 07 Jan 2020 09:16:49 +0100 Received: by mail-qt1-f175.google.com with SMTP id n15so44692831qtp.5; Tue, 07 Jan 2020 00:16:48 -0800 (PST) X-Gm-Message-State: APjAAAVLNlX09h5hPb2/cal2uS7lP3qsYeB+oOolGFQBBl+2Ou7Qyamk 7McbzSLWqRl3NdpAx4nPeW5IikTqLR7IvbkgkpE= X-Received: by 2002:ac8:709a:: with SMTP id y26mr78397663qto.304.1578385007686; Tue, 07 Jan 2020 00:16:47 -0800 (PST) MIME-Version: 1.0 References: <20191210195333.648018-1-arnd@arndb.de> <9c9169cc-0da5-f247-c8f7-f6913ca2bfb5@linux.intel.com> In-Reply-To: <9c9169cc-0da5-f247-c8f7-f6913ca2bfb5@linux.intel.com> From: Arnd Bergmann Date: Tue, 7 Jan 2020 09:16:31 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ASoC: rt5677: add SPI_MASTER dependency To: Pierre-Louis Bossart Cc: Jon Hunter , Mark Brown , Ben Zhang , Curtis Malainey , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Cezary Rojewski , Jie Yang , Thierry Reding , Matthias Brugger , Charles Keepax , KaiChieh Chuang , ALSA Development Mailing List , "linux-kernel@vger.kernel.org" , "open list:TEGRA ARCHITECTURE SUPPORT" , Linux ARM , "moderated list:ARM/Mediatek SoC..." Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:keaxXrj9ZK7CoS2HwsxwVxblkq5qp5kthzW2l815MQ+j0uJEsco BY5/GhEFvapn3ptCQXm4ueSJyfi+cgyeJQRs9F6NXeA3pR2wimnqDrAxZvuRjE18qhZHVfK QhaeMTYFwGGbXd7Q884jD6lx/TnRvOzJ/voBqGBAPIGrM/LYqJy99AZIvmHxKjrIpeAzrzH N3fhx2WGc3sPIX4vRSBvQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PgASF3VQxFE=:nKNVgxdHBtDervSUuG7Nd7 5kSRCLp3DgCyN268JgfJEmkb4FAo8jum+RQxly5KMlytHt0n6fEGvkToPRaMCKDgtR9UKiCfn MbM9uLeDF5sQqfneaw7Vdpt6WbPs0UkxDfjIHnROf0dUnvTr0Gf7/ojEhriSLCQfTZHEjdM80 o5MwJxOzfX7iFIaOtlAX/pdljspEJ5VgY5tjKD+x/pU3ULwaUjSeOmm08Ib/PMYv1PywqjARv ZWFZ2ETdHWy51kzPYAdUNqFdiDCE8Jtye1TvWkQui3ZdyaAPD9EOJ8JGeqjpNwBichIe1ilOV nPeseGXhkOXeVC+TrR7XyOEiirpzPCSy1hlzACg/ko6mr9LcjTnRficx9AdR92Ht+hOw8QZ8X j9vAO32nHh6zpOwVg6AC1fVySu7j/EjA2PGrOQeGCo3XsUk/um7fNKQtMisrZ+hh9YKTRF5+/ k7mJFaNMKIZ+GVR19HGoiGe917q3FCRfdnon9nL8BqFLWR1YAg5q7zynwvcdtj/AeTR+0NL0K Ol6aKcdlU9fvw790yPQzEHFukvE8jFZMzSaqePg9Gyg2/tmhj82VgRzWh7M+gagTssgsjLiug KyaLYqgI3bEmhEIOTDQSuD6MuPPc/qpY84rRYcDImr6ANXHnLnZVXXCeSEZN6xfrzCdDI1zRA K5tBisyjqP4zxn+Z8jMJYGjvSdIyIYrAWjaOca9Q0J72nlKAcEAJ2JpKSbkKx2vBTnvZz4Iz2 orreQUqdwnYMNh1wTq+OwMU0bIe13EVQTwjVyd8ev9l3TLXaOdFLjO6EBRv9EZA5jjl8oBWpC 9sqagF1eG6rnVLLXZCHAbFQ6Mz/wmoxH8qX4Ih2pBljcUX2IDhxRMbWEhm5bWtZH84xdT8bh8 1TMJ10IBSc5POVnyrxqw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 6, 2020 at 10:55 PM Pierre-Louis Bossart wrote: > On 12/11/19 4:59 AM, Jon Hunter wrote: > > > > 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? > > they are already conditional, with a fallback provided: > > #if IS_ENABLED(CONFIG_SND_SOC_RT5677_SPI) > int rt5677_spi_read(u32 addr, void *rxbuf, size_t len); Right, this fixed the problem. > in theory if SPI is not enabled the fallback static inlines would always > be selected? > > Arnd, if you can share the .config that exposes this problem it'd be nice I just tried it again and it seems that the issue was already fixed by commit fb3194413d1e ("ASoC: rt5677: Fix build error without CONFIG_SPI"), which had not been merged by the time I created my patch as an alternative workaround. Arnd