Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2304832pxb; Fri, 29 Jan 2021 20:57:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF9VefWC/LWWalL0ApekKcw94eFbcB1aKYStL47osUdg6g1n9OdtQv5E5lmNlRlZzWDF1S X-Received: by 2002:a17:906:1712:: with SMTP id c18mr7717201eje.417.1611982662761; Fri, 29 Jan 2021 20:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611982662; cv=none; d=google.com; s=arc-20160816; b=ZzoPpWnLOsgC06Ol5iXkYuFAdsioNA8PjiNpx3ZVyX28m97/eNoB6rJ8sqUKxAhQ5p loSG5Dqqk+U+qa9eA/7RZVGH9YeFPxA0Jxp0kHVsZ0kB6dq2sZuvoWMcuHZE5tQjD5Ea xeY+3cRNL0cXokzfcS+3LEMPL3wlNvy0LQpGzUjMBAlXCj5ICTLDEvSaXgfCw0gtW0xk JhjUpu8dV7TkUzIhBYX4gHIhmyZlAIEiGK/DUYvb4TZxF/L8ZPYnQd7A/OF7Yzvg5t5A fAHD7XkIDdqJBXl1fNvZ4JYY6Z9mOdbNGBIUK7fK/blRazl+mh9LxEpI4ZZ5dujhjK49 29Hg== 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=95p8CDySwlEPpDyMemwHXgdfJvENumz8XyyNURaCtIA=; b=zqSJX8BQ9mvAbE2fMdU+tx4ZjMz9wnRupq6cQ/SRTMjH4/k2JSu0YXuuCMLgjNfCjO E7JuZtmA9WFoRElw4CqlBOGlqy7r1PpQAmqgmTXFa0Z9O2xaGyyUfcL4WuFoT32ho3NC drcpFDxVi4VLAzORg+KxNtzH1URH/o6FBpKnVW0WCd2R7FDXuWYSUsnG2spsN7KULpBQ 1PSAS/Pzoy4HQK7bJG3YW84L8t2eyqwYUbH6FsNwMcgtHNbswZqYQymRaZ5Oo5McmfAq eW9pwQvOo3xhWGbCtueV3zVsboglPjskjEAtDNL3iyq0pm6gtSb+SIy0mv/28Taz+T5g LK7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Z/9meVqd"; 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 r25si6395505edy.156.2021.01.29.20.57.18; Fri, 29 Jan 2021 20:57:42 -0800 (PST) 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=20161025 header.b="Z/9meVqd"; 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 S233624AbhA3Eyt (ORCPT + 99 others); Fri, 29 Jan 2021 23:54:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233684AbhA3EKc (ORCPT ); Fri, 29 Jan 2021 23:10:32 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CBFFC061794 for ; Fri, 29 Jan 2021 20:09:28 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id x78so10949526ybe.11 for ; Fri, 29 Jan 2021 20:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=95p8CDySwlEPpDyMemwHXgdfJvENumz8XyyNURaCtIA=; b=Z/9meVqdj8T+ALAcCeJw77pNOtJNfdwLquqgBeI7MsJLJgr4q5uiRQSuIphg7NEYj4 Yjmz58xZLPUETS2oQIBsBsZA9behyuht2phPg9P2CR/uqJ/5Rk/OGxhX3mnm5NWLM+2g s6OcYGQRKUHbPGCke9sr5jkzDFRZSDbaaTrvhVOxkBiK2MamN9OxylWE5T+2Uwqj0XNh ko4f5rfcETYKBEHBXFFrBWSSP2O+sjjl7m9RqnLEYGdJeHApug0xSEpJxQcUVabXvl1b XIHanBpAfa1n9OXOSwxiTfp6IVLA0JBqgJr+9/C1BkNJNjTefxq/w5Prb7JQQUh3fwOX pGww== 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=95p8CDySwlEPpDyMemwHXgdfJvENumz8XyyNURaCtIA=; b=qAeIEplTaF2xnUxqhV7J4FKIi2kHonGQYil+AZjdxQ9Wg5KOt/0FNJLM5RrZ4IRaBw wPLjq5gwoDXUqm73kuvfQ3ChcHreBPD0ySXBd0Mfwo38xM4ddxgASodHQLgJeFe+OV9e omhdiyfZcDuk5tJwjX01ACBMPqRhu9uFYsJidh3SFCSeqDAFgdyXvkTXeps8OprcHubQ pOCXj81njmDABWqdIXU7z6zei3ImxRtHexT6dNgA0kqPsFkwxsTkOzpc425eJOYi38WD 8LHDIkhsySrPUmeOVS801l3XaLitM5MzinWZbij+cOXI0N/gwePkGcEA0sPoi1WLS2cj rVWQ== X-Gm-Message-State: AOAM531DI9Wm1F81n55JfhmpalgFfgj7b0pTIGu1+8/xJpPwkfVc7kKj oYiDnAavxQcmB463OE5Y5ukUTh1Cl6JOAeDNUc8FRA== X-Received: by 2002:a05:6902:1025:: with SMTP id x5mr10579964ybt.96.1611979767538; Fri, 29 Jan 2021 20:09:27 -0800 (PST) MIME-Version: 1.0 References: <20210130040344.2807439-1-saravanak@google.com> In-Reply-To: <20210130040344.2807439-1-saravanak@google.com> From: Saravana Kannan Date: Fri, 29 Jan 2021 20:08:51 -0800 Message-ID: Subject: Re: [PATCH v1 0/2] Make fw_devlink=on more forgiving To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Marek Szyprowski , Geert Uytterhoeven , Marc Zyngier , Tudor Ambarus , Linus Walleij , Bartosz Golaszewski Cc: LKML , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 8:03 PM Saravana Kannan wrote: > > This patch series solves two general issues with fw_devlink=on > > Patch 1/2 addresses the issue of firmware nodes that look like they'll > have struct devices created for them, but will never actually have > struct devices added for them. For example, DT nodes with a compatible > property that don't have devices added for them. > > Patch 2/2 address (for static kernels) the issue of optional suppliers > that'll never have a driver registered for them. So, if the device could > have probed with fw_devlink=permissive with a static kernel, this patch > should allow those devices to probe with a fw_devlink=on. This doesn't > solve it for the case where modules are enabled because there's no way > to tell if a driver will never be registered or it's just about to be > registered. I have some other ideas for that, but it'll have to come > later thinking about it a bit. > > These two patches might remove the need for several other patches that > went in as fixes for commit e590474768f1 ("driver core: Set > fw_devlink=on by default"), but I think all those fixes are good > changes. So I think we should leave those in. > > Marek, Geert, > > Can you try this series on a static kernel with your OF_POPULATED > changes reverted? I just want to make sure these patches can identify > and fix those cases. > > Tudor, > > You should still make the clock driver fix (because it's a bug), but I > think this series will fix your issue too (even without the clock driver > fix). Can you please give this a shot? Marek, Geert, Tudor, Forgot to say that this will probably fix your issues only in a static kernel. So please try this with a static kernel. If you can also try and confirm that this does not fix the issue for a modular kernel, that'd be good too. -Saravana > > Marc, > > Can you try this series with the gpiolib fix reverted please? I'm pretty > sure this will fix that case. > > Linus, > > This series very likely removes the need for the gpiolib patch (we can > wait for Marc to confirm). I'm split on whether we should leave it in or > not. Thoughts? > > Thanks, > Saravana > > Saravana Kannan (2): > driver core: fw_devlink: Detect supplier devices that will never be > added > driver core: fw_devlink: Handle missing drivers for optional suppliers > > drivers/base/base.h | 2 + > drivers/base/core.c | 134 +++++++++++++++++++++++++++++++++++++------- > drivers/base/dd.c | 5 ++ > 3 files changed, 121 insertions(+), 20 deletions(-) > > -- > 2.30.0.365.g02bc693789-goog >