Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp709877imm; Mon, 9 Jul 2018 09:13:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIJW4RicqGdCshfc/rbKufWcDRukTaYLf+57MmtQtJ0bFxi/BVxw3WfSuOVXnRmrmrAmVA X-Received: by 2002:a63:7e1a:: with SMTP id z26-v6mr19399947pgc.278.1531152795452; Mon, 09 Jul 2018 09:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531152795; cv=none; d=google.com; s=arc-20160816; b=U/nnROYlwZ9WGR4bijUZzX/WMstsJgRjCSrJUK1GRskhbLoJWE3trRAzu3GIBn89ha pnzB3kedOpEypi8YGX943fLIx+i0Oi+STMbHHF4AOVtH9QyWh5ETuNMNGLEIkOHhPKc5 J4cLQJJ3gR9MBIlhnVPUnS3rkTOdHu9PBr/4jw0Hi9Q9KegxUYJFAidiTA/ti0tzYF85 CX+CCRUpTP+a0cwh72B6w4TD2U6Ml08uR3UeAdDCbiesIhxMY1obqsB0i2Uz5kGsAgV4 O+OuqBJ8JOWSxBJuiBR82vrvUaH4dXwZl405QmRyZpeM9QlxiZwxmpKQSRgOVV/2XY0V 1UFg== 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:arc-authentication-results; bh=RgghVkLOGWz8u3dJ7tbQpgqSl2FKTJ+NNenwy//J2z0=; b=t23s7LFdlKwSEUvuEYvVkupFFaPB5VYWrVuhVCX67XByHp9ze40u9Zpahm5D2tEFIY 03dxSEd8ZwFTbrPVN0XKkjxog0erROqFfqsMJ6O79/imBQqJbCuxPzAONBinN+Ric1oE ECxYCfvwe+p8yPaJQODU/iDiF2dRJuiZuLKWpgTgC47ajHCuz97thpGoxAWtRwX/bEKO at4S0FXJVi3DQwHa6wzShtbJMpb1CQ4EHb3hxym+253Qf3aiRtV3krBIPv5qjAXUjMwH Svc4Ja4WWQz6YTJ3j56iLRvVpPBaPSSJQt39ehG+xv80VoF5Vl4TCvF1LpnWsthAsW/F VtVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bBpJq+NS; 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 m24-v6si9275865pfk.56.2018.07.09.09.13.00; Mon, 09 Jul 2018 09:13:15 -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=bBpJq+NS; 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 S1754607AbeGIQMC (ORCPT + 99 others); Mon, 9 Jul 2018 12:12:02 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:35042 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754556AbeGIQL7 (ORCPT ); Mon, 9 Jul 2018 12:11:59 -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=RgghVkLOGWz8u3dJ7tbQpgqSl2FKTJ+NNenwy//J2z0=; b=bBpJq+NSZK7Nz58QM1GNOGOva f1E8qP/6P90BzuQ9PV3USSdy0/Ahkh+rcMYobZvbZpY0ukTCINWbZdBDBD0LOYkV/jkyfsxyFy32t 2LqOdW/YfaFlQwBnyFxXZ/a6WisRBYTghErr5meOOoZmRbcLIZ1/1ryuj1SDhdu+Szjb0=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fcYlV-0003qF-SN; Mon, 09 Jul 2018 16:11:53 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fcYlU-0004i6-O2; Mon, 09 Jul 2018 17:11:52 +0100 Date: Mon, 9 Jul 2018 17:11:52 +0100 From: Mark Brown To: Marek Szyprowski Cc: pascal paillet , benjamin.gaignard@linaro.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org Subject: Re: [PATCH] regulator: core: Don't link consumers on the same device Message-ID: <20180709161152.GH16082@sirena.org.uk> References: <20180709125402.32427-1-broonie@kernel.org> <20180709133215eucas1p138cd9714d802a446973ce90058ef0afb~-tpG-E94E1650416504eucas1p1I@eucas1p1.samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WRT3RXLOp/bBMgTI" Content-Disposition: inline In-Reply-To: <20180709133215eucas1p138cd9714d802a446973ce90058ef0afb~-tpG-E94E1650416504eucas1p1I@eucas1p1.samsung.com> X-Cookie: Falling rock. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WRT3RXLOp/bBMgTI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 09, 2018 at 03:32:14PM +0200, Marek Szyprowski wrote: > This patch doesn't help, because wm8994 creates separate struct device for > each registered regulator, so you need to check the regulator parents too, > see my fixes below in the patch. Ugh, right - I'd not looked at enough of the context to see what was being checked. > I don't like such fixes for this specific case. It's not that uncommon > that a complex device provides various functionalities used by its > components, so it is not a bad design to use regulator provided by > its parent/grandparent/other ancestor device. > Frankly, either the device_is_dependent() function should be exported and > used in regulator core or device_link_add() should have another flag: > DL_FLAG_SKIP_DEPENDANT. Or it should just make the warning optional at the core level. --WRT3RXLOp/bBMgTI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltDiUcACgkQJNaLcl1U h9BSXgf/Q1suVsCj60nXkSRxw6s3MFEQECAaWcff6O45Rf4PPWtlYWE+3gO3B1Fu LKCdklusjVMizEvnZr0dF+EMKEtnwmvoy3GNXZnaKspM7sCI8R8nLR6mKnk19dgE wIqyBICxeu+tFgpnrBcN6mr9rVfFt7zytoNNLTJljSoYSahtcBUiT0cBbc9SQmAo /6GvsuzWErBS4gbUFX/zM08qPRJjMb0IohO0ZX1B7rJEQzzfYOOdind6jXmPVQT1 FvzTHvAXP28KI5QexE+QhYxY9yCEFy3pXbDUeM52IVYv6QqJoL1xTicERB2tv/u1 XTo/nOu9FEmFGVLBGUpSCY+rX5G1sQ== =SU2f -----END PGP SIGNATURE----- --WRT3RXLOp/bBMgTI--