Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp42929ybi; Thu, 13 Jun 2019 11:16:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBxIP6nXGKcmtFHcs20Jsaiq61qg1s/1JdMZWE2+pg5BQNpbZrhDSA2sDUwDeaqPhytBmb X-Received: by 2002:a62:3287:: with SMTP id y129mr37865087pfy.251.1560449791592; Thu, 13 Jun 2019 11:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560449791; cv=none; d=google.com; s=arc-20160816; b=DYLZk+TAwAaO9p7EQHcp3iTtIOVVl8BImZsWnhLCE34e62PZPEUbJgUuM9K0xvbfj+ pDAm2h5L3m+EqIjY5v6aPK3KPcMwUwsm3eZWrASAJplROE0/ly8EI/IAQ2DzUw9KKPx/ 2M//rliCSw2a0GqwVEeXq1VUyUuqt8m+QWKW2Ydj1/hqYGMPI602nWQlK86ValuqUx3A Y6MME/Ihe+aEoeHXyIZfUa4Zc02FO87rgxWreHfHb2EUYuC4EM3gI7YbJEmTjuNvQb5E 5Cnnwhtmdee2iXikwR10pozqealmvoHD7z5NHdqB+oSlCeqbDL4m4B4stlXyKJX7RW1+ 1S3g== 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:dkim-signature; bh=urMa43C+0jgItqUyKJ9OgJ7uvJ3NBZiThEq7mP6kNFo=; b=l/CBrFjRXoH4o/fpy/urcUQmpjXdWZkdf2gWwBS1/HzoYcBNrkhB1DvESaX/fs/uhp Gmpb8pFIK69d8pAigUAakKM4yrTlAqwWtX5T8o1SGxHzdfspK3zE7ZaCpgr6mnYliC7j sLaskNQG7m0fgPtRaKjLc/Be6hPAvMF/1PLK5I3uzde6TrlHbVp8SyV+qo5Ovh6lkQdy XoKfpRsGlAtv9n5wkBt3YdUDDAf7bz6kEVuqLOeXKt+Dbx1yJDb8y7AqYRR4LqstdUAs E8Bro4P/m+fot6VE/2vLNTKv1peoSddHW1Abla/9Ec/hBHEH7QLt9Z8RZrV/bLn709oD WzEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fS9qeQP9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 132si208585pfc.57.2019.06.13.11.16.15; Thu, 13 Jun 2019 11:16:31 -0700 (PDT) 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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fS9qeQP9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727248AbfFMSPs (ORCPT + 99 others); Thu, 13 Jun 2019 14:15:48 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:37318 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfFMSPs (ORCPT ); Thu, 13 Jun 2019 14:15:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=urMa43C+0jgItqUyKJ9OgJ7uvJ3NBZiThEq7mP6kNFo=; b=fS9qeQP9mDtbwyTQps7xsg8TY Xi5vuZ820jGy9LW6yXfnIKJ/QIfObCgPNLzwy7yiszNFR1GrkwXIe5coL5ZTRb2Dv5FR4SAJVJnHs eYtFB45+9apT1zy91xxZCBO99lRTwGbLggEPjQuISbkZ1S0RKNZw1/ohoFLPwPqzqvLc0=; Received: from [2001:470:1f1d:6b5:7e7a:91ff:fede:4a45] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbUFI-0005Ms-0T; Thu, 13 Jun 2019 18:14:44 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id 6007A440046; Thu, 13 Jun 2019 19:14:43 +0100 (BST) Date: Thu, 13 Jun 2019 19:14:43 +0100 From: Mark Brown To: Thomas Preston Cc: Liam Girdwood , Rob Herring , Mark Rutland , Jaroslav Kysela , Takashi Iwai , Charles Keepax , Jerome Brunet , Srinivas Kandagatla , Marco Felsch , Paul Cercueil , Kirill Marinushkin , Cheng-Yi Chiang , Kuninori Morimoto , Vinod Koul , Annaliese McDermond , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 3/4] ASoC: tda7802: Add enable device attribute Message-ID: <20190613181443.GQ5316@sirena.org.uk> References: <20190611174909.12162-1-thomas.preston@codethink.co.uk> <20190611174909.12162-4-thomas.preston@codethink.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uRjmd8ppyyws0Tml" Content-Disposition: inline In-Reply-To: <20190611174909.12162-4-thomas.preston@codethink.co.uk> X-Cookie: Editing is a rewording activity. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uRjmd8ppyyws0Tml Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 11, 2019 at 06:49:08PM +0100, Thomas Preston wrote: > Add a device attribute to control the enable regulator. Write 1 to > enable, 0 to disable (ref-count minus one), or -1 to force disable the > physical pin. > To disable a set of amplifiers wired to the same enable gpio, each > device must be disabled. For example: > echo 0 > /sys/devices/.../device:00/enable > echo 0 > /sys/devices/.../device:01/enable This is adding a new ABI completely outstide the standard ALSA and power management frameworks and ABIs with no explanation as to why or integration with the rest of the driver. This is obviously not in the slightest bit OK. If there's something missing from the frameworks extend the frameworks, don't just ignore them. --uRjmd8ppyyws0Tml Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl0CkpIACgkQJNaLcl1U h9BS2Qf/eUVj90LcvztgsSKTKJesxl0D3bt7RMK299c2vYLHkirE0vtrBBYdi4Pl FJ8puURfuyztbRnoMYrmvkGzoB+kCtwXLSxo2i1Mi6NSlQfnwwg0aoE9RHuB0oOD /2hT/ekihe5UadF/JGir89imbhQob5EDyVVzjEgyWULQ4ITpkAw8wiaIcF3GNrjY yFLb/wBrR+BM4SXfJKc+SmWy+xt1btn93sWuiaU7SMS86bIEbT1h0w4vQ1p3v2+/ qjopN+wN8BrUnWRHi7xBR4eocG6hGN9+z6/Xkhr2XL8E0tyaDly5TMDZomOPYAif beljIAen1oDtCE4MOp25DYHPAJUmzg== =ioNi -----END PGP SIGNATURE----- --uRjmd8ppyyws0Tml--