From patchwork Thu Apr 11 23:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 13626651 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 252EAC4345F for ; Thu, 11 Apr 2024 23:56:51 +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=jh7SAIZ3q789MpEIdMBhrzvq6eFlceRWum6LaS7ig1A=; b=VCT Jtu3K5XyDrusT5ZcIme8SAvSlrtxADQ4z4CVwmr1oizSQ8FCCCUpQNCWhr/G7ZGemFtKssnaw98iL FUbPH3iV/BOsgpfVI2ocwYVbrMOdS/qA1WyJQ77+MxGMb//GTDp9KAaguxNS6tIKjnrckR9iF5xrS H7+/7XHjGA2T4sYCY/WuyHSAxZ6ZuM8qtmNSHsS6nZ0t/pPxp55kxEojjfgZA3Hvi2Q+cf1eWJYUz A+5nHX+Z5OJotIQsDKoO3yQw1qdpAB90y1AzJ4c2JyiFGH/BajnFM8h32seuPju/zM+s4U+cUSQdL 8BYS16ZLKvzczwPBn+Vqtf3axTh3uUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv4HO-0000000EYPN-4BeW; Thu, 11 Apr 2024 23:56:31 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv4HM-0000000EYO1-1bwC for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 23:56:29 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-61814249649so5331137b3.3 for ; Thu, 11 Apr 2024 16:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712879786; x=1713484586; darn=lists.infradead.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=O0iRscBO4bdcIhUu420mbq2doNMaDlIpBi8l/p1zhKs=; b=gLC6eIflRRkoc2yaxkkBmLUV5EmUmYgenmP1D/U+m4aY3cvmIvbDlMM/vzGhCBDgkm sy0H7TCf2RPve9aSDaT/w5nvQaeibuBO34n5cBCBZTfS9qb5ZUVgUCCKLQFx9lPiIMSk epHrgbpO8cFyUvjiUYGXBeNaJhnNjx4K4tV1YUi/iHTPmcdp+zzGLxVc5VTRzhqV/4at Cdom0c0ihcTh577V4BuzCppEc9cKpBqwysFWQdxtPoqoPQe4EYTBsVanESewQYoT+knF zFY2btBekN+V8laxLdaB9Xp0OrJnblLxGYezR+7XO6PVWvrz/iuChULAbdVpbX0UpV+h OLtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712879786; x=1713484586; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O0iRscBO4bdcIhUu420mbq2doNMaDlIpBi8l/p1zhKs=; b=d9pS1YtQOzNa52aW1TVKbw3RB/X8NT21w7V1Ots1PrYQtgCTz4mH22wrz3eG//3/Vt 19brlUh2lCZdBam8dIbmN64znMTLlaycPswF1q8cel/HkFUg8epw1PLaCgGkBSQpgJGk prQ845h++I6rT8BdfPWv28YN3GoGQ3zDN869zUadItMEbkFct/SL7PLsFA/JbmLBCZBr oY1WfkMZHUtvncJbdvK1qxS2VomzqLNHdlp9mBqLAsxSLUZD6lrLbB5ziR7dC6mDyl8v /Xb9CWF2E37I74evB80jyLhrFuqyq4wSLLpjcWEW5LtRqIq2r84uBHNO2KojLiPVWqra FZOA== X-Forwarded-Encrypted: i=1; AJvYcCWo1FTUoRtvP8psXihyKdupw+PF9QO//yigYJacSY7EJkUYikK6Gr5n+47JD5lOBxgHebft9cIBwQ6WHHB45HAQ7cFgzTYn9QJSnsUDMjY56XLkvHk= X-Gm-Message-State: AOJu0YxGKykP6YzQZI8wRJXaTqdOk5y75aFb42lnVbbY2QhW4Mfsvyox fNxvqkVj/g38Uuwd73JS5SYgTWipqRhBQxvMDoBNVnuDIOQFrpfooW3bRA5D6jMl8hXOJnag4g2 N7nDjgVQkjlUt5A== X-Google-Smtp-Source: AGHT+IFosAoa851C7hPGmSTJhtx34QZTzAQeM/iXE6mN4LYGNHAkSwi0R89BgZ48h/lVqrxY4bUEsjpXIA52Xog= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:a472:f40c:d4ba:c29]) (user=saravanak job=sendgmr) by 2002:a0d:ea90:0:b0:615:2ae1:6cd3 with SMTP id t138-20020a0dea90000000b006152ae16cd3mr215649ywe.3.1712879786349; Thu, 11 Apr 2024 16:56:26 -0700 (PDT) Date: Thu, 11 Apr 2024 16:56:20 -0700 Message-Id: <20240411235623.1260061-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.683.g7961c838ac-goog Subject: [PATCH v3 0/2] fw_devlink overlay fix From: Saravana Kannan To: Herve Codina , Greg Kroah-Hartman , "Rafael J. Wysocki" , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Wolfram Sang , Rob Herring , Saravana Kannan , Mark Brown , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Geert Uytterhoeven Cc: kernel-team@android.com, Wolfram Sang , 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-20240411_165628_444565_21610450 X-CRM114-Status: GOOD ( 11.95 ) 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 Overlays don't work correctly with fw_devlink. This patch series fixes it. This series is now ready for review and merging once Geert and Herve give they Tested-by. Geert and Herve, This patch series should hopefully fix both of your use cases [1][2][3]. Can you please check to make sure the device links created to/from the overlay devices are to/from the right ones? Thanks, Saravana Saravana Kannan (2): Revert "treewide: Fix probing of devices in DT overlays" of: dynamic: Fix overlayed devices not probing because of fw_devlink drivers/base/core.c | 76 ++++++++++++++++++++++++++++++++++----- drivers/bus/imx-weim.c | 6 ---- drivers/i2c/i2c-core-of.c | 5 --- drivers/of/dynamic.c | 1 - drivers/of/overlay.c | 15 ++++++++ drivers/of/platform.c | 5 --- drivers/spi/spi.c | 5 --- include/linux/fwnode.h | 1 + 8 files changed, 83 insertions(+), 31 deletions(-)