Commit 76048fc705030d356183d97a54440390134e6aab
Committed by
Larisa Grigore
1 parent
16ee190363
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
mdio: Save previous status for mdio list command
When mdio list command is called, it doesn't save previous parameter. So, when we press enter to repeat command, it doesn't show any thing. Remove return instruction when call do_mdio with "list" parameter. Signed-off-by: phu.luuan <phu.luuan@nxp.com> Signed-off-by: Dan Nica <dan.nica@nxp.com> Issue: ALB-1741
Showing 1 changed file with 5 additions and 6 deletions Side-by-side Diff
cmd/mdio.c
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | /* |
3 | 3 | * (C) Copyright 2011 Freescale Semiconductor, Inc |
4 | 4 | * Andy Fleming |
5 | + * Copyright 2017 NXP | |
5 | 6 | */ |
6 | 7 | |
7 | 8 | /* |
... | ... | @@ -274,12 +275,6 @@ |
274 | 275 | return CMD_RET_FAILURE; |
275 | 276 | } |
276 | 277 | |
277 | - if (op[0] == 'l') { | |
278 | - mdio_list_devices(); | |
279 | - | |
280 | - return 0; | |
281 | - } | |
282 | - | |
283 | 278 | /* Save the chosen bus */ |
284 | 279 | miiphy_set_current_dev(bus->name); |
285 | 280 | |
... | ... | @@ -292,6 +287,10 @@ |
292 | 287 | case 'r': |
293 | 288 | mdio_read_ranges(bus, addrlo, addrhi, devadlo, devadhi, |
294 | 289 | reglo, reghi, extended); |
290 | + break; | |
291 | + | |
292 | + case 'l': | |
293 | + mdio_list_devices(); | |
295 | 294 | break; |
296 | 295 | } |
297 | 296 |