Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1748560imw; Sat, 16 Jul 2022 14:00:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3Kw7S2QqqT6z2IGt6YFEL71CM5XK55so+HcXG6GX8PJbU2qekz/andPDPxCq+yPEu398l X-Received: by 2002:a17:903:10a:b0:16c:5efb:df49 with SMTP id y10-20020a170903010a00b0016c5efbdf49mr19743642plc.172.1658005228107; Sat, 16 Jul 2022 14:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658005228; cv=none; d=google.com; s=arc-20160816; b=AdgjqBtBNKkoo8uLZ1RpW/Ppt9TvRJyQCsAdr4nrIHO9ujcMvgmHEWgId1HKzB5fPP rujpRrCMHrG7t4A/OhKKEy3jjjQuk4OZhCHec0J3O4/8wh+C2uktih9wmdAwJmbFOASC c3UM34AzF0YevBj6Jn8mOE12POAjaiTJRU4Rbkpvu7+Nv5i8awJolmdjc3pMxweuCOM6 FVSDbuXPehaiVfMuOz60s8OHyfndLdF0I7ibAhTH3m2U1Bd2KKDHzkXsf7qU3OUY6wNj bUqhGEUYYWO0QmVtejN6jW7Aa6cWd2NtntrQK3WrCslz9a4NjqfSsJIX7p+V7/t6duI+ SIbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :user-agent:mime-version:date:message-id:dkim-signature; bh=xDymI6Bo6g9MRK0Ron1ut4TejlsEm125nYddx1oLxOo=; b=P366Rh60jcFjrYUuqABeYhnUYPmDTgPByJYm/eDJAtulanj7DeRjYaJPjb2XeOpGDz 2s5kAki/rMii6m/xW2wJ540cHtB/44cC5kXcJx1swixICpdPr4ENADbrpYZZsrzIkPgb 3vBDbsxZe+Yrra8KIX/I+uwTxHsCvW4kMMlPfu3FMoTSJtyEivCq4owTXBRmqt+YAkMr bs0h94R1uvKtxWXApxMS5gCkIyHENy8ZtojcOg6S5uOd/weOoDiAEHggYw/4YFfH0MDJ s0OyXGhxS7B3cHpPARjTRWf2g3y5sp3IFC/nz3mW76dYBuyxGIJSvDniDJ7Pi7UxGS5o TNHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zf7M8lPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a631e01000000b004199285948asi10130774pge.443.2022.07.16.14.00.11; Sat, 16 Jul 2022 14:00:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zf7M8lPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbiGPUud (ORCPT + 99 others); Sat, 16 Jul 2022 16:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiGPUu3 (ORCPT ); Sat, 16 Jul 2022 16:50:29 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E778A15834; Sat, 16 Jul 2022 13:50:28 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id t3so10516803edd.0; Sat, 16 Jul 2022 13:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:to:cc:from:subject :content-transfer-encoding; bh=xDymI6Bo6g9MRK0Ron1ut4TejlsEm125nYddx1oLxOo=; b=Zf7M8lPX/jD0/tW1X5+ql3adpH2XmwwLS562v11J0S1U8eUG3xqFjcKaOh3jhyTer+ YeuLCAVCOMzrqpTU0KwgOzJ2UhuWL4C9E7GjCExMbT/ICPFvN51vevApAvCrMq2o/2Mj l+mq/SOKlF38H/pmIr/Qux4xG1IjUXhljxQ9f+Oa01KZbiJVdjxy1qh7AGxELuisnYyJ TPxQ+CKX/vBbpILoqegKoGTuEurdJmhR88DWkZQ9OEYKNA0Y/V2pxI0vR0WrpN59b149 kz4aH1Lrw//COdzdCnnpsdBcO94kf41ELJ7AIVfJZvHZO8dtSttkl3n9ANkm29W7f8UI ziGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:to:cc :from:subject:content-transfer-encoding; bh=xDymI6Bo6g9MRK0Ron1ut4TejlsEm125nYddx1oLxOo=; b=0VKhW7O6SJicN2FK63NkJLeYFKAoB4tvVFC1BgPWmXbHAZ8y6/Zs+VcUC9m8NZNuaF EhEIDVFabBf8KyIgaPZtjC2L03S6BsRvxBQ7+wpXwO9HSoBN1wNlJ4Xj3WJzwWCw6XLw a81zEJN/ZNdxbhOBIswHrzZ1vWit51d5G8iHP39Ko94Wm+UnCFFKRXZghxhllZFd7oGi BVyoGQh3WmQXernKgGQJIwHvkD3mxnsqmE+jilKq3NethxSdfzYCBtMmhQ2EQIAqNqqd lGLM4gPdIHCKoACopG3SUvGGndPZS6X/1sApNG5I/C7dJMvL8t9bZXlQUSGFzVnwuZoK Balw== X-Gm-Message-State: AJIora/HWTPynk74B68m+RP57IHRMYZpcw8C9/VnmQbZarlTitQXYkFa GGkylxqWuvQgSaC2x2k4PYwskxzxw7U= X-Received: by 2002:a50:fa91:0:b0:43a:4f13:4767 with SMTP id w17-20020a50fa91000000b0043a4f134767mr28085957edr.10.1658004627468; Sat, 16 Jul 2022 13:50:27 -0700 (PDT) Received: from [192.168.26.149] (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.googlemail.com with ESMTPSA id e14-20020a170906314e00b00711d546f8a8sm3517783eje.139.2022.07.16.13.50.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Jul 2022 13:50:26 -0700 (PDT) Message-ID: <696cb2da-20b9-b3dd-46d9-de4bf91a1506@gmail.com> Date: Sat, 16 Jul 2022 22:50:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Thunderbird/96.0 To: Linux Kernel Mailing List , Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: "devicetree@vger.kernel.org" , Ansuel Smith From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: fw_devlink=on breaks probing devices when of_platform_populate() is used Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I added of_platform_populate() calls in mtd subsystem in the commit bcdf0315a61a2 ("mtd: call of_platform_populate() for MTD partitions"): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bcdf0315a61a29eb753a607d3a85a4032de72d94 I recently backported that commit in OpenWrt to kernels 5.10 and 5.15. We started receiving reports that probing Ethernet devices stopped working in kernel 5.15. I bisected it down to the kernel 5.13 change: commit ea718c699055c8566eb64432388a04974c43b2ea (refs/bisect/bad) Author: Saravana Kannan Date: Tue Mar 2 13:11:32 2021 -0800 Revert "Revert "driver core: Set fw_devlink=on by default"" This reverts commit 3e4c982f1ce75faf5314477b8da296d2d00919df. Since all reported issues due to fw_devlink=on should be addressed by this series, revert the revert. fw_devlink=on Take II. Signed-off-by: Saravana Kannan Link: https://lore.kernel.org/r/20210302211133.2244281-4-saravanak@google.com Signed-off-by: Greg Kroah-Hartman For me with above commit kernel just never calls bcm4908_enet_probe(). Reverting it from the top of 5.13.19 and 5.15.50 fixes it. I believe the same issue happens with other drivers. Critical detail is that in DT Ethernet block node references NVMEM cell of MTD partition (see below). Could you help me dealing with this issue, please? Can you see something obvious breaking fw_devlink=on + of_platform_populate() case? Can I provide some extra information to help fixing it? Relevant DT part: partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { compatible = "nvmem-cells"; reg = <0x0 0x100000>; label = "bootloader"; #address-cells = <1>; #size-cells = <1>; ranges = <0 0x0 0x100000>; base_mac_addr: mac@106a0 { reg = <0x106a0 0x6>; }; }; partition@100000 { reg = <0x100000 0x5700000>; label = "firmware"; }; }; ethernet@2000 { compatible = "brcm,bcm4908-enet"; reg = <0x2000 0x1000>; interrupts = , ; interrupt-names = "rx", "tx"; nvmem-cells = <&base_mac_addr>; nvmem-cell-names = "mac-address"; }; OpenWrt bug report: https://github.com/openwrt/openwrt/issues/10232