Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp123950pxb; Tue, 28 Sep 2021 17:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/mieVzggaDSWhmsEppXmf1XIiQYEjETv6Ed5MUNCO0SbeF0975EDyWNiFcS7TyFWSRQqd X-Received: by 2002:aa7:db17:: with SMTP id t23mr11366943eds.387.1632874181994; Tue, 28 Sep 2021 17:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632874181; cv=none; d=google.com; s=arc-20160816; b=aAetsFFsr5lQj5W2Mhd/riC6TpqMAuybLIjlv2U7nUbjEdF5Ej2PiLYtAWEhqdx9KD scnpm2O0rFsA2njv8n8bYFdpUHtACmyN6IMojdESLBIZQKb05f01uKIpgfhEBfQCArXW mH+d4mf1jqJm9K3NjLBNR5GDUMWTS9w2DR2Hb5wyCkx4bsgWa/wZ0DpeyHin4XV9BI8O NkDPzSGRcUCPLAtf4OHIUOG1s5N0EhP9hSigHILthiuzCTXls3ed4ZAg3BA5XU6PpHgP yXiIIuTysECZoXkWJ/sFxk/UJ5VoDRLUl0bhon67/zppNHJfZ7CmlMXgW+K35lkpXpu5 Fycg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=7bhHNrTbsYTqBLjHn1hrc5X3bZzxwJdrljl1/EisLbY=; b=aP0yb2iSHipCadNEEfTfRVo848mjlj67Fp7ouI7yYI9M3KIr+gX9DK9p7icS8pJHq1 zZB+y+v3jIYvcvLHMub0iWJezQSa0WcSvZxebMpNX0vXwnVr4xk2xzVeJNpjiWvEswQq lhQgh/0XG+WJAWupyaVCHLP5hdhBHTN33jIVmBpAMgo0p4OnYd0UulVHH/cReNIawkOE 5fyIW3cJl75bKUcD1rKcTGVmRib7Nmvkm1wcgT1ZB7QniJJuyKiZMx145c9jAdEiw0Px S6qYEy9ixJN/novSxvr/HlP7nY1I5DpioiUSDGm7cS5VtoSufHNkGIekKhKsm35JH0te 8ifw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SFhQ44BE; 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 dz15si1139252edb.601.2021.09.28.17.09.05; Tue, 28 Sep 2021 17:09:41 -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=SFhQ44BE; 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 S240284AbhI2AJU (ORCPT + 99 others); Tue, 28 Sep 2021 20:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbhI2AJT (ORCPT ); Tue, 28 Sep 2021 20:09:19 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C03C061745 for ; Tue, 28 Sep 2021 17:07:39 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id e8-20020a0cf348000000b0037a350958f2so2535605qvm.7 for ; Tue, 28 Sep 2021 17:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=7bhHNrTbsYTqBLjHn1hrc5X3bZzxwJdrljl1/EisLbY=; b=SFhQ44BEJvgZXM6Y3b8tJZsJVKICkrX+cWoxn4bjqC2mJRMaLw4+CVQZwT428ZQVKj vo8dtohZv8E8JOCNJC1+VtMvhM9rM4fzGcrEZwFVOjZGBQszHQfDrWEx4r3m7AB8kT4P VtCwFEUlgOGc3GFKkdJA/FIh1CpYSCTl7U3hzUk8EUVoPFZ+/UXjzr4ryIUkYbE4ERvX 7FlwQoXubV/0ubzcWcwpUNs4t61aWfq2FGaFVr15uLaavAEiZio8P4X7LcCzXyz63Dmf +CmAYkmlBNJTqdfIcNTM4vFZ6GyoHas+dKz3n+r769jAFgbjqcWYOvewAX7WZUdQ+h9A QGsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=7bhHNrTbsYTqBLjHn1hrc5X3bZzxwJdrljl1/EisLbY=; b=N7IlwOICREkW3nYv6e+jJVrCg3PxkUBRKTBZMAmnBmclrot+P2W1Zrt2ADO1F1t667 P1c1UJoKEeaoMQ05WQgwc1MG0/c7c3codO+H5PWGpT3kpXOcTTF/A8f2cyCWrpA3PQCe 96YP7nD0Ty5b7tkXFOqy4HPZzSHOjBruKhQnnGF1bOTYMfwc/A8KQUgYxXCDceWL2TRf IJ0ST6XOaQbbo3yGmTkDauI7i5jMrZMtLFEpQC8o1mgf7itP7Ho0LtkHPHGhHaR8swEg SU16OIDz7vQRBtDEYN1GsRndr2gOOtMjuVYLstshJkzuaVVbch5sz3BEbs9XUqklQ7k3 PcxA== X-Gm-Message-State: AOAM530udQnVOiYozQxw5o/9kZYoP63jcXS2mkW5LrKz0bsBWF8sXyOf Fl1pJHE/xTd9L9jeVVKpbKiTTwc79Tkov6Y= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:5241:a7e9:90c9:9c91]) (user=saravanak job=sendgmr) by 2002:ad4:4652:: with SMTP id y18mr8331213qvv.31.1632874058881; Tue, 28 Sep 2021 17:07:38 -0700 (PDT) Date: Tue, 28 Sep 2021 17:07:32 -0700 Message-Id: <20210929000735.585237-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog Subject: [PATCH v4 0/2] Fix simple-bus issues with fw_devlink From: Saravana Kannan To: Russell King , Neil Armstrong , Geert Uytterhoeven , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Greg Kroah-Hartman , Saravana Kannan Cc: Ulf Hansson , Rob Herring , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-oxnas@groups.io, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ulf reported an issue[1] with fw_devlink. This series tries to fix that issue. I replicated a similar set up on my end and I confirmed: - A simple-bus only device is probed. - Another device listing simple-bus as a 2nd compatible string isn't probed. v1->v2: - Switched to probing the simple-bus device instead of marking it as NEVER_PROBES. v2->v3: - Moved all the code into the simple-pm-bus driver - Addressed Ulf's comment about the remove() code missing a check. v3->v4: - Added support for driver_override to accommodate the case where new transparent bus compatible strings are added to DT, but the kernel hasn't been updated yet. - Added/updated comments to give more details. - Adding Ulf's Tested-by that he have for v3 (v4 didn't change by much). Thanks, Saravana [1] - https://lore.kernel.org/lkml/CAPDyKFo9Bxremkb1dDrr4OcXSpE0keVze94Cm=zrkOVxHHxBmQ@mail.gmail.com/ Cc: Ulf Hansson Cc: Geert Uytterhoeven Cc: Rob Herring Saravana Kannan (2): drivers: bus: simple-pm-bus: Add support for probing simple bus only devices drivers: bus: Delete CONFIG_SIMPLE_PM_BUS arch/arm/configs/multi_v7_defconfig | 1 - arch/arm/configs/oxnas_v6_defconfig | 1 - arch/arm/configs/shmobile_defconfig | 1 - arch/arm/mach-omap2/Kconfig | 1 - arch/arm64/configs/defconfig | 1 - drivers/bus/Kconfig | 12 --------- drivers/bus/Makefile | 2 +- drivers/bus/simple-pm-bus.c | 42 ++++++++++++++++++++++++++--- drivers/soc/canaan/Kconfig | 1 - 9 files changed, 40 insertions(+), 22 deletions(-) -- 2.33.0.685.g46640cef36-goog