diff options
author | Evan Lojewski <github@meklort.com> | 2020-07-19 20:17:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 20:17:43 -0600 |
commit | ffb8f12c25642fd3f5dfa8d878ac53f4ea2d914d (patch) | |
tree | e8496b42ac9af5b7519fd08b41f3c9d59fc6b6a5 /libs/NCSI/ncsi.c | |
parent | ae0d138e0af73f197e8e5c76bf378ce18a0394a6 (diff) | |
download | bcm5719-ortega-ffb8f12c25642fd3f5dfa8d878ac53f4ea2d914d.tar.gz bcm5719-ortega-ffb8f12c25642fd3f5dfa8d878ac53f4ea2d914d.zip |
network: Always check registers during init and place them in a known state. (#95)
Diffstat (limited to 'libs/NCSI/ncsi.c')
-rw-r--r-- | libs/NCSI/ncsi.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/NCSI/ncsi.c b/libs/NCSI/ncsi.c index c54eb72..88f603d 100644 --- a/libs/NCSI/ncsi.c +++ b/libs/NCSI/ncsi.c @@ -523,7 +523,6 @@ static void setMACAddressHandler(NetworkFrame_t *frame) { int ch = frame->controlPacket.ChannelID & CHANNEL_ID_MASK; NetworkPort_t *port = gPackageState.port[ch]; - // port->shm_channel->NcsiChannelInfo.bits.Enabled = false; debug("Set MAC: channel %x\n", ch); debug(" MAC: 0x%04x%04x%04x\n", frame->setMACAddr.MAC54, frame->setMACAddr.MAC32, frame->setMACAddr.MAC10); @@ -700,12 +699,9 @@ void reloadChannel(int ch, reload_type_t reset_phy) uint16_t high = port->shm_channel->NcsiChannelMac0High.r32; Network_SetMACAddr(port, high, low, /* TBD */ 0, 1); - if (gPackageState.port[ch]->shm_channel->NcsiChannelInfo.bits.Enabled) - { - printf("[ch %d] Reusing MAC: 0x%02X%04X\n", ch, high, low); + printf("[ch %d] Reusing MAC: 0x%02X%04X\n", ch, high, low); - Network_InitPort(gPackageState.port[ch], reset_phy); - } + Network_InitPort(gPackageState.port[ch], reset_phy); } void NCSI_TxPacket(uint32_t *packet, uint32_t packet_len) |