Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2198947ybv; Mon, 24 Feb 2020 00:55:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzLnC80Udy0ompYeRfha59FoYNvb6FYLOUrCRxWy7yqg3q1PagIXY/qZbHTI0rEbVcVXfDN X-Received: by 2002:a05:6808:611:: with SMTP id y17mr11362340oih.146.1582534523365; Mon, 24 Feb 2020 00:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582534523; cv=none; d=google.com; s=arc-20160816; b=uxWDRquSzG8o9fGz6sS5uYtjC1/8XSOc7YEg/Tmeb4vbCo2ZaSQOxCsq+FiWLttleE neRJ65v1a28kcUDht2kftnWU8ZW+O8Y9hMOkHOmC/rRZWmr10PdNMkHmn4ps2UFtvSR7 pbO3gS7+iUmdN5obMKhLUMVDP2Hn9paA0I2qCjSsMAR982vo5c0cl94d7lVzG3Ut+Z3x oqNW9n5zw1Hpk/XmjvGiQ+5ar+hZlHwzB4pKYmKaZN8/vtQiJX9CRxjxI4FIeJD0stJd pdKTrdtk3qetlvoABbr+l1VlIBrnWPbHyXaCLPMrrN/osBcsyxmXT2CQqt2OEz9ZvaiX VhlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yqpAzjogGc4iFFkwti/K5WSxjWxYFrNnwKj9wNe2/BM=; b=erGGBNy6CPoczpAypA/TS9lXlLUvE8hP05adGFGQn0r5TY5FU2smxMZNAczHJz9vlp s2gdSL6lgRUzaSZKOJz9cMPSMz4LMd/Zcu7vSFZHt2uaR8rqAbS3Bb4w4OTbGaQfHywp r8kWg0qm0/2m1RfY7dE8s4A4Uvhi+tB6IMEG+iJ52fnkvMRxxHmUuLXKfBOmFLCOjqTE 1EkQMaFk3bhR6VW0TKQuV2jAeq7/aARaavUh7eH/wv+3Zfc8NdvWxCXluHF+mrh86Ntm v8dG+XkczRrxk/Xy7pMwRVmOxzuERp4asSKmkPw5v7ilG+4EFm2yUD/uPfcCoIsiqOkP hXNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xf6bxCQV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si5983570ote.9.2020.02.24.00.55.10; Mon, 24 Feb 2020 00:55:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xf6bxCQV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbgBXIxv (ORCPT + 99 others); Mon, 24 Feb 2020 03:53:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:37104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727655AbgBXIxt (ORCPT ); Mon, 24 Feb 2020 03:53:49 -0500 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 937492187F; Mon, 24 Feb 2020 08:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582534428; bh=LUxYTwwdwf6SHIjajoLDNPMJKCyZMEOBchMPulk8V+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xf6bxCQVjrbPD1yNAqNMJxDdwz23WBF6fa9g7Ckp6zWe+GxeC0iSpZYdMccNPNm7E M4Xq4O3XW/jHdWxMaXt+dXlhJ4MlVsDUlntN4Kvc0eD5Fo/E5bDY4Lx3fOUBb4gIX+ WsPc+pfW9mph/3bgGuTnd6NS8B3GDoYjYYxZoZ1A= From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski Cc: Leon Romanovsky , Tom Lendacky , Keyur Chudgar , Don Fry , Veaceslav Falico , Jay Vosburgh , linux-acenic@sunsite.dk, Maxime Ripard , Heiko Stuebner , Mark Einon , Chris Snook , linux-rockchip@lists.infradead.org, Iyappan Subramanian , Igor Russkikh , David Dillow , Netanel Belgazal , Quan Nguyen , Jay Cliburn , Lino Sanfilippo , linux-arm-kernel@lists.infradead.org, Andreas Larsson , Andy Gospodarek , netdev@vger.kernel.org, Thor Thayer , linux-kernel@vger.kernel.org, Ion Badulescu , Arthur Kiyanovski , Jes Sorensen , nios2-dev@lists.rocketboards.org, Chen-Yu Tsai Subject: [PATCH net-next v1 10/18] net/alteon: Properly report FW version Date: Mon, 24 Feb 2020 10:53:03 +0200 Message-Id: <20200224085311.460338-11-leon@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200224085311.460338-1-leon@kernel.org> References: <20200224085311.460338-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky The acenic driver assigns FW version in driver version field, as part of cleanup driver version, set FW version properly. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/alteon/acenic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c index f366faf88eee..5d192d551623 100644 --- a/drivers/net/ethernet/alteon/acenic.c +++ b/drivers/net/ethernet/alteon/acenic.c @@ -2699,9 +2699,8 @@ static void ace_get_drvinfo(struct net_device *dev, struct ace_private *ap = netdev_priv(dev); strlcpy(info->driver, "acenic", sizeof(info->driver)); - snprintf(info->version, sizeof(info->version), "%i.%i.%i", - ap->firmware_major, ap->firmware_minor, - ap->firmware_fix); + snprintf(info->fw_version, sizeof(info->version), "%i.%i.%i", + ap->firmware_major, ap->firmware_minor, ap->firmware_fix); if (ap->pdev) strlcpy(info->bus_info, pci_name(ap->pdev), -- 2.24.1