From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@kernel.org (Mark Brown) Date: Mon, 22 Aug 2016 17:29:41 +0100 Subject: [PATCH 3/9] regulator: core: Try full range when adjusting regulators to constraints In-Reply-To: <20160821021125.1521-4-wens@csie.org> References: <20160821021125.1521-1-wens@csie.org> <20160821021125.1521-4-wens@csie.org> Message-ID: <20160822162941.GP22076@sirena.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sun, Aug 21, 2016 at 10:11:19AM +0800, Chen-Yu Tsai wrote: > Currently when we try to bring regulator in bounds of its constraints, > we pick either the minimum or maximum voltage as the target. This fails > if the regulator range is not continuous, and the target voltage is not > an exact value the regulator can achieve, i.e. the target is not aligned > to the step of the regulator. Oh, and this is nothing to do with implementing support for this MFD so should be a separate patch for ease of review. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: not available URL: From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 3/9] regulator: core: Try full range when adjusting regulators to constraints Date: Mon, 22 Aug 2016 17:29:41 +0100 Message-ID: <20160822162941.GP22076@sirena.org.uk> References: <20160821021125.1521-1-wens@csie.org> <20160821021125.1521-4-wens@csie.org> Reply-To: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H14uD12u8nekTETJ" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20160821021125.1521-4-wens-jdAy2FN1RRM@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Chen-Yu Tsai Cc: Lee Jones , Rob Herring , Mark Rutland , Liam Girdwood , Maxime Ripard , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: devicetree@vger.kernel.org --H14uD12u8nekTETJ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Sun, Aug 21, 2016 at 10:11:19AM +0800, Chen-Yu Tsai wrote: > Currently when we try to bring regulator in bounds of its constraints, > we pick either the minimum or maximum voltage as the target. This fails > if the regulator range is not continuous, and the target voltage is not > an exact value the regulator can achieve, i.e. the target is not aligned > to the step of the regulator. Oh, and this is nothing to do with implementing support for this MFD so should be a separate patch for ease of review. --H14uD12u8nekTETJ-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756105AbcHVQa0 (ORCPT ); Mon, 22 Aug 2016 12:30:26 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:34914 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756072AbcHVQaY (ORCPT ); Mon, 22 Aug 2016 12:30:24 -0400 Date: Mon, 22 Aug 2016 17:29:41 +0100 From: Mark Brown To: Chen-Yu Tsai Cc: Lee Jones , Rob Herring , Mark Rutland , Liam Girdwood , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Message-ID: <20160822162941.GP22076@sirena.org.uk> References: <20160821021125.1521-1-wens@csie.org> <20160821021125.1521-4-wens@csie.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H14uD12u8nekTETJ" Content-Disposition: inline In-Reply-To: <20160821021125.1521-4-wens@csie.org> X-Cookie: Satire is what closes in New Haven. User-Agent: Mutt/1.6.0 (2016-04-01) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 3/9] regulator: core: Try full range when adjusting regulators to constraints 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 --H14uD12u8nekTETJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Aug 21, 2016 at 10:11:19AM +0800, Chen-Yu Tsai wrote: > Currently when we try to bring regulator in bounds of its constraints, > we pick either the minimum or maximum voltage as the target. This fails > if the regulator range is not continuous, and the target voltage is not > an exact value the regulator can achieve, i.e. the target is not aligned > to the step of the regulator. Oh, and this is nothing to do with implementing support for this MFD so should be a separate patch for ease of review. --H14uD12u8nekTETJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXuyh0AAoJECTWi3JdVIfQ5G4H/0S8egv/iOBxtx0jyksq6Ehh IWhEg54GjpmHWaAhTN7+wwd4VNEapSZqqL9r/LAByz8mGLB3lzxfT/JvPkYn29pD 4wlKp2tjyUJ1dFy8wHwtHEC1/7u5kiXxHJK+M3DERYyJk8Y6aA2ijQhp8r1eWn59 UO9H/MJJRTx16WovpNAt83nfqDLBwK06oqSfrN98RXiIOx/X4+9wabeq1avGqAMd MPSD0awBBdxmhX5f1HZgBF5/cUxeeCYbW3IwaSAkukdC9/Qx3Pu5CrmVjCmjXhYF SPYzQKF1kWJtZqvzqjcnvfek9W5eTorg5azV673Ts74f3crvfE6ch3SrbC9/HOY= =yruH -----END PGP SIGNATURE----- --H14uD12u8nekTETJ--