Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756229AbcLPSLF (ORCPT ); Fri, 16 Dec 2016 13:11:05 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:37762 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbcLPSK6 (ORCPT ); Fri, 16 Dec 2016 13:10:58 -0500 Date: Fri, 16 Dec 2016 18:10:44 +0000 From: Mark Brown To: Bartosz Golaszewski Cc: Liam Girdwood , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Kevin Hilman , Patrick Titiano , Neil Armstrong Message-ID: <20161216181044.75vshyk4cth45vxz@sirena.org.uk> References: <1481903550-3582-1-git-send-email-bgolaszewski@baylibre.com> <1481903550-3582-2-git-send-email-bgolaszewski@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nn6ol2kjpti7rrsl" Content-Disposition: inline In-Reply-To: <1481903550-3582-2-git-send-email-bgolaszewski@baylibre.com> X-Cookie: I represent a sardine!! User-Agent: NeoMutt/20161126 (1.7.1) X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 1/3] regulator: add support for user space controlled regulators X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 34 --nn6ol2kjpti7rrsl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 16, 2016 at 04:52:28PM +0100, Bartosz Golaszewski wrote: > Add a new flag to struct regulator_desc indicating whether a regulator > can be controlled from user space and implement a routine in regulator > core allowing to toggle the regulator state via the sysfs 'state' > attribute. No, we've been through this repeatedly before - search the archives. Write a driver for your hardware which exposes a control for bouncing the power if that's something that makes sense in your application. Doing this at the regulator level is just far too likely to result in poorly integrated systems. --nn6ol2kjpti7rrsl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlhULiMACgkQJNaLcl1U h9BeZAf/eTJpUVBOXzUG3mThA/hLPyOnF8EuIEg0HJfWqia22l+O/iGnAIlXBbZF 0G55mSFN6jisoyF89VSbN6xKjHMWV8Ieugjji/Ku8SyevekiK3IDyvHFPLZEfHWV 1uNAUimE4TOczV63kllIHp6nPOAhd4xu7JEF1ZET3wJ76oTWUJ/nJ8ri+RL6rrlP uCfME7R5KgSHqmP+n3Bf5SYUcoOdDvA7fw0rUVFm3CbM2i7DQQaPMWxDaTw4UBVj 7Yk53xw9ajwtYdVoXkCySbw/kMNYhreIA4603sNyu7xm501thgR3FEGUdBz6W+6Z dqev0jV8hebIZzS44k97/fuVhoTQ+g== =U7oL -----END PGP SIGNATURE----- --nn6ol2kjpti7rrsl--