summaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-04-04 09:50:53 +0200
committerStefan Roese <sr@denx.de>2024-04-04 10:45:27 +0200
commited8d3bd11a97345a1045ec8c60ee2d1e12040795 (patch)
tree5caf52640cd74b1145ab977c5f9a037c064090fd /lib/net_utils.c
parent8983f0a5165698db95a1561311d65daa8b972f96 (diff)
arm: mvebu: turris_omnia: Update MCU status and features reading
Refactor MCU status word and MCU firmware features reading to make it simpler to use. Try reading 32 bits of features, if that fails, read 16 bits. Older MCU firmware supports only 16-bit wide features, and if more bytes are read, either 0xff is sent or I2C transaction fails. Handle both cases. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions