Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755701Ab3FGPBj (ORCPT ); Fri, 7 Jun 2013 11:01:39 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:44792 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754584Ab3FGPBg (ORCPT ); Fri, 7 Jun 2013 11:01:36 -0400 MIME-Version: 1.0 In-Reply-To: <1841650.N6Drbs67FD@flatron> References: <1370580406-10254-1-git-send-email-dianders@chromium.org> <1664692.GUOAAQ3FLn@flatron> <20130607102404.GO31367@sirena.org.uk> <1841650.N6Drbs67FD@flatron> Date: Fri, 7 Jun 2013 08:01:34 -0700 X-Google-Sender-Auth: aTQZJSL1z2e62j87wAmhBRTGxvI Message-ID: Subject: Re: [PATCH 1/2] mmc: dw_mmc: Handle late vmmc regulator with EPROBE_DEFER From: Doug Anderson To: Tomasz Figa Cc: Mark Brown , Chris Ball , Olof Johansson , Andrew Bresticker , Alim Akhtar , Abhilash Kesavan , Jaehoon Chung , Seungwon Jeon , Grant Likely , Rob Herring , Rob Landley , "devicetree-discuss@lists.ozlabs.org" , linux-doc@vger.kernel.org, "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , lgirdwood@gmail.com, Will Newton Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1265 Lines: 30 Tomasz / Mark, On Fri, Jun 7, 2013 at 3:30 AM, Tomasz Figa wrote: > On Friday 07 of June 2013 11:24:04 Mark Brown wrote: >> On Fri, Jun 07, 2013 at 12:19:58PM +0200, Tomasz Figa wrote: >> > This interesting case makes me think that regulator core should >> > differentiate between regulator lookup failure due to no lookup >> > specified and due to the regulator specified in lookup being >> > unavailable, returning appropriate (different) error codes. >> >> It does exactly that in so far as it can - you get -ENODEV if there's >> definitely no supply and -EPROBE_DEFER otherwise. > > Oh, right, thanks. I somehow felt that it should be doing this already, > but I was looking at 3.9 on Free Electron's LXR. It does so since commit > > 1e4b545cdd regulator: core: return err value for regulator_get if there is > no DT binding Thanks, this is much cleaner. That's what I get for doing the majority of my work on 3.8 at the moment. :-P I will rework the patch and send it out again. -Doug -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/