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: 13621838 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 BEF90CD1284 for ; Tue, 9 Apr 2024 05:37:28 +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=ZQE/bao0L82IXJIa8ONzgEmVPwdZ5ZOkEZrP9KWAQsQ=; b=JgZ jPLQWS7g/r2ZahFXZazGNn76rNYRbV3ZXCo5HC34k/WvXtWZ6UE0jlcXMEa1BVetMEeRVm2zIg1wO CySaO+VS+eqD29Jm3tDiH/Ipx1RZrCVoXtBcnszP1QjSqpX6LDuO9eFfz/6Z0SnMyLVpzqt7ePA9g +9wizexMFD0OqKxQFKGmzGOJQsUXJmFIFcjNEF1e/4BU/Zo0hGmdseMWsGU3FoEzYekn30biDoEgZ cnLe0QRU/9do1NXZ8yWLp1ePCw4lvDoCXaY3dcftkPssGCF9F6fiwl2n/pMSQyoJ7UB/khHwhHDFd iFxr2cbjInhhiw69bdU0Qf7i4uZKD+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru4AY-00000000RVi-0dTt; Tue, 09 Apr 2024 05:37:18 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru4AU-00000000RV2-20jw for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2024 05:37:16 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-dd8e82dd47eso7254394276.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=lists.infradead.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=hOqyoqJhFYBkPD/fv6EEJ8QaMaUrKnwkxLRauGRufLU=; b=hK2Yav6BO8CH4uwTnxZOI8HEPCeverGuvoLxPhp1AF3GMkb1wSPg7ogSg7oyTV5cad 68QKKQV5EhDCEQjKw3FZadtdZEgUBLg9fa5jXjGif2yWUU4WD7vFk0T36xGFGT5uXweB 2Gml0gks8IyAoPs4Hf13Z+buNuVfgiV18L/rrT7/eOQWdgW6t7ZRHpPu2wEVhoYzLZqT o6xCvKnal0LVhO6PTB13fsz1vfsuXEOlR9Q08vg3xNBzWFgUH6kEaEYQ7gKltdjjsO6Z QWq+j5VHWqJCUMZ1Cm3/TdUD6R+y3BckU3DQ2uVH5ZxvmSskL2YV7AuNzOh6eOCGF8e1 7vOw== 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=JpWOgNXu6BrQvKjyjNY+vAKqVclDaDDlSBtArC73SNsqWi3+lHv8ELwQSpJfcnpdmi UXdrnPUhVbAP6EMJ5FoVFDtWcyLrZsX5Uronz2aqE79gQbGplxqcwhjkWjLlDvYkrN+B 15m3U6SRC5ZCvAv2GxZx6TQ3VoR5fnenQ284t6g+1/xophqaBsEK+fgPYdO2Yrg20JVe H632vAeBa801TtJgoPXwB0q1BrdwqJIH4NW3NXDRAV5HL/+m+7QNnNGBbHut4E/kN384 NndSUPfVlgxflfrKjfN3lv8W4FxemE+s6FPKC4EfI0yblfikwAeC938VWsrD49iecNaG jNhg== X-Forwarded-Encrypted: i=1; AJvYcCVz53YIwLTh5my9E7bZ39oM/wFs3Y1M3PHIIYzXfkFquVwwUAJBRxi17+WLxzWCHuo+4K6y92kdX8YrS3TqvxlZBcjzdQsKegDtNPPC4GcurXksU+8= X-Gm-Message-State: AOJu0Yw7CJVB1Q6fPi77VX6p0UrHUrKLRNqta/HMfsPBy9DEABVhpPZT 4RK9kZLcjxAVhHOEFGDMhM/0Z6fsGMWiYDKxeQgHsdC7qI65zB/K8P+LwcLs9/QGrGyUBB3ZlXv kdyJN/7Gt0r0K6Q== 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> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_223714_652548_CF38D98F X-CRM114-Status: GOOD ( 11.65 ) 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 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