From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752012AbdLAPBf (ORCPT ); Fri, 1 Dec 2017 10:01:35 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:14925 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbdLAPBe (ORCPT ); Fri, 1 Dec 2017 10:01:34 -0500 Subject: Re: [PATCH v2 14/19] ASoC: tlv320aic31xx: Remove regulator notification handling To: Mark Brown CC: Liam Girdwood , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , , , References: <20171129213300.20021-1-afd@ti.com> <20171129213300.20021-15-afd@ti.com> <20171201133604.6v3ychahwvlaygxi@sirena.org.uk> From: "Andrew F. Davis" Message-ID: <216ac36e-772a-0919-67cc-86589d3916fc@ti.com> Date: Fri, 1 Dec 2017 09:01:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171201133604.6v3ychahwvlaygxi@sirena.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/2017 07:36 AM, Mark Brown wrote: > On Wed, Nov 29, 2017 at 03:32:55PM -0600, Andrew F. Davis wrote: >> A regulator being forcefully disabled is a catastrophic event that >> should never happen to most devices, especially not sound CODECs. > > That's not what the disable notification handling is for. It's there so > that the driver can skip having to reinitialize the device if other > constraints mean the power doesn't actually get turned off when it > disables the regualtors. It's nothing to do with forced disables. > Looking into the call sites, at least in this case the only time this notification will be called, outside the normal enable/disable paths (which do the same thing here: turn on regmap cache only mode and mark it dirty), will be during a force disable scenario.