Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3102307rwe; Mon, 29 Aug 2022 06:00:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR75qkwayY6Xi4wO61aUjDy29QNlBwPkHnkiIfGn38B0maoq0Z1AqDkeh+MEDA7RMH+2SXmX X-Received: by 2002:a17:907:75f7:b0:741:8fb7:66e9 with SMTP id jz23-20020a17090775f700b007418fb766e9mr3333468ejc.248.1661778054053; Mon, 29 Aug 2022 06:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661778054; cv=none; d=google.com; s=arc-20160816; b=ScmiJ0whE/AJ0iYSgMu1D4MWhEDVoSJugqGR5LzjHfmNEzGJgx+KP4sAVy/pab3AxF OXRYlXrLj9tqL+I51mZ6sS4wuEtBMDFdXwMtseQ6fX+syKjD2VeIUHe3n4avqtia8Dqo eNAVrK0WubkR1yTGUCl6pJYExwSGMeOU6YMcVMJJlDENCsB5z8LlSyV87pDbYeqPm1Bl fMUu1U7WTkmZ8wjkDxL/Ol1C3UJK3J0SRMAlbBABbAzmvVppVbwXyXuH091im7EZmStw NXT1M0wDYIMUJzZsRT8q9RXlRPvyMswbTz5aCJDOGrZp/8Pl98FlhYbHuUG+JBxNxyQY sDuA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oPV5NlAapyYKsMKix8J75RJ02IN7sGmLcvFnbH2RKWA=; b=nXEv/FT/LLLbhl9ugRQ9I0w4VBKssGqkVDzmizDVebIvY5XUieYUy+b5KyPqndLFuh kEl/XMTcRCzkYuL28HWh5QFB736Qu9HIZ7sUVZp79l9Ujs1hnyvtwBOuwBOhMFc8ohRV TIGvLb6o0EepObGhuoz1zZa12qn21lKThKk7KdNinqzeUdKJ/qaL30C0Fpt+7DRF+fz3 awUmoNj7z9s9d7fyCZ0+CUT3uAktTpfrJWPtfPwRdLfFJj6dtWGiHCwIgyclSL0fXwrq HP9/vIDMA8gZWm2HH3zrk6crT0v+0eUNJ2vtk0ttX2YX9B8IXbKgmG0uHPJQ+2CqRsvr ILKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=20wFvXOa; 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 hg3-20020a1709072cc300b00741ad7e8c35si293772ejc.624.2022.08.29.06.00.23; Mon, 29 Aug 2022 06:00:54 -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=20wFvXOa; 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 S229989AbiH2MqQ (ORCPT + 99 others); Mon, 29 Aug 2022 08:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiH2MqA (ORCPT ); Mon, 29 Aug 2022 08:46:00 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48A796741; Mon, 29 Aug 2022 05:30:50 -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-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=oPV5NlAapyYKsMKix8J75RJ02IN7sGmLcvFnbH2RKWA=; b=20wFvXOaYJIZPTsPGsPrCPepIh 4rNSfHsAu4ElWMwNcC0k2+qtA5Op1OnO8WFZI/KAU1TJ5wK5gYw4Ki5LQuIRje2Uez63NKAuoCM5z 7K3/AnAGde4HwVjdc4LkYrhQoV81xImhX8IG8S5H2OLj+csizhCC8JYJZEoHnXgAI9Pc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oSduP-00Exg8-PQ; Mon, 29 Aug 2022 14:30:29 +0200 Date: Mon, 29 Aug 2022 14:30:29 +0200 From: Andrew Lunn To: Divya.Koppera@microchip.com Cc: michael@walle.cc, o.rempel@pengutronix.de, UNGLinuxDriver@microchip.com, davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org, pabeni@redhat.com Subject: Re: [PATCH net-next] net: phy: micrel: Adding SQI support for lan8814 phy Message-ID: References: <20220825080549.9444-1-Divya.Koppera@microchip.com> <20220826084249.1031557-1-michael@walle.cc> <421712ea840fbe5edffcae4a6cb08150@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, T_SCC_BODY_TEXT_LINE 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 > Yes Channel 0 is correct. > > > Again this is the first time I hear about SQI but it puzzles me that > > it only evaluate one pair in this case. So as a user who reads this > > SQI might be misleaded. > > > > Yeah, It needs uAPI extension. I think the current uAPI actually allows it, sort of. You can have multiple instances of a netlink property in a netlink message. So simply add 2 or 4 ETHTOOL_A_LINKSTATE_SQI properties. The existing user space tools will likely just print the first value it finds. Newer versions can walk the messages and print them all. The alternative is to add a new nest, like i did for cable test results: +-+-------------------------------------------+--------+---------------------+ | | ``ETHTOOL_A_CABLE_NEST_RESULT`` | nested | cable test result | +-+-+-----------------------------------------+--------+---------------------+ | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number | +-+-+-----------------------------------------+--------+---------------------+ | | | ``ETHTOOL_A_CABLE_RESULTS_CODE`` | u8 | result code | +-+-+-----------------------------------------+--------+---------------------+ You can then explicitly indicate which cable pair the SQI value corresponds to. In order to keep backwards compatibility, you would still need to provide ETHTOOL_A_LINKSTATE_SQI, and then additionally have these nests. Andrew