Skip to content
Commit 3078e035 authored by Sven Auhagen's avatar Sven Auhagen Committed by Stefan Roese
Browse files

net: mvpp2: fix second cp110 initialization



Since the mdio code got upstreamed it is not possible
to activate network ports on CP110 Master and Slave.

The problem is in mvpp2_base_probe which is called for each
CP110 and it initializes the buffer area for descs and rx_buffers.

This should only happen once though and the bd space is actually
set to 0 after the first run of the function.

This leads to an error when the second CP110 tries the initialization
again and disables all network ports on this CP110.

This patch adds a static variable to check if the buffer area is
initialized only once globally.

Signed-off-by: default avatarSven Auhagen <sven.auhagen@voleatech.de>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 21b1c75f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment