Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1925332pxb; Fri, 24 Sep 2021 15:27:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtwlsOEP7vYqopHSKaCiSw3VF/RktOsuqnokIgTcxCkob0rM8QSfarOsWlhI07pj3XoNiB X-Received: by 2002:a02:ac01:: with SMTP id a1mr11593682jao.93.1632522451644; Fri, 24 Sep 2021 15:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632522451; cv=none; d=google.com; s=arc-20160816; b=uiO5uj3x7guw4aDcvVI5RAoUUkO7/08qjqEWQyntdFuk0nUHHaavPPYfh86XstJj37 QCLHoDaFQoyVq/exykcafXV/vS1RtDsfxApFUb+nVP5w3atKiWjPSet9JT8wh8X+Roa6 eix5MLPK3hTskhVXsztT46ZJG2OQ2ZYXB2AqsyVseWzxs5aFbXkTdnWosiEYa+xIuYu4 mOw2t+vS3Bhxp/AKeJBSuyQSEoniICx653NGvDxgg3sGFInNdmrDGgrYOtxFAY9Vr7lY gkyMSqKvOxW7xXTk+Br15XWBxYW7ePuMN4LIsR8NKfnkUgC3HRtiztgfEchdPiBJR3DM EXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XyhQ38a/4uH67bAl5YGynvJ7Eg72vGZjm0Neu7EJ7Uc=; b=NMJomgoC4XvRgFAfhzABiiIYPagXFYoUCxncXY/9SbmUnY1XoHzHa4a9Gl1vsfkOuU sYdIHsDnaGwJYNAYELlpbaxP9XeqJYILSpLJMefiYqscsi5o9inkhJRc0jSA6/BduRXC LwsZklmOlWXh3WxNv4g3Xv7L9uSjbbwQMcHI3uVRCZRBqzI0O+tqDHrH08uEo0mCRE1L EqcgTDGkoYVFjPgCIj+Byq6kmnMS3MAAUjeeyWK4Zmlrq4GrZnVlp3k/2S1Atd9oGLVV AH4e0GQRnNKFLqgBkG9pJyt3pT+fijKEEaeLnjHtN3/CbHOhmowthefqyQSHjNceMjMx 2iWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sugKOapz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n37si11035918ioz.23.2021.09.24.15.27.19; Fri, 24 Sep 2021 15:27:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sugKOapz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344583AbhIXUWN (ORCPT + 99 others); Fri, 24 Sep 2021 16:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346333AbhIXUWN (ORCPT ); Fri, 24 Sep 2021 16:22:13 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6EA1C061571 for ; Fri, 24 Sep 2021 13:20:39 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id y13so8275856ybi.6 for ; Fri, 24 Sep 2021 13:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XyhQ38a/4uH67bAl5YGynvJ7Eg72vGZjm0Neu7EJ7Uc=; b=sugKOapzTbYiBxmeNfdWAfSXSs+U3/EV89R7DA5U1a32VM+oxYjy40oSJmo2l8hJIz WAjB+3JeAn7Ku+NF4E9dhQw4TyNqJzJ12tqzkreHVHfo9jxbpWeb4ARq4LIllJVeF2KA Vmer6jlQHrx/x2qy3jI3Z8FY1UEEh2/d2NSGQEizmxs9BImL1aBacyyfDnwEdLy1kB6I z26/ARJMI+VOt+MZdFXu1ZkaqZ+hIDz18MI6wbKPT5POdu0Bh6rR9X6jAXShrLVvuYBK x3mDJFHfGpJEQzOD0vh4/2ZPYL1wUcuuvkvhEcStBAvz8EzR/pU6HV001X0k9qoNbvgz QZuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XyhQ38a/4uH67bAl5YGynvJ7Eg72vGZjm0Neu7EJ7Uc=; b=q/7AARcXDmufTgV2v9XasQ1uuOfnkxI4+s1yCP7/fLn3eR2OMGZMSjkhC1nst6C9lG cgbQHsUmoJEJ1LeUGlg3DwoX9J06I0J/tSFhFVA0sW62XqSwfvopRnK87z6St2nPu4wH TJJe2OXCZLC5EK63Yi6PnD3w+c3gzzqc/A3skZw0CQkNLomHK+7HBGbCnDGLPoX9IDmh Jtq4c7B78zpxhCzL2EYYqnrtTRw8MKmDDI3AhW6ZopQ4YBycmEJiUxLtx5QTaRXrqKH/ wgb0vSV4N0IL1Ri3kyhDNl9y/fMHog+P7nuqK22rRFLZyJj71oUAgs8IeCxKVbiDWRj1 UlpQ== X-Gm-Message-State: AOAM532tBIsQy13xh1YSVh3Ys0fwsomeEyqP5iles/0np8+EwiV2gTk5 W8K/RlJFxmuEfKNnAy8rkUR6gflSgQnUroEDUOp/YA== X-Received: by 2002:a25:2b07:: with SMTP id r7mr13368843ybr.296.1632514838758; Fri, 24 Sep 2021 13:20:38 -0700 (PDT) MIME-Version: 1.0 References: <20210904000543.2019010-1-saravanak@google.com> <20210904000543.2019010-2-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Fri, 24 Sep 2021 13:20:02 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] drivers: bus: simple-pm-bus: Add support for probing simple bus only devices To: Ulf Hansson Cc: Rob Herring , Russell King , Neil Armstrong , Geert Uytterhoeven , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Android Kernel Team , Linux ARM , Linux Kernel Mailing List , linux-oxnas@groups.io, Linux-Renesas , linux-omap , linux-riscv Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 4:50 AM Ulf Hansson wrote: > > On Thu, 9 Sept 2021 at 13:01, Ulf Hansson wrote: > > > > On Sat, 4 Sept 2021 at 02:05, Saravana Kannan wrote: > > > > > > fw_devlink could end up creating device links for bus only devices. > > > However, bus only devices don't get probed and can block probe() or > > > sync_state() [1] call backs of other devices. To avoid this, probe these > > > devices using the simple-pm-bus driver. > > > > > > However, there are instances of devices that are not simple buses (they > > > get probed by their specific drivers) that also list the "simple-bus" > > > (or other bus only compatible strings) in their compatible property to > > > automatically populate their child devices. We still want these devices > > > to get probed by their specific drivers. So, we make sure this driver > > > only probes devices that are only buses. > > > > > > [1] - https://lore.kernel.org/lkml/CAPDyKFo9Bxremkb1dDrr4OcXSpE0keVze94Cm=zrkOVxHHxBmQ@mail.gmail.com/ > > > Signed-off-by: Saravana Kannan > > > Tested-by: Saravana Kannan > > > > Tested-by: Ulf Hansson > > Saravana, Rob, > > I have been following your latest discussion in this thread - and it > looks like you guys are moving towards a consensus. > > Although, if there is anything I can do to help to complete this, just > tell me and I will jump in immediately. Looks like we settled on the allow list approach during the BoF in LPC. I'll send out a v4 with some tweaks. -Saravana