Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp824500rwl; Fri, 24 Mar 2023 02:27:53 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMDPbv3JPFelNMAuYfv5forfDvf2rtAk2YxMhnR75z08Ot/NlMfGdOjYde5RYyX6Un32uQ X-Received: by 2002:a17:90a:4bca:b0:234:b4a7:2abd with SMTP id u10-20020a17090a4bca00b00234b4a72abdmr2322673pjl.12.1679650073411; Fri, 24 Mar 2023 02:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679650073; cv=none; d=google.com; s=arc-20160816; b=aQtYuKM4AR9782k2zus9vOjZaYocJgvZ61tP2WSwrpGu6kPz+t7i/Oy33zOLAe1mqX ViQiPXi3saR4e112nVHl96uKkTg720E+nXa1CwTuWoK1i7Z47RQWdJ6RHr6DkRia00Gf UIbntfrqTx/BUrAuy4V0FkKFdPjES49SdW2s5qnJT/gh4n9oNZa7lMr1sAGg+LPJN664 UuRguz7w3w7+/XNvCFFyNzRO8nEQ8FCPBnophU1iCjs2vCOXylVlzMUjPdU+kFI2yfKv J6+CrUKvQ4mZyAoyDZ+gLpGIrXsEgnYPckiG2n69MmpzdPFd8w+rI45vfOR0fk28jk+Q Kqfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YX4W9MdvoAZtuc1bquhjvBcfk8W3dvwqaQOVgNc1aDo=; b=hfRsfPIXIbRglRcFDIhIuU2EMBWTW5GuboXZY/3uCE098BbC7srRvNr/i1okLpL2zI zNzEyTQAeorzIk+EjGEUmI/OFcTsZeaB0S8jL/FdX5x5imfkFapFQS+DpqCWXS0nXKkt 8wP7k0uAgCeR6JIYB8WMka8bftuBNIgMhxkWcZsiXpIgijcjcTD7draK/UkqzQ6jfXJu o3MyUF+ywpBsl6T1/0ykMZUTPgi4TIpWrsq0hN6WgoG/wWLyu14ZlBJEOV1jc6DPICMo xzuKwZBG3T0BppbZzUrkJOzGfW040/g3yQtY0j0eSNTp96897mVD5977r3/7ijhyKwyk Vfag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ppylE8CQ; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a636904000000b00503016f280dsi21007000pgc.823.2023.03.24.02.27.40; Fri, 24 Mar 2023 02:27:53 -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=@cirrus.com header.s=PODMain02222019 header.b=ppylE8CQ; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjCXJYK (ORCPT + 99 others); Fri, 24 Mar 2023 05:24:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjCXJYI (ORCPT ); Fri, 24 Mar 2023 05:24:08 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C11C23A78; Fri, 24 Mar 2023 02:24:07 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32O7kB4s028357; Fri, 24 Mar 2023 04:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=PODMain02222019; bh=YX4W9MdvoAZtuc1bquhjvBcfk8W3dvwqaQOVgNc1aDo=; b=ppylE8CQ3XqKGunHvLvpvRjEbAFMLkgCrNeD39vUqxVDAE4R+NFvLzuY0Ipitr6QMwFU 1RhzlkXRFlan9+kPHLkweDOtELcLT5AnHfBe2oZeYxGKpSYlJUxF9RLAWYfcVRK8sHZY zzQNvwHzUt8OclEwG4ukkLZZeCQ58qiGGwAj611YCiz6qpt6iViBgdzYxAt41DfVlEgZ DoD9iDfPgDLXSLGzL1REvyHwg8FaJxzazwONNb9Wk2Kj7ew1X6G/w1SW+h0xt0ze+drq iu83eQTTQ9qVagMxOQ8xLpRCXlUfh8OI/h4MO9YfKQbSRv/FAAsJnFOsFPoFM8GsoUd8 vQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3pgy30gn2g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Mar 2023 04:23:55 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 24 Mar 2023 04:23:53 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 24 Mar 2023 04:23:53 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 0A34DB06; Fri, 24 Mar 2023 09:23:53 +0000 (UTC) Date: Fri, 24 Mar 2023 09:23:53 +0000 From: Charles Keepax To: Doug Anderson CC: Marek Szyprowski , , , Liam Girdwood , Mark Brown , Subject: Re: [PATCH] regulator: wm8994: Use PROBE_FORCE_SYNCHRONOUS Message-ID: <20230324092353.GO68926@ediswmail.ad.cirrus.com> References: <20230323083312.199189-1-m.szyprowski@samsung.com> <20230323114035.GL68926@ediswmail.ad.cirrus.com> <20230323174531.GM68926@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: YOwIOATtHdJfrMHP7esprxLpyJ1QleCJ X-Proofpoint-ORIG-GUID: YOwIOATtHdJfrMHP7esprxLpyJ1QleCJ X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Thu, Mar 23, 2023 at 11:00:32AM -0700, Doug Anderson wrote: > Hi, > > On Thu, Mar 23, 2023 at 10:45 AM Charles Keepax > wrote: > > > > I think really the best place to look at this would be at the > > regulator level. It is fine if mfd_add_devices passes, the problem > > really is that the regulator core doesn't realise the regulator is > > going to be arriving, and thus returns a dummy regulator, rather > > than returning EPROBE_DEFER. If it did the MFD driver would probe > > defer at the point of requesting the regulator, which would all > > make sense. > > I think something like your suggestion could be made to work for the > "microphone" supply in the arizona MFD, but not for the others looked > at here. > > The problem is that if the MFD driver gets -EPROBE_DEFER then it will > go through its error handling path and call mfd_remove_devices(). > That'll remove the sub-device providing the regulator. If you try > again, you'll just do the same. :-) > > Specifically in wm8994 after we've populated the regulator sub-devices > then we turn them on and start talking to the device. > > I think the two options I have could both work for wm8994's case: > either add some type of "my children have done probing" to MFD and > move the turning on of regulators / talking to devices there, or add > another stub-device and add it there. ;-) Is this true if we keep the regulator as sync though? Yes it will remove the children but when it re-adds them the reason that the regulator probe deferred in the first place will hopefully be removed. So it will now fully probe in path. Thanks, Charles