diff options
author | Matthias Schiffer <matthias.schiffer@ew.tq-group.com> | 2024-04-26 10:02:25 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-15 10:46:47 -0600 |
commit | 0898f44b23effb5a0efbbb9783f8669d02d67dca (patch) | |
tree | f96c762765412273c659bbf3b82a014241ce0a5e /drivers/fpga/fpga.c | |
parent | ef9d4da6c92b07f0668f059d0cdc51eb34ed947e (diff) |
net: ti: am65-cpsw-nuss: avoid errors due to imbalanced start()/stop()
The eth-uclass state machine doesn't prevent imbalanced start()/stop()
calls - to the contrary, it even provides eth_init_state_only() and
eth_halt_state_only() functions that change the state without any calls
into the driver. This means that the driver must be robust against
duplicate start() and stop() calls as well as send/recv calls while the
interface is down.
We decide not to print error messages but just to return an error in the
latter case, as trying to send packets on a disabled interface commonly
happens when the netconsole is still active after the Ethernet has been
halted during bootm.
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Diffstat (limited to 'drivers/fpga/fpga.c')
0 files changed, 0 insertions, 0 deletions