Skip to content

[Regression] commit f5c055c28415688bde0d8cc100803e8d4d3f3a04 in the rpi-6.12.y branch introduced a regression in the bmac driver #7200

@puchu

Description

@puchu

Describe the bug

after commit 5c5e74a on branch rpi-6.12.y the network interface refuses to work, when a static ip is assigned to it and the network cable is disconnected and reconnected again or when the network device the rasp5 is connected, goes down and comes up again

restarting the network interface on rasp5 and reassigning the ip address make the it work again, as a work around

reverting commit 5c5e74a on the file drivers/net/ethernet/cadence/macb_main.c fixes the bug

the actual patch that reverts the commit:

--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -775,6 +775,7 @@ static void macb_mac_link_up(struct phylink_config *config,
                /* Initialize rings & buffers as clearing MACB_BIT(TE) in link down
                 * cleared the pipeline and control registers.
                 */
+               bp->macbgem_ops.mog_init_rings(bp);
                macb_init_buffers(bp);
 
                for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue)
@@ -3048,8 +3049,6 @@ static int macb_open(struct net_device *dev)
                goto pm_exit;
        }
 
-       bp->macbgem_ops.mog_init_rings(bp);
-
        for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) {
                napi_enable(&queue->napi_rx);
                napi_enable(&queue->napi_tx);

Steps to reproduce the behaviour

compile the 6.12.x branch with commit 5c5e74a applied

  • assign a static ip to the network card,
  • diconnect the network cable
  • reconnected the network cable again
  • although the network card still has it's assigned ip address, network access doesnt work anymore

Device (s)

Raspberry Pi 5

System

Linux rasp5 6.12.66-v8-16k+ #193 SMP Mon Jan 19 20:18:55 CET 2026 aarch64 GNU/Linux
Revision : d04170
Model : Raspberry Pi 5 Model B Rev 1.0
Throttled flag : throttled=0x0
Camera : vc_gencmd_read_response returned -1 error=1 error_msg="Command not registered"

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions