Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22082747ybl; Mon, 6 Jan 2020 17:46:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzSRUrTnXIvnuuVsVjvfNq1zEa8Rx9kUntZkGoJkFXybggqw64Dkye7COzDlG/Uzfrecjuy X-Received: by 2002:a9d:7592:: with SMTP id s18mr123413652otk.130.1578361593229; Mon, 06 Jan 2020 17:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578361593; cv=none; d=google.com; s=arc-20160816; b=peyvoUZrDDFQK6Pg9XGIgvXocsw1hJhz+7zt1asyLYoHNKV7IrPL0LL2lHWeiDMl7A GqPaXvjvaG9RZ5plQH5mFrQrclNILpsH3KgThe34GR4CArLhbzyq/WpxJhjNOfh52lbB u1ReXe7fa52qiuA2W1vjXS4zBoUuapQdObtLE0XetPkbQaXoCC/hcX9p6L5nUULropET +pjLh5/CnLucBm6OBcq/2E6J6A4Xc3qTH4yQUsXrwB9mSYCgyAI4rviYCxntHA0hShbr vwDwY4HJ8LJbnr4VIb4aqb+7UL5qk7IcFvuEkilO0ZZWcY9NjmOfKCgmDMCZCw8b5zvR uq3Q== 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:dkim-signature; bh=Ft6xmRm0Xn4A+6zJu2AAPIsi5FGpNr4OiKyWPq8PF3E=; b=QFdlMfc5NmMpuBwOJ23Tk2HW6Ynd2FO3UrCHIJTC86M1rjEPYAwOUDC90SrABOySDb JJb2mblivPm0CoXjTqxoMXiV6+tmXugw1uzK4RnZUUAzYjVJ1/yaG0Ceyo/Wps4s0udu D4H7ovuK45fBv0Eiza1t+BIYw6IYpXHYM7RwyppEjFgoRGkFC8UsuYvNhrSQs+VhUFQT vTdQE6QUX9ecGBhAaEEjaeQiaP3pgWDR4DtFfYuFm34qdu7XenaDmrkdd1MUei0snzBt qaJQWO3rp2CU9gACfycCs+0zSQTJl/1UacCpkso6p0Qz3IZAXNZ+Jp+5y77VUT+Z124n GNow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="mdt/L/fH"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si38185024otq.121.2020.01.06.17.46.18; Mon, 06 Jan 2020 17:46:33 -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=@google.com header.s=20161025 header.b="mdt/L/fH"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727426AbgAGBpf (ORCPT + 99 others); Mon, 6 Jan 2020 20:45:35 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40026 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbgAGBpf (ORCPT ); Mon, 6 Jan 2020 20:45:35 -0500 Received: by mail-qk1-f193.google.com with SMTP id c17so41330396qkg.7 for ; Mon, 06 Jan 2020 17:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ft6xmRm0Xn4A+6zJu2AAPIsi5FGpNr4OiKyWPq8PF3E=; b=mdt/L/fHFt2uUCxneOT+wJBx1zeGq9fEF86Cyn+w5YQHYXVdG2UDKU90QAJJDbAT6E IZWrNX6Taxnc5BNAW8Yp3jFm3p+efXels7I1FhUsccQ4zciOFeCl6pRPzl9m7pO2PuDr KccNYENPlAXa8/HDVUEFXxyjyo87LkIjp98PX/W8bgzxDLiDmuBzWbE0awp041Lw231F +39mAOxKlUQKQGTmn1zMvdes8C2LY2Tfwuk7RCMGiBDabQHnqMP7NGNdvxL2BEaX+Sak z7fe9ZeK79KghIH6+sVVA3NzodbDqzqiLcC+fviJJ+agPmBXo3F4bTuXNJhJr2KcUTHw nV6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ft6xmRm0Xn4A+6zJu2AAPIsi5FGpNr4OiKyWPq8PF3E=; b=lKZTd7ialDiVYeQzv9hXnKqI0TirJnoM8LXemKbzPFldLH0BbBpYUQCn2bMS9VQank I+zZwtGq5COJr0fH3QmnquRHik6Cjrm+mf8bdcEuWYDZ4xuTABip7LCMXrMfaaC4xnFx oD4wwjCQyyk8drJonsIMzAqHJ6KwTIUs92PKtxJ8KFXg1H3QVzY/SxhOxT6t4b7IcPcS 4wwLzOqbzvQWhvQDgtYc/MH1DGP3WeUfTFOHUqZ9+GCn5h/6GAM1PHHx3WDSqf11hPZv nxcTgdim459CZ0eamUFzR0U8hgNlhEpinsoXM/mL4EAdmm1NtymZ7vhm8JhCxtJH8WK3 VivA== X-Gm-Message-State: APjAAAWEkHPfLwZJepJ/20WHmG+KBtel594K267N5x53ci3aXxJrdOat 47Zmphp4e2zIHTovpIaJ4MZ9Wncilb4wNtT58iE/6Q== X-Received: by 2002:a37:ba03:: with SMTP id k3mr83504125qkf.127.1578361533830; Mon, 06 Jan 2020 17:45:33 -0800 (PST) MIME-Version: 1.0 References: <20191210195333.648018-1-arnd@arndb.de> In-Reply-To: From: Curtis Malainey Date: Mon, 6 Jan 2020 17:45:22 -0800 Message-ID: Subject: Re: [PATCH] ASoC: rt5677: add SPI_MASTER dependency To: Jon Hunter Cc: Arnd Bergmann , Mark Brown , 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 , ALSA development , Linux Kernel Mailing List , linux-tegra , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 3:00 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? > > > 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. > There should be no changes needed for tegra, this should be isolated to the bdw machine driver. The only things added to the machine driver were some dai links. > Cheers > Jon > > -- > nvpublic