Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7110464rwd; Tue, 6 Jun 2023 06:34:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Zz4Ej+2yHUXZSwY5nFY13gfi92aRmql1rfxqmOwMaNqtS2O8xUbboKSS6kOtOpxMUSNHE X-Received: by 2002:ac8:57d3:0:b0:3f9:ae80:5304 with SMTP id w19-20020ac857d3000000b003f9ae805304mr2444324qta.50.1686058445534; Tue, 06 Jun 2023 06:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686058445; cv=none; d=google.com; s=arc-20160816; b=hMTSMgNU10ehdPNWqEpwPLP9dZNMa3+/7wxwm6qje/ureU8a90dBmttNjvDEDjxTEi Pp0MV6ZxRnOnSg5ScORkMWc7+PpAw3EF4p+HFnLSZojN7JeWAIR5dRJJfWPvdZQOgwBE Suy4HWWavSxq2Ewe6UTX1zX3CPiZWpvr2X8zyS9eFa4r0RpuVbnei7XdzhhdvqL7noPz o+0onavbHd52/jXKzfdsLajuNYJ+db6uaKqlC6lQIouz4xxky87uvVyLEnH84SkrL7XG BaiXopM37rs7liLW6AVMsN+TeSHhUzUKZjAaUoq28ieKuRA1G9VFJp8e6Sra5I0U6Gaj UqUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2srvcTQauMXy5Q3j/RaWQ6wod7y2ZW4r+xbDOiID5bc=; b=ziTozgEwyonCZPM3OldHhIe59IEMXU+3Hv2zH0dCh9icq+NOGWCndrmiSsKczDh7Aq ZeAGewthRdTVwlIPuvBBbYj2MWFs/jaK4S52dALo9pcEbjFBd0G3n7oUzugmJ4DMTR48 Hh55AmLFoRtUqfXMQPoTU2b9Mz5hWKmOs2j8M0K+Z35Ugc8ssOkoXElm8bD83lBC26bY JQ6aNDdGIMHRAX2qV07d/ekOBZVmLksoHcoNE/iueM2J0kBni9yRFHDi+mmBUoKjx53W R4YsRGGqRcKwB4v5+WWqv3NwdGhZWfK4g+9fqbHTK/LmF2hDP8KwblbwAoRRJ087N6zu fSpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iWUhUQGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a05622a144e00b003f50ae7f146si5971537qtx.45.2023.06.06.06.33.49; Tue, 06 Jun 2023 06:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iWUhUQGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237840AbjFFM4X (ORCPT + 99 others); Tue, 6 Jun 2023 08:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237870AbjFFM4U (ORCPT ); Tue, 6 Jun 2023 08:56:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5C310FB for ; Tue, 6 Jun 2023 05:56:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AAB4963263 for ; Tue, 6 Jun 2023 12:56:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31B9BC433D2; Tue, 6 Jun 2023 12:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686056166; bh=2srvcTQauMXy5Q3j/RaWQ6wod7y2ZW4r+xbDOiID5bc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iWUhUQGd5yrXxdMgefzra4TtCk/UUbi9pFkLcLu/fj3HO/psKt3DdUQDQP03pJq1s WREkWSdE9iqyNaSR2cJ+kI5f2brpEmUdGfd+TCWY7Vo0IEv911aymIHZySwsn15cuS Dd/kP0+RZJ5edvvTZAOd9s55zthmm8w5uh1Bk63b2UTMQ7fa1nIsZYrY9YDkzuLPBy 4VtjNWOkK8jNxQYwuF+ar/VmDE6u7FKFxr83ND7EJHTGFK0tgB7jgge6zE9xBkKnYS i/tROeS7xGCL5zzAYiHN/bMaK0HbuOtVJq5/AI12MF3HVkiMu2m9KN76quVZ89hD8t eWLOiP5DLgy1w== Date: Tue, 6 Jun 2023 13:56:01 +0100 From: Mark Brown To: Raag Jadav Cc: Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] regulator: act8945a: rely on hardware for operating mode Message-ID: <8fecb30c-a42a-4cf2-8ad7-6795149c2d29@sirena.org.uk> References: <20230605104830.68552-1-raagjadav@gmail.com> <04b8fa24-e5a8-4871-a397-f1c0c886449a@sirena.org.uk> <20230605143103.GA3068@pc> <545d3463-ce56-41d5-9d95-55764c448c09@sirena.org.uk> <20230605161614.GA6548@pc> <42423085-2c9c-47f6-9588-3e2260da7cfa@sirena.org.uk> <20230606070007.GA4691@pc> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fuHrU8yFPMu7b9nu" Content-Disposition: inline In-Reply-To: <20230606070007.GA4691@pc> X-Cookie: Keep out of the sunlight. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fuHrU8yFPMu7b9nu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 06, 2023 at 12:30:07PM +0530, Raag Jadav wrote: > On Mon, Jun 05, 2023 at 05:30:36PM +0100, Mark Brown wrote: > > If we have those then we've got a bigger problem, for example we might > > switch to a lower power mode which can't support the load we're trying > > to get the consumer to run. > Yes, but in such cases it will atleast report whatever mode currently > set in the hardware and not the incorrect one stored locally in the memory, > and this way I think we have a better chance of finding out that > there indeed is a problem. If this is a concern you should add something that verifies that the mode hasn't changed underneath the driver, this won't actually detect any corruption - it just might silently fix it. --fuHrU8yFPMu7b9nu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmR/LOEACgkQJNaLcl1U h9By6wf/UAf816pXODyf69JrmhF+3TMa9gCdZxkn651HdSpPYdf0r6Jo4AQkSMB+ LgVMyRI4VcnPRgWv196BX8ydZO43DWiJ3RHh8Dw6dIsq/G32wIiS6CnXayaeBtxe 1HerFTUIVZic7ITpXzlMqK4oibbBWXaB56RfxUVRTpPE3JfnBYrmiPUQt2p5iQLW akfqOlUHW3uHUTeZiOy0NM86p6ajuZY5K7aloE68Ss3XbdZ+I7R8VNEBCuJuAbAw LRbU4TT774YLrafN1zNwhIB5bSx53UbiMreLSNcsMHcT2HPvro00oM+a48fBIQbx Xqkt+PetPLIX07oTqvGlAWJu2NRlQg== =CCzN -----END PGP SIGNATURE----- --fuHrU8yFPMu7b9nu--