diff options
author | Jonathan Lemon <jonathan.lemon@gmail.com> | 2021-08-05 12:52:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-06 10:41:27 +0100 |
commit | 1a052da92924413d8fab15ccf293f886148e8fc9 (patch) | |
tree | 10e591b572653b9e3f1f4c6c0c4792cf2f0c659f /drivers/ptp | |
parent | ef0cfb3460a40942c901e15e3df9822b63cb159e (diff) | |
download | linux-1a052da92924413d8fab15ccf293f886148e8fc9.tar.bz2 |
ptp: ocp: Rename version string shown by devlink.
The TimeCard has two FPGA images in the flash: the actual firmware,
and a manufacturing fallback version which is intended to act as a
loader in case the flash update failed.
Name these "fw" and "loader", which are reflected in devlink:
[root@timecard drv]# devlink dev info
pci/0000:04:00.0:
driver ptp_ocp
serial_number fc:c2:3d:2e:d7:c0
versions:
running:
fw 5
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_ocp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index f744bb42f48f..1412015fd261 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -867,12 +867,12 @@ ptp_ocp_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, if (ver & 0xffff) { sprintf(buf, "%d", ver); err = devlink_info_version_running_put(req, - "timecard", + "fw", buf); } else { sprintf(buf, "%d", ver >> 16); err = devlink_info_version_running_put(req, - "golden flash", + "loader", buf); } if (err) |