]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Remove pending_image indicator from devlink
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 5 Aug 2021 19:52:48 +0000 (12:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Aug 2021 09:41:27 +0000 (10:41 +0100)
commitdaa9d34bd41f44e8163abcf5ceb00c101116c95e
treefedc93fb542448d0d19b74306a343da52c04ab8c
parent692aa94bdeba056b8d4bd3a64f1091accd092643
ptp: ocp: Remove pending_image indicator from devlink

After writing an image blob to the flash memory, a reboot is required
to reload the FPGA.  There is no versioning prsent in the FPGA image
file, so only a running version is available.  The 'stored version'
was set to 'pending' in order to indicate a reboot was needed.

This isn't reliable, as the module could be unloaded/loaded, losing
the "reboot needed" indicator.  Also, the devlink 'stored version'
information is designed to refer to the actual image version.

Unfortunately, there is no method to determine the flash image version
other than booting it, so remove the devlink stored version setting.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c