From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] regulator: stub out devm_regulator_get_exclusive Date: Sat, 25 Oct 2014 10:46:43 +0100 Message-ID: <20141025094643.GQ3729@sirena.org.uk> References: <1414178111-19525-1-git-send-email-balbi@ti.com> <20141024201138.GL3729@sirena.org.uk> <20141024211848.GP3729@sirena.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0035003921==" Return-path: Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by gabe.freedesktop.org (Postfix) with ESMTP id 167376E6BE for ; Sat, 25 Oct 2014 02:47:02 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Rob Clark Cc: lgirdwood@gmail.com, "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Felipe Balbi , David Brown List-Id: dri-devel@lists.freedesktop.org --===============0035003921== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G+DT6X5ssgZ56VG3" Content-Disposition: inline --G+DT6X5ssgZ56VG3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 24, 2014 at 05:57:24PM -0400, Rob Clark wrote: > Oh, you are only looking at the one in mdp4_kms_init(), which could > possibly be a simple regulator_get(). Look instead at the ones in > hdmi_init(), where I need to know whether to defer or not. At one No, I saw that - looking at the code in hdmi_init() it's using normal devm_regulator_get() correctly (it appears to be open coding devm_regulator_bulk_get() and likewise for the enables and disables but that's a lot less serious). I can't see anything actively broken with that code other than the error handling on failed enable. > point I was having a problem getting dummy regulators with > regulator_get() but that could have been a symptom of another problem. > I will re-try regulator_get() next time I am working on the kernel > part of the driver.. It's a bug elsewhere, if you are getting a dummy regulator on a DT system it means that you don't have a regulator set up for that supply so the core is just assuming that it's always on. --G+DT6X5ssgZ56VG3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUS3F9AAoJECTWi3JdVIfQUZcH/iCv2GYsjiKyR/CID3r7bS0T Oj4OleCsUb3OV7UaY3JzyjtNp28Z/UMeSelGuQDNuNCrzBReMZvhXIQuP3yrOKrj VkoHGSdIpnb71FfOh+OR2YA9UGQIsxDXX7n6fkrOPTxTOtUC8/BfXlXkUipXO/2R RWrOdw1jNA3Y8XX7mYLLztq4HsFBmJnqL/mD8/e/+eofg++Wmr7jCjS31TwmahG9 kVcyk+5agh165wJu4XqMKmDcpN/RVQBupXiD6m6n9UmY3Aub8R/SHWqUKFZyZUe9 5JqFxlrdIhUfguT5v+9oEv2Ms1z0TUxt7FSMhNNLTe7FMANe6ZKVh8ujLNGs/pM= =yw8O -----END PGP SIGNATURE----- --G+DT6X5ssgZ56VG3-- --===============0035003921== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0035003921==--