Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4333105imw; Tue, 12 Jul 2022 06:17:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udgQ18CJinp6ILw4kQESXkZ4gKpGtmUos/vLqqDP+6oPue6E2pHDNRmpOrrSrzJj8OQiW3 X-Received: by 2002:a05:6402:3202:b0:43a:86f5:a930 with SMTP id g2-20020a056402320200b0043a86f5a930mr31554006eda.389.1657631856201; Tue, 12 Jul 2022 06:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657631856; cv=none; d=google.com; s=arc-20160816; b=VqsQMIKAWEFD9pdLkamYDp8wASJIfon9p/yGNleXOaw7U89XOR0xpj145OD6kL9JOu W7eGA5Kicj/Ok5MlwI1a3+9rTObDlFhzjzKtXwgXlkh6cOmAP+B1gP0MujIa5flTB4D3 5P7TKc684r5otR9iBalhGDL+5ZGdarQ1DyChn/qMqc+CBy25BWJyteilzl4XTfbka586 U6xV4ZSFmM2jiFLUk0Sy7LFO/GzeIgDvCAmJOTwUfS2of7BTPirAFdiueb669GIfa/Bq QI+n/r7iWHs4OtI1E8NXHgiAjoFSBo66IgVNnHoROB0KU7m13ltf2EH7fsT1MEJHiNrr KNZw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gLW7VatbrBWfqTwqY6WDck3eUofyP3Zra0rwZxER75Y=; b=Q5Vg1TSsfxJ1vLK8VLBaNBGCQtamOa8W5hTLt2pGspYoo3fs+RDnnB0PJuM6QblMir 2OEQ5hm2BLDvNL21kueowCY8XbtXq9iHXU676Z4UiXKUw5JPzicePOSN1vZizDyVZ3V+ IJsVL7pa/H6P7Tv9CYXJVoKq7APtTZjdH9BrLBRwOfrZXRnhsORcCT/7/TUY65lUS/8Q xKxBmLS/sIXMD0fa6kAFCKlZC6tBXLpnwFo2zzougn4W/U/CVAQ7BY8f2Jd6pwd+SeNU HBJK64//mbYo10J8lW+HVQx9vVDFesbonz2lvm+VWQHpbkYLWsmAKElB0q40A9JFBbfq pAMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=RIdV6gkc; 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 l1-20020aa7c301000000b004376293d289si13188337edq.594.2022.07.12.06.17.10; Tue, 12 Jul 2022 06:17:36 -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=@walle.cc header.s=mail2016061301 header.b=RIdV6gkc; 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 S232621AbiGLNQK (ORCPT + 99 others); Tue, 12 Jul 2022 09:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbiGLNQJ (ORCPT ); Tue, 12 Jul 2022 09:16:09 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF47C6BC11; Tue, 12 Jul 2022 06:16:02 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 9E2BB22239; Tue, 12 Jul 2022 15:15:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657631761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=gLW7VatbrBWfqTwqY6WDck3eUofyP3Zra0rwZxER75Y=; b=RIdV6gkckEUDR0YgPzejBfRNOwh4cZw6hAmEoiw2lJnCq7LipAgAtHtBYwr0v/gQxOd7t4 LpOmQbuVikpX7hei/Ia4edeLmtSnqJ9MXu/RMObAoHjDV8XUuAS2EdqfjXYpOktHcIVgVe eizEepdLqkBO+wezQGFYkPVyw44i5mg= From: Michael Walle To: Xu Liang , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH net-next 0/4] net: phy: mxl-gpy: version fix and improvements Date: Tue, 12 Jul 2022 15:15:50 +0200 Message-Id: <20220712131554.2737792-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 Fix the version reporting which was introduced earlier. The version will not change during runtime, so cache it and save a PHY read on every auto negotiation. Also print the version in a human readable form. Michael Walle (4): net: phy: mxl-gpy: fix version reporting net: phy: mxl-gpy: cache PHY firmware version net: phy: mxl-gpy: rename the FW type field name net: phy: mxl-gpy: print firmware in human readable form drivers/net/phy/mxl-gpy.c | 55 +++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 26 deletions(-) -- 2.30.2