Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3825661iob; Mon, 2 May 2022 06:40:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMYPdaQnTxBH2le/HQIYx07qETJb1FnqCRFHvfuMvxYylwhKVGFuWFxm/PwUHxtZTjGOG/ X-Received: by 2002:a17:902:8b88:b0:156:2b14:cb6e with SMTP id ay8-20020a1709028b8800b001562b14cb6emr11924538plb.14.1651498815095; Mon, 02 May 2022 06:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651498815; cv=none; d=google.com; s=arc-20160816; b=UZFrGqXNA6GNvAr9+Bs83f/TZGBT4SirfjG5DqSep/FHR4/q/907kpI73ZhQ8tMxDm i3jQMZRb6pKisgEguBt7FMQg+pM7hK3vo6ZoI9dTjfaqaUu0fmAdkHCXVkTp4YT94bCY Y1JzLmBiuRC/GdDm5h6+P0fUo6CYqsocAFXySY0sNNXix4FX9rvsT00VKXCDIoYSCOY9 7qpUdLCMQfulCS7C+FLvm9fxZAvGWXOYDdk3vlFB07XF/nzsNdG2RjaUmvOIKP1LBdv1 WyRBU7UP/tWxoFtbT+RTNa05Vo6PmQPKhqIVCzvOYmIaF3pFIip+QY5Iz2ksSc2dkc2j g17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nJbZKj7+pWCDUFlNUm1wgYBm08byh6iVe5oLUsV2N0I=; b=GgAYI06nHauvX284cp9N9HPAAy06z8O0Xeq8GTG99bWCKECaNnkugTxrJ7f5B3txK+ 5MfMbPxMvBSAvrpJubLBegza0OsCu7bF7NVvXHmGIzk4s9JMdYNmvaVMZSbybhH52yyR AZD1VdriCKxbMGgw4F+gJQc1gCwNcNW83TEawycm1ITe8kqzTw1UDjrUuvwIgLEmxfGp utR5DwrbXulOV63H3TiHAjCHwqaRjxeSBAVO/yVYuBy7ZvllTbL8Xmw6CVQRz6EmDLbR 7/uS/v7j/TwnMPX1DdurtiDLGXZfW0yqrhGdNJ0CgGh4t4wgmgb1xSo7LDqa+3OJlDfS AYIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="5Sj/EYV/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a170903024f00b00153b7df656asi16202388plh.490.2022.05.02.06.39.57; Mon, 02 May 2022 06:40:15 -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=@lunn.ch header.s=20171124 header.b="5Sj/EYV/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358972AbiD2MSb (ORCPT + 99 others); Fri, 29 Apr 2022 08:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238748AbiD2MSa (ORCPT ); Fri, 29 Apr 2022 08:18:30 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FBD2205D3; Fri, 29 Apr 2022 05:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=nJbZKj7+pWCDUFlNUm1wgYBm08byh6iVe5oLUsV2N0I=; b=5S j/EYV/8pbsLLSu8n1/uFFbh2LWnTM81hBfk5ByckrGFEz/Rzm0HXbq8JtQJgO5q8+P9NvMdC1CJYr pRPj16atkhl+PJjTdufp6ZRrDM4Le5t3OVL/LfORBPTg8OyraEq2jc4EYMRjWXLyKwzmhkOZxajJq SdpcKlQ30SYXps4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nkPWS-000TZv-69; Fri, 29 Apr 2022 14:14:56 +0200 Date: Fri, 29 Apr 2022 14:14:56 +0200 From: Andrew Lunn To: "jay.xu@rock-chips.com" Cc: kuba , davem , joabreu , "alexandre.torgue" , "peppe.cavallaro" , netdev , linux-arm-kernel , Linux Kernel Mailing List , "open list:ARM/Rockchip SoC..." , Device Tree Subject: Re: Re: [PATCH V2] ethernet: stmmac: support driver work for DTs without child queue node Message-ID: References: <20220428010927.526310-1-jay.xu@rock-chips.com> <20220429004605.1010751-1-jay.xu@rock-chips.com> <2022042909545741446644@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2022042909545741446644@rock-chips.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Adding device tree list. This is mostly a device tree issue, so the device tree Maintainers should be part of the discussion. > >On Fri, Apr 29, 2022 at 08:46:05AM +0800, Jianqun Xu wrote: > >> The driver use the value of property 'snps,rx-queues-to-use' to loop > >> same numbers child nodes as queues, such as: > >> > >>???? gmac { > >>???????? rx-queues-config { > >>???????????? snps,rx-queues-to-use = <1>; > >>???????????? queue0 { > >>???????????????? // nothing need here. > >> ??? }; > >> }; > >>???? }; > >> > >> Since a patch for dtc from rockchip will delete all node without any > >> properties or child node, the queue0 node will be deleted, that caused > >> the driver fail to probe: > > > >Is this the in tree dtc? Do you have a commit hash for it? That should > >probably be used as a Fixes: tag. Or that change to dtc needs > >reverting because it breaks stuff. > > > The patch is a hack patch for some products and have not in tree dtc, I said that to > explain a possible case how things happed, it's only a case of no child queue node. So this has nothing to do with the kernel dtc, or the upstream dtc. This is only a 'vendor crap' dtc which has been hacked? Why should mainline care? Is there anything in the DT standard which says the compiler can optimise out empty properties? Andrew