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: 787403 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 716225C5F4 for ; Tue, 9 Apr 2024 05:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712641034; cv=none; b=PNxw6deYZyOOwMHXOdMaUvj8oigVz/KtWPvVcoyYfPgVqoQh66u5Z8M8HkyjcQDtY5wWtFpmV57jVu8jza4TWOkIARBrHbiJUa0srWTOSYDCSIAnvpSCmZs4/tJEXAt1eTG4IO1ol27Syb0sHufAsvqYGS+tpneFMtXtaGoCz20= 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.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="juYm7F5F" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dd8e82dd47eso7254392276.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=buiNUqYn8g5pmK9w5nqbATNZ/Wm1HJU634babnt/JvJ/qoz5qEXxaG9e/r/XdPEzdA IgRkei2dNtvxL/BgljWCEMLnhDRqfQEhAnpAJ8ftrqmWdKZ45c2cvjgfGflI5pMC3E4l msP6tXfWq8HK1xZfWXNOOe8WHmQnUfQW2ojn+XkuD/2zb1VyfwqPIucEECrR3PSHRkzx 98UADuUueFwmtuyRX2Q8M68scXkAQ4YfeaTRfuMyWbhkIqNz9KBOY0VcxThARkWZ+Djq Vz3+9B2I/uQTMljyaDgmnPs3D220ATL/tQh+u8U1Mguf7cotYo6/wjC/HiLC4VrsSsaV x7bw== X-Forwarded-Encrypted: i=1; AJvYcCV3x7SeuxmZ++oaiSF4hAUygQCeR2/6zDSNusasokghKRxQ9woZicBn5HgBq60S4TVMPnoO8YVW5vl/DCMXKQIqn9my6CnB6b6w X-Gm-Message-State: AOJu0Yyz4/ltftUcA3w/8QCtSoVyi40FrcvLpE/gw2GmCQNc6i/PD29v evxxiIL8xjGhS4vwsWdBI9mizLEYucVpHzAdfOH0HxMkkO0EQrwgin5kacB07la9gENdaG2DOeh 6YwG/1/ZUv+TDSg== 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-spi@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(-)