From patchwork Tue Apr 9 05:37:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 13621839 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 7E789612D3 for ; Tue, 9 Apr 2024 05:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712641034; cv=none; b=STtTZ3+6SczPPDjw5tPhKMIfr6ihWTWdug2Xb0vYMErZRkCNq52Ss0E800EpRvat4SVTtOUJuNR4w7vANSsc5LCxT3hwddQLXl7C5BiOzm1lRe2Hm3UcoQJXv29PdQqNbfThSICp0OOEVj+J+9iakVE0KSUBqf3B29y+c5sRkNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712641034; c=relaxed/simple; bh=3Orb3QTXRaXb11VTVjJfinDvuFxce8w6tXhNzD+FbhU=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=eQyIrGCjn/4Q4M+y8R/LGPIZ3JsTxiWMjEZYV/glnKkTgSiCe65X9wkAya0o2g6AUn95lpXzjuQYI2Waxv4OzEXlGEZ6NiABkcbQHMCYDS0GM/sPr22qOAgCyoxgpynwtfdeV4ffP1Q5ZHFo7fnTR++hx9B0UG/xKeLaWyWEsn8= 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=juYm7F5F; arc=none smtp.client-ip=209.85.219.201 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="juYm7F5F" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dd8e82dd47eso7254391276.2 for ; Mon, 08 Apr 2024 22:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712641031; x=1713245831; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=hOqyoqJhFYBkPD/fv6EEJ8QaMaUrKnwkxLRauGRufLU=; b=juYm7F5F58aiiqHfi9irfv0VIKj8QMh04KmB4N8cSKXLg7qocgydhJbm9yw1IAtmRJ ypH/kX+jQd4GS0i/X+MYU7DxNZ/uM+rirTFgZrwYDvpmRJ+zjCDEcLc+EPr2NG+yE7hH w5fidtv6qOW8btVwdBYh5TmOjMF03lb8sDoQeX2OHVYZFMlHVsEWyNFVh2NH9yK9mRmr R7UK5TXD38K9wcKFnxbn8IZKqQOYLsKJL+ffYskSwOT9tkKlt48yHrJnOljl5dHwCYnN zMCMBsz5Yg6tr2pyYZjGDCGi6ZkXi0zxLvbFvU5baZFf82Er5ohKrzsPDX/q6GvXo2TG SvYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712641031; x=1713245831; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hOqyoqJhFYBkPD/fv6EEJ8QaMaUrKnwkxLRauGRufLU=; b=xDhfEKZ/QrWPwBYAzCvKzhqVCA+YMU+qI+KONcvg+WFn8TcPH0Ld5LnGwFSFMC2gTC F9io35O/+1XHVLc2NqyHi3NH4V/m3xOSnWnsXV8tsllbdZzj5qwx9Kniv5V3dvrSPL65 indUCYkMYWan9nSb4vSz1HOzecnlEoFxoilyQ/8SGjSR/420WoxtOB9pDsz1B1v7p6J0 nPSRBpHD8W8RmufTlVNYwJjsjmMicpE0JAuOP89A/5ckrkSnfBPZ8sPILE1RT9y9f8aL MSFMDYnGNORtotck+jx32vaBD/HX+8fzEG9JRj81CFdgO8LXrcd1G38CBzu+L5/af03B giaQ== X-Forwarded-Encrypted: i=1; AJvYcCWgVf29mnpMdOcJDdTXcdNKJEEykSjK+QSLL48gE1mN52PMN7jPbMpA2DlOQxM1MKvNuDw8mVIT/cT22sk/EevXrAqnmgUw4XggwA== X-Gm-Message-State: AOJu0Yx/q+IxcuoqgylMd7sUHUrQ8lIRX3j2DDh3VWqM+W6Z/ItHmAe1 jUT0zhMmFixX5JWscn+hS5ovNu+//fNojtq7buiGZYQMqvmzPue6Q6vMtxPEKx6g5LEt7jB0wgj /yE4ApTOGQxKG+Q== X-Google-Smtp-Source: AGHT+IEXsQTn58SjL0AXbnGAEQZAHy7tglhTrT7s6F3JP4JY3Y5iTZNaVZhMJrCPYpvtxpls9D0HyzeJhRGHDfY= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:96d3:321a:67f3:5322]) (user=saravanak job=sendgmr) by 2002:a05:6902:18c8:b0:dcd:59a5:7545 with SMTP id ck8-20020a05690218c800b00dcd59a57545mr879392ybb.10.1712641031555; Mon, 08 Apr 2024 22:37:11 -0700 (PDT) Date: Mon, 8 Apr 2024 22:37:01 -0700 Message-Id: <20240409053704.428336-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.478.gd926399ef9-goog Subject: [RFC PATCH v2 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 Don't bother reviewing this patch. It needs to be tested and possibly refactored first. Geert and Herve, This patch serious 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? 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 [1] - https://lore.kernel.org/lkml/CAMuHMdXEnSD4rRJ-o90x4OprUacN_rJgyo8x6=9F9rZ+-KzjOg@mail.gmail.com/ [2] - https://lore.kernel.org/all/20240221095137.616d2aaa@bootlin.com/ [3] - https://lore.kernel.org/lkml/20240312151835.29ef62a0@bootlin.com/ 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 | 23 +++++++++++++++++++++++ drivers/bus/imx-weim.c | 6 ------ drivers/i2c/i2c-core-of.c | 5 ----- drivers/of/dynamic.c | 2 +- drivers/of/platform.c | 5 ----- drivers/spi/spi.c | 5 ----- include/linux/fwnode.h | 1 + 7 files changed, 25 insertions(+), 22 deletions(-) Tested-by: Geert Uytterhoeven