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: 788220 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 40F8A4D9E7 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=1712879788; cv=none; b=IUDZZGOrr1C+i+ytdIpbdqwn2YAI1z2ApJClcsML/kmFBxi8Hoh50wnn2KRxCDajzRM11wVK3TiJBAR1X29+yUQ7Uf70bSY3ETT5fx2uhLn2xlupeL8PbSJCaggbfW1Vkpq3anU9lCpPMQB84f/KMjPgYhiK7NwRRw6Wia0osXs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712879788; c=relaxed/simple; bh=MioIrT4usEvNVbA3gUwhZR5hWnkV5a7eD0MVoAZp/Hg=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=bn6mR2/u7WW47ebxSIH0U8ignJuHJxdWk0SgFseiKqz7mVKCG3qRjxZaCJlr2DY6TWe2+i/zMJ1hArWAQ5Bh8SYvx64YY/hO9kXta199R52H6Ku36KylQ72yjHkeYo3CQhxrwn+eq9RKtzWx39doRQ1RYEQWr2T0HRQpDrtET4E= 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-615372710c4so5606357b3.1 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=fIb1yG2CMVLh7gW4U8vYNjXbz+jJl02Ur7faZSc0Z/UvvVjqS2T1LqW4LiYMKfCsbm ADKDuw973bi1lwKMOjErDJBmqQ6pitxtnlX5OjaY2ifYJazJ5ZdVjXdqDPPk2+M2ULDV 4VaIaM27UxsPCtwe0VatBInwgg0YkE2ltIlh21hvYDliuM2DGlMlnGMr6BvX4nsDgebT 6MgeXl1cgkogutSpn8sjGbH1fWG5P+MdvWmzfGFGcCrZAZkCP2Bzp+Om3XbQk5M0TeBg +zq4feGmGZrkvtCxUvsZpwEGsKTqDgxxIHQ3N1C+aE4U1GlJVvqQus+1OBXPUvfIFW4V pAqQ== X-Forwarded-Encrypted: i=1; AJvYcCVSoeft/Gi8Wq+o0X6xOuHUoiQ+UqXnrt5fHLaxCa0ecXD96HP3pK3YUEqBd2tOCJvzWte747+r9ts5OB3dg5oPW1NMYA+RoC6t X-Gm-Message-State: AOJu0YxxzdGSn4eaQvju3L2CWILkciLwmAiqhgDq84lGWZT5oLQiCYiJ 90xlcnLChvlOhmC4bWVKic3ZMRHe49Rf0+Qknpjm6CLhBD5wagNkwP7ie90UyfQab2zngoo9/5B nw8IlbamYxMbafg== 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-spi@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(-)