From patchwork Sat Sep 4 00:05:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 12475299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3C2BC433FE for ; Sat, 4 Sep 2021 00:09:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 810D16108E for ; Sat, 4 Sep 2021 00:09:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 810D16108E Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Mime-Version: Message-Id:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=80ERu1Zqvwu0uSykEU6/mXF/Vzu5iDsJOZjBpAQKTiE=; b=oJt nZwpeBSDI1aB5TcZMx/4/5//xVe7jq560MsOCq2ktu6ybCe7LcDdG1roAm3XOp66I/ipY0obj7IyO 9ZTGXOMXTJqvpvW0z6GfAlbyKqIY1vjFbMoFSFIj5jLhCpekBRqSGsEzevE/AIbaCnY3y21+O/Dt2 WyZaHeIwbTiGXnd3Sf8B1P/bkX5LGUiZMwiY7kWh5jIArM10dN6iMMTkIinRr6NUd49MNvaDanvZe OyFrjr+BmbKxQBGE2qCc2zF2RfRXFtsjiFID0bTv664EZrwJOGdfiJqgTzdGuAj4tVE35sji253h+ vtBAgdZaQKLSeXY83YsG3Fi9Z+E5C/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mMJBy-00DDDk-CJ; Sat, 04 Sep 2021 00:05:54 +0000 Received: from mail-qt1-x849.google.com ([2607:f8b0:4864:20::849]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mMJBt-00DDCG-FH for linux-arm-kernel@lists.infradead.org; Sat, 04 Sep 2021 00:05:50 +0000 Received: by mail-qt1-x849.google.com with SMTP id c20-20020a05622a059400b002a0bb6f8d84so2184673qtb.15 for ; Fri, 03 Sep 2021 17:05:47 -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=mjzKqamzQmvzyqlVvUVvv6P1c+/kEZztjTn7I8qHctk=; b=VZ4p+EFnl9EXauvJ8dhmEDRVt8YHYnMZhZvV6h6nXYpS8v+LDxHvFjqrQR9eLsDsYy RHTaYj0wnWluvQm7nCyFHpVTY4X8aSkLuiIkTyUOtezLSN/w1eSH1tjAyXzk6Y6V+daF nD4NShWbq6Z7Q6wGJuPFkSLi3XRYi3l8fI7h5O9yxld6cQp6X5zUN7AIWAQFMwtKXCyM HXp04mNEFZ5P1u4dqby0/DAT3CrpF/59RTQZHoVwcvbSNnALUImixWgqC+Qcatbmm+Bl 8cGxwkxOX9xAhBKt/slNqZhBiHfmq1ksDBxjPaOWBySvhq6EsQwZdcMREHamx96DGzud O5xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=mjzKqamzQmvzyqlVvUVvv6P1c+/kEZztjTn7I8qHctk=; b=DFbLMhtb1XI22iyMjdjZ4h/Ep9dmnhqYI889y/CqIlbjVNFJQGYijFmU0Q5QHkcCWg XsP2NebYaktxapuDSuUvsjEpInysgbvLtN2c0+hxAnVhJyDA0UpeLWARx/biSeu5c7Lg lyZPRm8st5BnCs58X55Kcqdfy7ScrnyKjR492Q5WE5xRgFaHhC/Vf1CQ7nYVZYRd/n5S IOIU0QUQEkDExMKzCJznBg0GG7bzGC05lNPs7IFmB+k3XDlgEsReg2EmLva05NA+kQff 77WDZh37IrKBc/y1KaNw2aTxj31H3COMJciSY5iLlKUU9zWKOnEiGdSM5ogTc7PHyNS6 BGkQ== X-Gm-Message-State: AOAM530lnWd1oFUpcvPxRw14tgKwNoxLfuhptb7OjzwhPSbhSzPGmAWs ue9TeqNxpwBzQ/S3LLC94VTn1bt0nJK2eS0= X-Google-Smtp-Source: ABdhPJxOh60dMGR+lUVir1U4lfhdWRVMUcj5x6W1LTUnNO5wGwN2dFR8tfzyyVUJVXZoWiFU6/iKXpuDy2rgCWU= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:b45b:ca56:952a:2176]) (user=saravanak job=sendgmr) by 2002:ad4:4905:: with SMTP id bh5mr1667186qvb.63.1630713946609; Fri, 03 Sep 2021 17:05:46 -0700 (PDT) Date: Fri, 3 Sep 2021 17:05:40 -0700 Message-Id: <20210904000543.2019010-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog Subject: [PATCH v3 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 Cc: Saravana Kannan , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210903_170549_577297_3B8A974A X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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. Ulf, mind testing this? 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. 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 | 32 ++++++++++++++++++++++++++--- drivers/soc/canaan/Kconfig | 1 - 9 files changed, 30 insertions(+), 22 deletions(-)