Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp692014pxu; Wed, 6 Jan 2021 01:33:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOTfv1VyxaMY8HX0yvz0S/5O7hN6kblIgW8fN+G9sN3yS8AqW+oa5G+fjzR9ofVFZ891e8 X-Received: by 2002:a50:8b61:: with SMTP id l88mr3507936edl.250.1609925605244; Wed, 06 Jan 2021 01:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609925605; cv=none; d=google.com; s=arc-20160816; b=sQsOqgp7afgKD2u9bvdu2/pMezgTb/x2l/HnFx5p3P+mXxKSIU2WPxUO3UOMt62KpI G9/GNTf4b2tNfVWKGBz6LSDfIV9OlShbqS1ALcuy8+eK1U47MR4LM0hkHArIDPnrOUs3 VXb5pKxAR71NSfdNxaHmcCqx3zvbIm033WHaM+Qguqy50gMCJ6IllxhBSwi4uTR/tI6i eBVVMeOAcxI7i6ukxvGY1C0MHboJ1em0lODBPED7pPtmeOT1uCuwmEZYnYrlXKes9iCU ZNvQuk68xfZi4IuJHOyhpGoxj2v18INMfGxmtXNac3k14j5wnWrdi7vuntj/MdOgptB5 L1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wZyqp6jY2YRJCcLJ0dTEK6PQkc+N124YcfS+/gEs1vM=; b=Pl1dk03QAOumwWssFzjhCzbzkGRfJqnmBrapP1ysfMICxO314YpjxKsT2cstbkqbaG VpYr4aqmNDqoyZ56R1qLA0JZOwiWEdQQC858cr0AeMQDnf+1EbHoq2nfc6PclMfvLLFp DyZxii9Uyxn0VNJFulBCYjIrAQau8Z+KWmZ+ZFnpnt9jl0SLyQtFxCE6e9ulDBkcVVGi SvFxp8MMr8ZKbiiqqywSDqDfQUIxibtls2OQddOWavApFYSvWWMBZVz+ntxBiv4KU3aa Hq+f5jT+u9/pejDnJFXuatLSSvK/C0namlq828ShSSj5RtbRsU8hl1CPol7VW+7itAql +JpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ssUHgab+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si714786edv.337.2021.01.06.01.32.59; Wed, 06 Jan 2021 01:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ssUHgab+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726358AbhAFJbl (ORCPT + 99 others); Wed, 6 Jan 2021 04:31:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:51244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbhAFJbk (ORCPT ); Wed, 6 Jan 2021 04:31:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFD1A23110 for ; Wed, 6 Jan 2021 09:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609925460; bh=AEpXdsrE5JKREcFpu6FTa0A3+Lm3TC2ygXxgVZvbRiQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ssUHgab+xlU/+H4qyvtBbX40m7iPcwVJlGYM4IX0hDLb+yv2DjeS6oUHeLKabpPgP Gp8NLTzNj107gdAr/0lKafQZXprsQWTUfEuvA1Eys5ZSEewglZHr/CLBC7RDkT9RS2 dRDeyhgL1IdNzy42WdhRTK63/UXdK9RsOY6xwOYIQP0p93VyWftk3jyvAbAEOg0nn+ S4zMwivzpM5BY1sSDCAMPfMhfW1fpqRP6VMTS6MoZGPZtfqpOzGN1vqx//mEA8eeyh xV7jCTyC041+3RqiTjY2LFLi7tLr+YW7OxEDoo19BBrYMfVdCx4Zgao+hv9wElayqt bdYHiVcEIDfyg== Received: by mail-oo1-f50.google.com with SMTP id y14so614574oom.10 for ; Wed, 06 Jan 2021 01:30:59 -0800 (PST) X-Gm-Message-State: AOAM5306IeWiDc7qlFbuagTdGegJ7nzy7/YvyXEOx7PztsdRq6Ci4WDg HtwEq7RO4bDqCgmZe0WhH5RnV01+8yvD9u+6OFM= X-Received: by 2002:a4a:2cc9:: with SMTP id o192mr2198217ooo.66.1609925459053; Wed, 06 Jan 2021 01:30:59 -0800 (PST) MIME-Version: 1.0 References: <20210105190808.613050-1-arnd@kernel.org> In-Reply-To: <20210105190808.613050-1-arnd@kernel.org> From: Arnd Bergmann Date: Wed, 6 Jan 2021 10:30:42 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ASoC: SOF: Intel: avoid reverse module dependency To: Kai Vehmanen Cc: Takashi Iwai , Jaroslav Kysela , Liam Girdwood , Mark Brown , Arnd Bergmann , Takashi Iwai , Pierre-Louis Bossart , Ranjani Sridharan , Daniel Baluta , ALSA Development Mailing List , "linux-kernel @ vger . kernel . org" , sound-open-firmware@alsa-project.org, YueHaibing Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 5, 2021 at 8:07 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > The SOF-ACPI driver is backwards from the normal Linux model, it has a > generic driver that knows about all the specific drivers, as opposed to > having hardware specific drivers that link against a common framework. > > This requires ugly Kconfig magic and leads to missed dependencies as > seen in this link error: > > arm-linux-gnueabi-ld: sound/soc/sof/sof-pci-dev.o: in function `sof_acpi_probe': > sof-pci-dev.c:(.text+0x1c): undefined reference to `snd_intel_dsp_driver_probe' > > Change it to use the normal probe order of starting with a specific > device in a driver, turning the sof-acpi-dev.c driver into a library. > > Signed-off-by: Arnd Bergmann There were a couple of build failures introduced by this version. I have one that does build now, and can post that if others think this is the direction they want to go. Arnd