Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1869178imm; Sun, 12 Aug 2018 01:29:04 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx33UshOWVIAbLbbdwqw7oGxwZ0zwfZnEUoQEYMVgu3etOZHnvU2k703s5IeuTsD9hOqweD X-Received: by 2002:a63:6849:: with SMTP id d70-v6mr12325740pgc.7.1534062544710; Sun, 12 Aug 2018 01:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534062544; cv=none; d=google.com; s=arc-20160816; b=PplDKmVjDnzjHI5LJfA5S36++VWxAAOQeUiKNDn+gF0oUr41vseuODdrD2Ob3em4AE 1GV48Yus2HJlZHlIggQaWvH7vjEbWsJFK1GytYjrx+oLgYFLUsuebJhvH9iv1k7Su94t A/Q6XoqWifgj0pn4ZASdYHEf/zgpdnWxi+vY1xTwfzKmtzbLkzwwvGBay0lh52IZqdH/ rjZNeqXOF+DZdnIQRUMXje7lxgFa/AQ+CHfxejnhEo3sm+GVJbwVQMAYtUT98NkO1tG4 XZZ76aS/YNrk1f3mTKtephiZ4g5QI9y4x43Vrdt05oahT0QfyTPl2gB6xyizdxaVX3xz 60Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=c7i1j7O6qmQ7or3w6cWNllTlSS45IBMn9tDu9T4/wfA=; b=NX+rQFWlFPrMK7SXt2C0NkhOGaIk4/JFbTjC3RHhOtLnVe/B3or/JoL9mLWv1FgK5+ HRoOVeH2pvdXyVmgCNRX0rpaHH55fazjPEYQ+D9zyMhdNV96j1g7BYaEz3v5kvRlXRVy 3R7CUupPslyGm1gtPm7PWe3fCW4X7z7qfMwB/iXs4WeWt7/udUacwhmQgq4/3hu7DYk7 /2Cq+NQ0sDWlNQd4kDcIeTTp7dUVyhhVNyC/xi5TpZaXCwoubv9OJi9neGiey3DGEf06 YcnHOZro784vRlQVCe68LHIw0Hszk03uXLGNJCL2cuoSBeAhASnzU7Kj/36KqzZHNICh D06g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si15712460pgr.684.2018.08.12.01.28.20; Sun, 12 Aug 2018 01:29:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727549AbeHLLDa (ORCPT + 99 others); Sun, 12 Aug 2018 07:03:30 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36535 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbeHLLDa (ORCPT ); Sun, 12 Aug 2018 07:03:30 -0400 Received: by mail-oi0-f66.google.com with SMTP id n21-v6so22540778oig.3 for ; Sun, 12 Aug 2018 01:26:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c7i1j7O6qmQ7or3w6cWNllTlSS45IBMn9tDu9T4/wfA=; b=mwtyUypgjxlSLxuRULWcIXRVfqrebU//qWV615/KWDlbkw4vHM9snSLlLnVbBRomi9 mlLfitG/sLhGZLiItrBJReMX80l1eJcb0w5kw21Y5kpaGgJiyjoXDTFuK+O6spXqwr0G +9T23/ofLHFCxb7hjwh/0tmQRQm0XSyOCduMLcyRVNkYi9gyecLFVLPQNSduI5tXbxsc IrU/FxUcFsc2C9J82XmRA2FE7HxyzelL1tYOg46kj4M4FLcCztryUttuo0KgyNXJdp+U RZhJ3300UB0qvdgcS6HkBenL0/lXiFcf/Lv0k8raYgUtQDAZrcU1M69ACeaRktWjLDtA 2hKg== X-Gm-Message-State: AOUpUlG/Ayw9zpzOxVxy63NzaMbYMg7wAIjSPUCktpcNqD2zsC0JDeFa G0Snp8bY8iW4zhW4mGTXaHWVDoFouk8qdT3loLm9OA== X-Received: by 2002:aca:6285:: with SMTP id w127-v6mr12697785oib.120.1534062377374; Sun, 12 Aug 2018 01:26:17 -0700 (PDT) MIME-Version: 1.0 References: <1533937924-6774-1-git-send-email-rishabhb@codeaurora.org> In-Reply-To: <1533937924-6774-1-git-send-email-rishabhb@codeaurora.org> From: "Rafael J. Wysocki" Date: Sun, 12 Aug 2018 10:26:02 +0200 Message-ID: Subject: Re: [PATCH v1] dd: Invoke one probe retry cycle after some initcall levels To: Rishabh Bhatnagar Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , Greg Kroah-Hartman , Sodagudi Prasad , tsoni@codeaurora.org, ckadabi@codeaurora.org, Vikram Mulukutla Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 11:52 PM Rishabh Bhatnagar wrote: > > Drivers that are registered at an initcall level may have to > wait until late_init before the probe deferral mechanism can > retry their probe functions. It is possible that their > dependencies were resolved much earlier, in some cases even > before the next initcall level. Invoke one probe retry cycle > at every _sync initcall level after subsys initcall, allowing > these drivers to be probed earlier. > > Signed-off-by: Vikram Mulukutla > Signed-off-by: Rishabh Bhatnagar > --- > > To give an example many Qualcomm drivers are dependent on the regulator and > bus driver. Both the regulator and bus driver are probed in the > subsys_initcall level. Now the probe of bus driver requires regulator to be > working. If the probe of bus driver happens before regulator, then bus > driver's probe will be deferred and all other device's probes which depend > on bus driver will also be deferred. > The impact of this problem is reduced if we have this patch. Please move the above to the changelog proper (ie. above the tags) and resend the patch with CCs to linux-pm@vger.kernel.org and LKML. Thanks, Rafael