Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4680674pxb; Tue, 5 Oct 2021 08:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfEsdcjNh98GimJ5sDmI8QTsyvrm9wtYPGYFfDZXJHiAEnraTYSfPPQl+6D4mhaElLPQ32 X-Received: by 2002:a17:907:3d9f:: with SMTP id he31mr26473904ejc.255.1633446602697; Tue, 05 Oct 2021 08:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633446602; cv=none; d=google.com; s=arc-20160816; b=RsjodZTRh1N6pbkEdPqCCMcGhB/bAtn9cvo+aUOa/mxL/kzlQeIS7M0CYDPft49y99 NLlZgSOmalQ9prVtVSqZfCICYxsBkfWmEs8eFK95Nlzd90hlJwvsEczeXs5j/03FWGGT pjtZMkSjnDDPDD7XvH6NtlQF7zj4fECHR7iN+osbdmgvwKEFaF51alTFlOaUePDQ6d6C j57uvyWH6QQjoZrRbJ4AWvYAOUAlwaUlZtGmzajW/KIMt5GfK6vkjILZZ+hH4VbZeD8G no1chOTp2eRLbTOI3CCJO/6BLgI0c6+C7+w7qX6PhthiVWZ3zsF3cWSemI9UOH/eXodY npKA== 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; bh=bk0G/z1T/uosdH3nhuVAPRarw22NSmvJmajc0ie3v6A=; b=Q5ZSI2dBP57PQoAuk88BaW147+VLkP5N0b274t2rHyTTWSmPs1tsb90Z5FCe7/K+nQ 1OffUrrStVfJq/DtDDYNYQ0KK3AB1Wa1Mn7kg9NBQ8SPQ3faBzgMFCEyCex+bnAh3L8Z HaVG6BxhMFuNuF7RVfnMZ2NZqKsGeXki/rXXreaocO6rfpWz6pVrU5NoRyca/wRDHVGH yQqB/UZ02Lhd7ogUoegyWlX42OnRdBCDdjlDy2DhbSNbQyyRtlLqCHc1r9NAeQ0PirDf 7pJRI7IZgbITXeWaB9GFCBoe702byoVMy8RkeRL/svaOEDx1J8UqUO3nxNfC6l4zf724 LjxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si5214441ejk.645.2021.10.05.08.09.18; Tue, 05 Oct 2021 08:10:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235528AbhJEPJE (ORCPT + 99 others); Tue, 5 Oct 2021 11:09:04 -0400 Received: from mail-ua1-f54.google.com ([209.85.222.54]:37726 "EHLO mail-ua1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhJEPJD (ORCPT ); Tue, 5 Oct 2021 11:09:03 -0400 Received: by mail-ua1-f54.google.com with SMTP id i13so443927uat.4; Tue, 05 Oct 2021 08:07:12 -0700 (PDT) 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=bk0G/z1T/uosdH3nhuVAPRarw22NSmvJmajc0ie3v6A=; b=bN53d8riJpjCyaARGHXvJW88vILTqKU2VwG8/fdJRTH3rxfwBDBC32In8GohAuiuxr g4vsVsfAg3ijBNWs9Rq5rhdG3dR17TrkNqKHgd0dQ6pszTElkcV6XTQxNVzUUWJ8A1iN foWlfYHv/IdvJ7xTAqCX6RyompmmI6ssO6kx0u7N1SSz+qT825wm/I3IGPntixoGl5dl LTEkfTQOPux2us0cnZquNpItbX8GnRibsgDSGw+r4RgXGM1BQu3d6VY8yWk234dzK+9s sfiMrKCQBOLaOzz+feZwOOIK3HYyNTjRfA7ok49yj3aa2ZyEKqd8d9wEBhn9/OuxEAic aCkw== X-Gm-Message-State: AOAM531sPTEydhQrq6Fv6S/l6dg8W5uzGA49w//lnn4VAiyvZm1bqaS4 Kk/nQB26YU+O4oem5Gkh7RmBM8I+hPt9Wy3pnhc= X-Received: by 2002:ab0:538a:: with SMTP id k10mr13022243uaa.14.1633446432404; Tue, 05 Oct 2021 08:07:12 -0700 (PDT) MIME-Version: 1.0 References: <20210929000735.585237-1-saravanak@google.com> <20210929000735.585237-2-saravanak@google.com> In-Reply-To: <20210929000735.585237-2-saravanak@google.com> From: Geert Uytterhoeven Date: Tue, 5 Oct 2021 17:07:01 +0200 Message-ID: Subject: Re: [PATCH v4 1/2] drivers: bus: simple-pm-bus: Add support for probing simple bus only devices To: Saravana Kannan Cc: Russell King , Neil Armstrong , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Greg Kroah-Hartman , Ulf Hansson , Rob Herring , Android Kernel Team , Linux ARM , Linux Kernel Mailing List , linux-oxnas@groups.io, Linux-Renesas , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , linux-riscv Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 2:07 AM 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/ > Fixes: c442a0d18744 ("driver core: Set fw_devlink to "permissive" behavior by default") > Signed-off-by: Saravana Kannan > Tested-by: Saravana Kannan > Tested-by: Ulf Hansson Works fine on R-Car Gen/Gen3 (simple-bus), and SH-Mobile AG5 and R-Mobile APE6 (simple-pm-bus). Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds