Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a863212 authored by Ira Weiny's avatar Ira Weiny Committed by Doug Ledford
Browse files

IB/ipoib: Use new device FW version string



Using this allows for devices to specify the format of their
firmware version rather than forcing a format.

Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 15453e85
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -62,10 +62,8 @@ static void ipoib_get_drvinfo(struct net_device *netdev,
{
	struct ipoib_dev_priv *priv = netdev_priv(netdev);

	snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
		 "%d.%d.%d", (int)(priv->ca->attrs.fw_ver >> 32),
		 (int)(priv->ca->attrs.fw_ver >> 16) & 0xffff,
		 (int)priv->ca->attrs.fw_ver & 0xffff);
	ib_get_device_fw_str(priv->ca, drvinfo->fw_version,
			     sizeof(drvinfo->fw_version));

	strlcpy(drvinfo->bus_info, dev_name(priv->ca->dma_device),
		sizeof(drvinfo->bus_info));