Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2188657rdb; Fri, 8 Dec 2023 00:14:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZNVhYMgCejdX5hICvp9GaFlH0dZtvRmCLwL3FuSCJ9QbtI0WUcQ83xo54jCgCUfEO1ewW X-Received: by 2002:a05:6a00:2302:b0:6c3:1b90:8552 with SMTP id h2-20020a056a00230200b006c31b908552mr3484549pfh.17.1702023266959; Fri, 08 Dec 2023 00:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702023266; cv=none; d=google.com; s=arc-20160816; b=pp6M5577lpaX33KSF2yPwscQqa5FA9EZRwe6PW31MQ4EQrir04WTbJ5NC3tyaf3d+3 kVkkaOJv9yNX6iLUbwoqXBzMDFjjMPbiVRT4xhskV98M0fHcsiJJFtm6n0h7rL996mdz jjM8vpTtGEf+PmQCrkEryZRi9gidwvgBjV1Etla5CVMN9Nx/dk9lXB0XfEU2397kTtaX MDR6LrZjXUxC6GOlGTfj3oiKEqqBVCpnSgpx5u+jKBnnVzdfXzV92NZan/y+PykS2yfT Fgw7i0uou3ttahfvXklfj0UrcI+7nG1E0baKEtRVuzY08QxzKx8Cho86+1oJrT83L9JA EtZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=pNpi/zPSL34A2AILSCeVZYzKaahG4aVQbHxXFOHl7us=; fh=xjow/2CvZN2UyG72RoQ/BhlxZdgKDbBVmBjJ9qr6MXY=; b=qiPkRHd56OC/EJTXXYTPZ+81hxR29CjP1PFPZqHYYKpuNyTwT9lFmYaTu5zey+yPoc k2k86ilMgR5xoj3XuWI+00JwgbhyCxQEjeBp9AI1bUByCbiVqcZGlL3LbWVkzo3POnWt eF0dkTf5TCau1fCAsT1TO31Gwkc7DplFEpY5bqEU4XiRPXfTTavukrU61Pp5YcZUjoSz P45aE2zQwGnzFXVLrPFh9rjJjarodZSDcv4V5WASemT9xXX24LoBjH6NlOwMY2ONJgS7 C6ie2jpHehnffRn0vv6xzYdUQIurWLBfhtxfKSImdTRClpChE/YJpozeZ+XUpq9Lm/30 sfdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NPzuoQm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id fi29-20020a056a00399d00b006cbef05beddsi1186146pfb.11.2023.12.08.00.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 00:14:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NPzuoQm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8C3048042D25; Fri, 8 Dec 2023 00:14:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233195AbjLHIOJ (ORCPT + 99 others); Fri, 8 Dec 2023 03:14:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjLHIOI (ORCPT ); Fri, 8 Dec 2023 03:14:08 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86FE61712; Fri, 8 Dec 2023 00:14:13 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9B305240006; Fri, 8 Dec 2023 08:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702023251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pNpi/zPSL34A2AILSCeVZYzKaahG4aVQbHxXFOHl7us=; b=NPzuoQm6kvXR/VoPhuUdv5yNuJM0Vve3pRFYfIM9SThj/jhXGhqq0IDkkRv2loRg/gUDD0 FQ68ceCavrKcAlS55WZELcguty0dSsStu+4D+/5EbBnWgmMrnLtwbBdRF5ZzFrv0GY6Cgq wHeA1r/5LPGre48RbaZH6s+iJoFP209UeZJ1eBCfKFjREC2wU8+hFRrEZP71JWacsRYm/6 TeWbEOmDu4BPfLJxbyaB9RWcKsGktVGmz5rV1IpnS09YNN+T4+r4sDu3VNU7STgvYgel9D i4uVk9ui9qJ1I2UylkvZZxj4zoDabACcKWwZfN9nWspkHZcpSNQ6hlj2cWC9WQ== Date: Fri, 8 Dec 2023 09:14:08 +0100 From: Maxime Chevallier To: Jiangfeng Ma Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Simon Horman , Andrew Halaney , Bartosz Golaszewski , Shenwei Wang , Johannes Zink , "Russell King (Oracle" , Jochen Henneberg , "open list:STMMAC ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , open list , James Li , Martin McKenny Subject: Re: [PATCH] net:stmmac:stmmac_platform:Add snps,xpcs devicetree parsing Message-ID: <20231208091408.071680db@device.home> In-Reply-To: References: Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 00:14:24 -0800 (PST) Hello, On Fri, 8 Dec 2023 07:02:19 +0000 Jiangfeng Ma wrote: > In order to setup xpcs, has_xpcs must be set to a non-zero value. > Add new optional devicetree properties representing this. > > If has_xpcs is set to true, then xpcs_an_inband should preferably be > consistent with it, Otherwise, some errors may occur when starting > the network, For example, the phy interface that xpcs already supports, > but link up fails. Can you elaborate on why you need this, and on which platform especially ? Usually drivers for the various stmmac variants know if they have XPCS or not, or can guess it based on some info such as the configured PHY mode (dwmac-intel). Besides that, there are a few issues with your submission. If DT is the way to go (and I don't say it is), you would also need to update the bindings to document that property. > The types of has_xpcs and xpcs_an_inband are unsigned int, > and generally used as flags. So it may be more reasonable to set them to > bool type. This can also be confirmed from the type of @ovr_an_inband. And this part would go into a separate patch. Thanks, Maxime