Skip to content

Commit

Permalink
cpu/sam0_common: eth: collision should return -EBUSY
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 15, 2024
1 parent dbd5207 commit 08fc52b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpu/sam0_common/sam0_eth/eth-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ static int _sam0_eth_confirm_send(netdev_t *netdev, void *info)
return -EAGAIN;
}

/* Retry Limit Exceeded */
if (tsr & GMAC_TSR_RLE) {
/* Retry Limit Exceeded, Collision Occurred */
if (tsr & (GMAC_TSR_RLE | GMAC_TSR_COL)) {
return -EBUSY;
}

/* Transmit Frame Corruption, Collision Occurred */
if (tsr & (GMAC_TSR_TFC | GMAC_TSR_COL)) {
/* Transmit Frame Corruption */
if (tsr & GMAC_TSR_TFC) {
return -EIO;
}

Expand Down

0 comments on commit 08fc52b

Please sign in to comment.