Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp885793pxu; Wed, 6 Jan 2021 07:02:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpzT2zshFYNtI3kB48Ezzj1NychY7/RAZC24ZSTpt45FzLBMf6oOS1gWHoNyey1BO4V6eD X-Received: by 2002:a05:6402:487:: with SMTP id k7mr4292079edv.130.1609945370010; Wed, 06 Jan 2021 07:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609945370; cv=none; d=google.com; s=arc-20160816; b=09TzqPopR86vFsAOWN0Y40LuRTI5+FB/q80AyFaf32bSZfVH7oJoWWWMmcR7WxrQfG zLCyuJRQ+d+x0WWzTamykQsU0xHFQRKK0dw0wWFziBk24DrywIon1hGYLLL5+owI9fFn VNHE0qdaGjhr+q3bWPoopA+Yb44xPxJ2Tl6bQmv13wP5WSYYvTvh32GgCMeknqcnmi+8 It+3VKGCFfKvKkKRAq+gT4FckxIKqBzQ919PmjcHewLFCTsDjsI3jrwFI1SuZ1xWm+f4 FUM7dDoioO+XvUNqGvZ9YvHRi6J2msZLaCIXHrKph1T8moWKAQLcFfE7EamIVqjX26sL zNdA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=po8T2zWwnWZL8L2io9qwspLVzsG3j0JFiwwLr/3CHVo=; b=GDH9tvigLMKiKaibzy9gIaVKHiWGEYfjwVTb0+SeSGpTfTTgInVm7kWhHBXfvceIuv 77bgsE8yc1ws3ZaxF+whoiW/msLtnFD65J2hzSLsrEYBA3nGFlFwwWL0OAlRIO3rhJfv Hl9fcm7dwuoRzJNgSmf1xS7PlRZtBDRd6QyzTTAJ9R93PX9JxwfSrGvTWhM7DjHtWEB3 7hdIoB9sNlZV/zZPzkHbT5DZpLz0KPZPaOVbAp8LwaAfqFqz7YJiJP4Fcnev/zTwtw5H ufK+IvEKltK52yB/qxDiq56EH0MpVzdt4PZ2CnL37k0Wwf+qkaFSsiDK45WENSK7Yarn jvKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eItwBxH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si1087005edr.514.2021.01.06.07.02.21; Wed, 06 Jan 2021 07:02:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eItwBxH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726663AbhAFPAl (ORCPT + 99 others); Wed, 6 Jan 2021 10:00:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:35494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbhAFPAk (ORCPT ); Wed, 6 Jan 2021 10:00:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F3092311B; Wed, 6 Jan 2021 14:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609945200; bh=Ujxg+0YYoFI8WvUgcbYeDyszhm5GGvsP5kBNDrttEm4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eItwBxH/7Rl3eFXNVlqkYSiWt5yHJjAiI2z7nilX/on7EZhML6y6/h3uImpBDEw2x fnHj99bYw601Xgw97w8SuohFfEF1qFwvjmDvWCpERVkWYZpuHla2rggXRCHv0EnLy5 4b9lGjj/ADITb2N474R9DPECO3CuBz3Bl6VtnDm4A8Jwz4xLdZeUjCoYQI6jEFbduC /+fclNi8qNSGc5vhx0OpTjiZlQQk9g3s1RkvEXJfxcWuTfQ7k2FrKdAEoD0BkxF3Fv j/oDsWp3ZEmSKhFI5Qd+eFw+zuqxqPfcb53qyeHLnWkgqvQW4zx+f6El/jRhwTiYnM eo/gQcWiedtDA== Date: Wed, 6 Jan 2021 14:59:31 +0000 From: Mark Brown To: Krzysztof Kozlowski Cc: Timon Baetz , Marek Szyprowski , Liam Girdwood , Rob Herring , MyungJoo Ham , Chanwoo Choi , Lee Jones , Sebastian Reichel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH v6 2/8] regulator: dt-bindings: Document max8997-pmic nodes Message-ID: <20210106145931.GE4752@sirena.org.uk> References: <20201230205139.1812366-1-timon.baetz@protonmail.com> <20201230205139.1812366-2-timon.baetz@protonmail.com> <20210104135156.GB5645@sirena.org.uk> <20210104181825.GB27043@kozik-lap> <20210104182734.GH5645@sirena.org.uk> <20210104183821.GA29033@kozik-lap> <20210104212449.GJ5645@sirena.org.uk> <20210105165529.GB20401@kozik-lap> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jKBxcB1XkHIR0Eqt" Content-Disposition: inline In-Reply-To: <20210105165529.GB20401@kozik-lap> X-Cookie: Happy feast of the pig! User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jKBxcB1XkHIR0Eqt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 05, 2021 at 05:55:29PM +0100, Krzysztof Kozlowski wrote: > On Mon, Jan 04, 2021 at 09:24:49PM +0000, Mark Brown wrote: > > I'm not sure I follow, sorry? Either the core driver can parse the > > bindings enough to know what children it has or (probably better) it can > > instantiate the children unconditionally and then the function drivers > > can figure out if they need to do anything. > Currently the MFD parent/core driver will instantiate children > unconditionally. It would have to be adapted. With proposed bindings - > nothing to change. MFD core already does the thing. We're not talking massive amounts of code here, but we are talking ABI for a DT update. > The point is that function drivers should not be even bound, should not > start to probe. Otherwise if they probe and fail, they will pollute the > dmesg/probe log with failure. With the failure coming from looking for > missing of_node or any other condition from parent/core driver. There will only be an error message if one is printed, if we can do a definitive -ENODEV there should be no need to print an error. > > > Another point, is that this reflects the real hardware. The same as we > > > model entire SoC as multiple children of soc node (with their own > > > properties), here we represent smaller chip which also has > > > sub-components. > > Components we're calling things like "extcon"... > I am rather thinking about charger, but yes, extcon as well. Either you > have USB socket (and want to use associated logic) or not. Right, I'm just saying we don't need to add new device nodes reflecting implementation details into the DT to do that. --jKBxcB1XkHIR0Eqt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl/10FMACgkQJNaLcl1U h9AKwAf7BqMZl8eI7FlLmnCtP1/zU+16wmpeCfQRZE9Fo8WGj+eF2U0pmb86KjEb GgTkf9j0in+XnO2qzg6QpikLqcZjyk5HUx/0UJElo5iuS+nWpNqvLIQtoD6m+YFB pGeYoYlw0s+7oTaiNFqt/8SeuQ0NFChOVQSxwew39wc16L0Ushv72bIqztZz4HHd V9CHJKRG8J+5Ol5TlFb6FyobI4z5/tyWfX/LlGHedN3EsMbdn80SC2y2h6q5doZ+ U/TpBofzh5K/Hmu++4GZP20bOLSc18YhyfO8W/bJk//o8BXXWEfp57v/hlxSgHLb sSxSZYSaINOsb7kUXaSjuwFrdlHuZg== =MxWV -----END PGP SIGNATURE----- --jKBxcB1XkHIR0Eqt--