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: 787985 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40F3A4D5BD for ; Thu, 11 Apr 2024 23:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712879789; cv=none; b=OW42DujPyABiYrg1VpeQCvybuOfooTO7YZXeTfwj8WMOn7HtMRYUwUgrAJhrRnjI2PBWMvstDoZzRhrQX3co1iXy8jyWVVnQ/JQpRNxpmhZHsc+hwPgz5iXfnLguJNxOu7FSC+TjzSkmbpFlLoX5eUT/SbmgNKXKiAqzvreILNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712879789; c=relaxed/simple; bh=MioIrT4usEvNVbA3gUwhZR5hWnkV5a7eD0MVoAZp/Hg=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=K0buJAk9Fkik7d0SNjGn2oPMkNx3MqqrTH0Cu7QEXe60aGVz/woQ3GuL2B23a/NcZLria4izd+YgfTWnizTWrpciEJs/XUdquGADkVCQIdCc3Z6Isu3XMN6a49cyOXbFOHpr/8e3qxHuXKlY84S9j/TRjQRvtRxCw8F9hKcOm18= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=tEwNWHMg; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tEwNWHMg" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-61814249649so5331097b3.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=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=O0iRscBO4bdcIhUu420mbq2doNMaDlIpBi8l/p1zhKs=; b=tEwNWHMgGsPkrEAf0mcEWf1N2jjPeeE6xdLNTIGi0g8Jn9Ifbpd+RIV+ozrEDg189n PYSDstCBlKNWhvMKW1z7lr56sK5qWYf6qm4jwHjdp6P59AHldqaz629T0zzv+MTbgRnI 4PRRdM9GEcy4V5iMHeqLbCISBDf9U+xffRpS0PdCXYIi0fgytZiiNqbOscPtAVEUcKlg K3C5U2Rem0rSDNvMzW0PbaPxRf5nW2jq8hxvpZ4K5eYSI/JKkGKRkpbBE0eL9I6ysKZj uu1D0mVp1XbkjwPLWHPTVxE7JtnM6bPYzEz4F1VyPZQVg+IWE4hMUARJP3oJIIGYa+Mm liiA== 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=PbXBP5p6aagcapy+fVKU4Gghvqsnas4BNGDpOnf+Rjz4F1XMOKB9QyJ90qHDlvrRU9 MFm2lbxsyPmMy545Q+K16wGyA58a3wiYlbsrcEFP3rTm1Ab55cX0MaskvE/vh1Lc5Klp v9LYSK6lt+FNAxlIxsSeeC7RmyyOfSHTvCy1z+xUo70B52LBCV9iVLiJuqvT8rbFIuBM cn8chLWwO5ET0M0aYBSfjCxWZKilljtMbpQASx4KzFDR2tOYo6gZcREopblgErkTo0LG 6mE3DHc1C3fEnZ+OruE5iEMYFWYd7KMR1p87lQ+60wauHSwkFOiFpluTGby4BHvtDa07 55Bw== X-Forwarded-Encrypted: i=1; AJvYcCWOzhyncJpxh7RYWP+HXdVklo70/oWqjtQXiDxNAvGGZHhNF2vrpEr91Tlh3Qd1SZe7gNRwrW7cFmnb6YNaSw2P0tOsbBvkD3F7ZQ== X-Gm-Message-State: AOJu0Yx3QNPpzeTp5BXPdmmoyMGj+cW39vAvduGDNZz87zWTcHkrVhSM sbpTkjvO/VmVw0sRtrabdo0mrn1NNAfOppEzZHJW90rXF8Iuk5FYrKfARsJ9vmeg6CW7pK67vbu wDApQPbFGKr6HYw== 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> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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(-)