From patchwork Mon Apr 8 23:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 13621659 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6FBAAC67861 for ; Mon, 8 Apr 2024 23:13:52 +0000 (UTC) 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=yUJyEICfKPRrs6DSyCaW753lTCRbsCLF3IAHwopc3j4=; b=K/O tpCE/t3vwEomK+eDg0wS85LiTXOAbqe5jnjROlcgSFsKbC0CzPb6j6LSZuEfgUG4FQ825AqeICu4U tmDMwZEiB8NMc/0O5+1MBjIBZyonnIDSQKac1oVBCR96ZKgo+RPGdR7Z5bzfDL/iKsLGvKkDHM0+t SzS5L4SM5FCneS1McPQ2nZflrtMIVT44MzUN3xg+U5byFOPrghcR0LgQ2/sI3+BbLN89p2MjTXfPt wyVFOcSkLPsJCAd0LHQFPh/udwIjjdZ1MA9sbdkfJheNYGBoykP20L1p3J5I2euNVbNov7q+hHtIv cwKO3el+utw8z/ngwHj9TTn3ly3BFaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtyBB-0000000H787-0u5X; Mon, 08 Apr 2024 23:13:33 +0000 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtyB2-0000000H772-48iR for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 23:13:26 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-615110c3472so92954627b3.3 for ; Mon, 08 Apr 2024 16:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712618001; x=1713222801; darn=lists.infradead.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=8KR9ZDVpmFlaIwvKuBx+EnAZl+aysJrEDZLL4TycsvM=; b=j824hDSGLt9fCmf9Nq3y+nvpo6Qj6kvnzAuCkqIqcf8EbrczexRLG1bh/QOtr+KSAD WpkaEIPQ3Hm+op1zTJRqnBE2RliYDrWaHlVOCkzdjVZLOk1TxfblLcA3+ZRitN1M/QMn aANMM8f7l4NONqbidNnXERTIT43IMfo2ho9HVhtOVXucqnuK26WcNOgzrG2YM8fcEEOu ov6NMdTYjjYlsbMuaGDw1Tg8Yfw3Z7t7J2L8L252jzufOzRRudJOHdlYKNMNKcJrai5h tGSUdQmVyHkW2z6y9rWpOYxpjf9/TTQ2yUW05quXEXRxkbr49hFaYNOip4FbtQ1FzI1z d/+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712618001; x=1713222801; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8KR9ZDVpmFlaIwvKuBx+EnAZl+aysJrEDZLL4TycsvM=; b=r0m52LVCLzX0HyEqN1iO5KU3gRc6BILaWDqNrE8DUvC+kf1d/CVDevv9T18v//DlxM pcuOQ7hnIjC+3Z4b1O5nBhmVcmtjkZisjdVSq6pPiA8/6bEvdvufsBk8ubJWvCULuwMI uPt20KdldrwCdy32mt4tjbov8i18rcu2Usp7K02l8GFDtaiUUZtdeUq8yDEhn6MNG7vB vlDT+egTZMgKEINe8OhtIp2bHCnMbzGyFuquj5y5HqpUQ3wiDKc3FytjnvsqtvxS18Sk gletf6J4In3YrQftZWj0AMu5Pt7vNpl9ZC0JEL/TDWm+yAcKOBogiiT7OKpqq8L8j0J7 6RjA== X-Forwarded-Encrypted: i=1; AJvYcCUxA9Ew/YYhJk7gdNNOFwdUxzTXVavX+yQeC8l1EEYXH39Fr16vcpN9mENWQX1lKhHbmG6Xih09F1kki2BRvq7Fy0Z8+D8Lnhp0KyqVbQHWN1Pqlg8= X-Gm-Message-State: AOJu0Yw9SzH1p7XJEkBgsuXyX/T6Kt3ubSPz6lkud2Vdp/QmW6TTBXF5 wV8oo6iZEwS5GryAboIA2gyVr9tZZPpiWnMdB+M/tKYpOZ6xvujloQmoe+FgXiRcATOWytuxxdK bKW81sXk7MNdm5Q== X-Google-Smtp-Source: AGHT+IEiBKuFp9QTgBmavvNyeuDLhVieZKacyXA60iTXYXv5owwSC1k0jFYE2SUKHElIfDGTrdBpXZCX+VZqUfk= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:96d3:321a:67f3:5322]) (user=saravanak job=sendgmr) by 2002:a81:73d6:0:b0:614:2c5c:d275 with SMTP id o205-20020a8173d6000000b006142c5cd275mr2854389ywc.4.1712618000795; Mon, 08 Apr 2024 16:13:20 -0700 (PDT) Date: Mon, 8 Apr 2024 16:13:07 -0700 Message-Id: <20240408231310.325451-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Subject: [RFC PATCH v1 0/2] fw_devlink overlay fix From: Saravana Kannan To: Herve Codina , Geert Uytterhoeven Cc: Saravana Kannan , Rob Herring , kernel-team@android.com, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-acpi@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_161325_057036_54BF7696 X-CRM114-Status: GOOD ( 11.64 ) 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 Don't bother review this patch. It needs to be refactored better once I know it works. Geert and Herve, This patch serious should hopefully fix both of your use cases. Can you please check to make sure the device links created to/from the overlay devices are to/from the right ones? I've only compile tested it. If I made some obvious mistake, feel free to fix it and give it a shot. Cc: Rob Herring Thanks, Saravana Saravana Kannan (2): Revert "treewide: Fix probing of devices in DT overlays" of: dynamic: Fix probing of overlay devices drivers/base/core.c | 10 ++++++++++ drivers/bus/imx-weim.c | 6 ------ drivers/i2c/i2c-core-of.c | 5 ----- drivers/of/dynamic.c | 9 ++++++++- drivers/of/platform.c | 5 ----- drivers/spi/spi.c | 5 ----- include/linux/fwnode.h | 2 ++ 7 files changed, 20 insertions(+), 22 deletions(-)