From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 51DE7C433FE for ; Tue, 15 Nov 2022 10:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6hLQwnl7ri1wwEyubzk9FpD8U8YTNDnq8rGgegq273I=; b=45/bp9wQThEDDB lajZVjO0H8c83YBNSrJkQd/dP4UWQevsiBnhJySKDaZVaQR2c4lRQ/gNvAlyJvG9g/1WkcXONQ519 2QB0dlb1UHpyQEMTkMRGuKJVnLTZCSaFzYXF/6KPCTKiBDRxg7NJtjhzxibSUUV38nYm+mQKjxlLr p8ClmhcaTXJm8kTQlIVihdmHUtGg33pwEtfPWaSr4J4YAJGLXzOHVVtqKp1Ac1sZwSMPbN/o1vc9I +RFiuEaluFnbE6ntkxHyb1t2E3ShhZIzubcbMVWFR0CaU7g/us9H6bmulAwiWPbljPXjGbMTVRtYj SiJzsN3HAwsIACCbxBAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1outZC-00AC7Q-GM; Tue, 15 Nov 2022 10:53:23 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1outPM-00A58M-LF for linux-arm-kernel@lists.infradead.org; Tue, 15 Nov 2022 10:43:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=B85cuMRk7m/GxUw8KclvU5Eto26IVRvj2aMlFbVY1SU=; b=MS5yRjBVqNX8Cz7qZ346BZzJEO AFtoeic2FvsFskee3v2ZQRh3/japbhQiR5YrJ4/9KArJwNO5p0NU9rR3R+tr+z91ElT5UaRCAhApX sAFKZ2zfPaKEenDMRdaw48TZqmfO4OuYRNApSXCZB5hTQ1CLXomRywfBfV5a/NyF9Z8P3zKeaH2fq gGtqWJdPJ8NNDzxvtNaZv2KeLzuPciybCvHrLlsMmbS3xAL/ViJNW6kSrFMzL9fvhTJjeTW9LXX/a B/xPE0BtvgrPvWWvm5nn0vCGuoAGv7cQ674hyPc57SoaaQCxhMqRdqY/TiUDXjSmVDZ4knGYd/M9e XIGE2K5w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35282) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1outP4-0001vu-6Q; Tue, 15 Nov 2022 10:42:54 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1outP0-0004iD-2t; Tue, 15 Nov 2022 10:42:50 +0000 Date: Tue, 15 Nov 2022 10:42:50 +0000 From: "Russell King (Oracle)" To: Mark Brown Cc: Corentin LABBE , andrew@lunn.ch, calvin.johnson@oss.nxp.com, davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, jernej.skrabec@gmail.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, lgirdwood@gmail.com, pabeni@redhat.com, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, netdev@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v4 1/3] regulator: Add of_regulator_bulk_get_all Message-ID: References: <20221115073603.3425396-1-clabbe@baylibre.com> <20221115073603.3425396-2-clabbe@baylibre.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221115_024312_737142_B5CCABA1 X-CRM114-Status: GOOD ( 18.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 15, 2022 at 10:34:41AM +0000, Mark Brown wrote: > On Tue, Nov 15, 2022 at 11:18:50AM +0100, Corentin LABBE wrote: > > Le Tue, Nov 15, 2022 at 10:03:14AM +0000, Mark Brown a =E9crit : > = > > > What's the use case - why would a device not know which supplies > > > it requires? This just looks like an invitation to badly written > > > consumers TBH. > = > > The device know which supply it have, but I found only this way to made= all maintainers happy. > > See https://lore.kernel.org/netdev/0518eef1-75a6-fbfe-96d8-bb1fc4e5178a= @linaro.org/t/#m7a2e012f4c7c7058478811929774ab2af9bfcbf6 > = > Well, it's not making this maintainer happy :/ If we know what > PHY is there why not just look up the set of supplies based on > the compatible of the PHY? It looks to me like this series fetches the regulators before the PHY is bound to the driver, so what you're proposing would mean that the core PHY code would need a table of all compatibles (which is pretty hard to do, they encode the vendor/device ID, not some descriptive name) and then a list of the regulator names. IMHO that doesn't scale. -- = RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel