summaryrefslogtreecommitdiff
path: root/include/universe.h
diff options
context:
space:
mode:
authorSven Auhagen <sven.auhagen@voleatech.de>2020-07-01 17:43:43 +0200
committerStefan Roese <sr@denx.de>2020-07-09 06:52:20 +0200
commit3078e03516934c016ef3ea15f8bce19df3948dfe (patch)
treee2b9e1b9054bcfcd8f270bbefdd30cf64ba550f5 /include/universe.h
parent21b1c75f9d2387b7cff88b38110a53e350d06b56 (diff)
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: Sven Auhagen <sven.auhagen@voleatech.de> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/universe.h')
0 files changed, 0 insertions, 0 deletions