Received: by 10.223.185.111 with SMTP id b44csp421881wrg; Fri, 9 Mar 2018 07:13:10 -0800 (PST) X-Google-Smtp-Source: AG47ELvFklVYlGOfh1gg3HUO0bCspUMYhf0qOy7GrKvrY2C1iP1KNc6hQ6sW4DsJkUvhSrM8SNqz X-Received: by 10.98.224.208 with SMTP id d77mr30649124pfm.194.1520608389911; Fri, 09 Mar 2018 07:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520608389; cv=none; d=google.com; s=arc-20160816; b=ajvOpgjZtJ5s0q7UDAESlejLhxAyyj6alOl2MMBr9e4BqYZdKFDDnV19ce4tTnZBbQ Oi1Qt2E+713RUMx46geLN++omZjho1e9NQs7GgM0HGVdAWjqIUElJ7rFhyiJ5UjvU4Sl rLtfhAdIdSvaByZwBwdFEx3kDzxgH35C9nL2aVFcxikuK2n6E1Q9ak62+CXId2dnnWHt gJQqv5UUxYrN/cOUhjgJp9/tE9v5SxyPTc9WySERwqVkdNanbBFer1V8zoRIZmyVUAAM zOXvkDx/GoBkIHLbAmzdM22E+3oeeSkJb8nUs+m4zVvtEfCb+yujh24SLXD/IWcsYzGf VSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9ro49pNQ2XNOMYWyRqhZbodLFjgOthJXvUjp18spITY=; b=QkMkwNLGT+YNgo+2JXdRxsMgl4COVTiK9Fa7b3be9QoKUPp4pwyeaU7+v9EnK37CG+ Jb4wwBJozePG4+aa3yzXHWJrie3oCdfSK6KI6ht9u0klvnLEt2l2KxEOwVlcEwhWf94q hIaYrZqWg570n6zl+yLuu1nCp4ggDhAO0CUz/0a1jnNRYAq2yKOh9snxjeliCwJvK6l6 uGskyCkj8kTqP4TTGqY28Hv38PoO9J0D6m5xBhsbNA5C2M87gM6SaY5PrPjijBcTIAUh zoLJp+2img4bbiEONJkoDnlbqHExag5IMGIt0HoiB6uWeSGD9D5LaY8ZeLM9gQaZ6fXm 8K9g== 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 i2si834931pgf.145.2018.03.09.07.12.55; Fri, 09 Mar 2018 07:13:09 -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 S932093AbeCIPL7 (ORCPT + 99 others); Fri, 9 Mar 2018 10:11:59 -0500 Received: from muru.com ([72.249.23.125]:60264 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbeCIPL5 (ORCPT ); Fri, 9 Mar 2018 10:11:57 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1451F80F3; Fri, 9 Mar 2018 15:12:54 +0000 (UTC) Date: Fri, 9 Mar 2018 07:11:53 -0800 From: Tony Lindgren To: Mark Brown Cc: Lee Jones , Sebastian Reichel , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv5 3/5] mfd: motorola-cpcap: Add audio-codec support Message-ID: <20180309151153.GR5799@atomide.com> References: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> <20180223200254.25685-4-sebastian.reichel@collabora.co.uk> <20180307163211.rytfli5tb47yhtug@dell> <20180308094652.qg4atjw5c3hayaz3@earth.universe> <20180308095315.mpcmx2ob6yhsnrm6@dell> <20180308102757.jyi7uo566n6nuct5@earth.universe> <20180308104831.fflq2arj5dxgntia@dell> <20180308112528.GC6019@sirena.org.uk> <20180309083414.s57eq3kw325magwz@dell> <20180309124017.GB5252@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180309124017.GB5252@sirena.org.uk> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Brown [180309 12:41]: > On Fri, Mar 09, 2018 at 08:34:14AM +0000, Lee Jones wrote: > > On Thu, 08 Mar 2018, Mark Brown wrote: > > > > Linux. Clocks are a big issue with audio stuff, right now sections of > > > the clock tree get handled in the CODEC driver but we're going to want > > > to push them out to a clock driver so we're not reimplementing handling > > > for clocks. > > > How is the CODEC controlled? Does it have its own registers? I guess > > by "it's not a separate device or IP" you mean that it doesn't. But > > that begs the question, how does this then device differ from all the > > other devices (adc, battery, charger, regulator, rtc, pwrbutton, > > usb-phy and led)? > > I'm not convinced that this is a particularly good idea for the other > functions but anyway... the big thing here is that in these devices the > CODEC is generally not the level that the IP is created at, it's a > collection of interlinked IPs which usually includes not only audio > stuff but also some clocking stuff. The repeatable blocks that could > get reused independently are generally a level down from the CODEC > level, for example if you look at something like wm8994 there's a couple > of identical FLL IPs which could make sense to enumerate individually in > the DT. The top level generally doesn't get reused and is purely an > encoding of what Linux is currently doing. It seems that most of the components in the PMICs are just standard components packed into the PMIC with a control interface provided over I2C or SPI. So using compatible for things like ADC, RTC and so on makes sense if eventually figure out which ones are shared across various drivers. Sounds like audio is a bit more fuzzy like Mark describes above. And by not using a compatible for audio we can have things working while not establishing and ABI for something that might change in the future. Regards, Tony