Received: by 10.223.185.111 with SMTP id b44csp48352wrg; Fri, 9 Mar 2018 00:35:35 -0800 (PST) X-Google-Smtp-Source: AG47ELu7EKfgdGVdeeA5IT1JdpjuIpF1/QQg9qS3GxKv548FcPJJwKQiZD3Q24BzxM6IfNGXWy09 X-Received: by 10.99.97.204 with SMTP id v195mr592598pgb.193.1520584535660; Fri, 09 Mar 2018 00:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520584535; cv=none; d=google.com; s=arc-20160816; b=QovY4I6T97kFDN1SaMZhe+tNvlI+GqIHro/hPNzCrLV7xOvewvknHfOurE0RYq3j3/ dILHAyvnrOp9V7JldEyyO9uLEvA303T7zyEJg2v7E2v7D4z3n75eqsFwsLe6eO6wEyLg ne2YoaIL0Dtv6HRJiLfcLjUj3bMQiQLDOp0Q7UqBmOS3vXyJzZo/AETUpR7r3jmgJZvz uio+f+CM70G2B2sP7HM3gdu+S7lZaDYSNfyiWHD/otBBaORDBdjonMaWM9JKYC60mUgH AV9G1g7R30m5xpXIoUllfjXhTRAqNJFLRBihP6OyTuzL/lTa1+yfBAkl/dZ4QTbZC0AO WN+w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ydTOhLxWEUZjKzBaZKngTc9qqtTNbTeLz8S4O1wFH/E=; b=VWBXNwLOYVmv4UUeC/rGcnAIhwEMaRlGSYFPSQqPUzysdXBHXFv2OERGnfz/N+Qofe v0rJr4GULb6mCu6WxtbCzaOw3dg3KQZoy7pPy+xMF5fe2yhOA+r00ftxqCc1z8DPNnKy mJ3rlLU1x3iODG8t3HQfB/elFf8DV749s+8+bknPE3nBPFpRbbi4HYaY0ktiysJWnHpZ CN+ZOzbwNxbnN506+3N/k2GA+NmRZasRYDC++32zinnc2YE0AV11A1wfGE/D/Tsxsu0a r+NPwOYRB86UBHiAI6Q1JUiET/JIPYONiNt2BZ8nn/4B0sAVORSK5qduddjX0Lcxhmxg ru+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COoEjDyU; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si476898pls.673.2018.03.09.00.35.21; Fri, 09 Mar 2018 00:35:35 -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=@linaro.org header.s=google header.b=COoEjDyU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751889AbeCIIeU (ORCPT + 99 others); Fri, 9 Mar 2018 03:34:20 -0500 Received: from mail-wr0-f176.google.com ([209.85.128.176]:36901 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbeCIIeR (ORCPT ); Fri, 9 Mar 2018 03:34:17 -0500 Received: by mail-wr0-f176.google.com with SMTP id z12so8175434wrg.4 for ; Fri, 09 Mar 2018 00:34:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ydTOhLxWEUZjKzBaZKngTc9qqtTNbTeLz8S4O1wFH/E=; b=COoEjDyUQrfWrTes9NlJmLzQWzJL1hE7REcQBT3pFAQzbg1A+2qIDV/EPR890rDdG0 KHVtM9A9B3Djijuf7riDllGoYhrK6kbftDNv7E26potV0tvFvlwbGwG2CrT13QjzXnSN YUODRV9WdWapGog4p76S4He3eGE1lAOJzSnf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ydTOhLxWEUZjKzBaZKngTc9qqtTNbTeLz8S4O1wFH/E=; b=Q/nnmB0Ire1MRm5cczVXd2g40kDEL7UR9ir8S1jf+mm+Ahb86/d8BmplHXf/W7ShqF fevdh1PBGuYzzaL8roLEk+bs1UKQhN4bhtXrI5m65kW1b/uAxjEA9HllrZTmTf1VmZSx ECTSR2vmNI56vwqwk7x83U7SQmOZ+7/BCgXiNTHdL1qSMQmXH4kERVnFq/+R+HxtWvxt QTCU8KR2yACPEJsmo6h9Huaz1sWSY6xa0KaeUS/GJYRPjoB6vXZedNVD1GqQLzWFGiSZ AmFQxGOVvuizjmvyxz0brgUnKtY7yUtLZTg3Mj0RtYHuuhp/v0oH6FVbfvVakqcK1AQk u8mA== X-Gm-Message-State: APf1xPAWhbXHEU0Q/QiM5NgOnHSy1In8tp1OLQqLhpgfCGlcp3DMm0YU s/8/CrdIR5R/1soHkmZ3aJpWww== X-Received: by 10.223.179.17 with SMTP id j17mr24476692wrd.223.1520584456537; Fri, 09 Mar 2018 00:34:16 -0800 (PST) Received: from dell ([2.27.35.218]) by smtp.gmail.com with ESMTPSA id r126sm754203wmb.10.2018.03.09.00.34.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 00:34:15 -0800 (PST) Date: Fri, 9 Mar 2018 08:34:14 +0000 From: Lee Jones To: Mark Brown Cc: Sebastian Reichel , Liam Girdwood , Rob Herring , Tony Lindgren , 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: <20180309083414.s57eq3kw325magwz@dell> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180308112528.GC6019@sirena.org.uk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 08 Mar 2018, Mark Brown wrote: > On Thu, Mar 08, 2018 at 10:48:31AM +0000, Lee Jones wrote: > > On Thu, 08 Mar 2018, Sebastian Reichel wrote: > > > > I had it in PATCHv1-PATCHv4. It was removed, since Mark didn't want > > > to have it in the DT ABI. > > > Right, but why? Is it not a hardware device? I think converting from > > devm_of_platform_populate() for one sub-device is a bit drastic. > > It's not a separate physical device or IP and doesn't exist outside of > the MFD, it's just how Linux is currently choosing to divide up the chip > right now but that's totally open to change even in future versions of > 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 asking, not to be awkward, but to avoid 50 lines of potentially unnecessary static code. If this is a real (sub-)device, even if it's part of a larger, single device (MFD) then there is no reason why it can't be represented as a single, albeit empty node. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog