MIPS: BCM63xx: improve CFE version detection
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 8 Jun 2020 09:28:35 +0000 (11:28 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 24 Jul 2020 10:02:46 +0000 (12:02 +0200)
commite27e1cc9d360a347dbd5a398e9df21cfb4e60e3c
tree5e2b4f946df48e98b82bba0362ecda9436490547
parent0d10d17bac3d5d4e97d6f008aa3c329a83d3b283
MIPS: BCM63xx: improve CFE version detection

There are some CFE variants that start with 'cfe-vd' instead of 'cfe-v', such
as the one used in the Huawei HG556a: "cfe-vd081.5003". In this case, the CFE
version is stored as is (string vs number bytes).

Some newer devices have an additional version number, such as the Comtrend
VR-3032u: "1.0.38-112.118-11".

Finally, print the string as is if the version doesn't start with "cfe-v" or
"cfe-vd", but starts with "cfe-".

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/bcm63xx/boards/board_bcm963xx.c