To be clear, suggest can you use traffic generator such like IXIA connect one your BCM5389 board to test trunk? Use three ports giga link as following configuration figure for example.
One port S4 from traffic generator IXIA to inject traffic to BCM5389 board port Port4 and forward to one of trunk ports (Port0 and Port1) for Port0 example.
The Port0 and Port1 also connect to traffic generator port S0 and S1 respectively.
And you may observe the IXIA S0 will receive the traffic, then unplug the cable between IXIA port S0 and BCM5389 Port0 and it will be failover to Port1. And IXIA port S1 receive the traffic.BCM5389 trunk registers write:- Reg(0x32: 0x01)=0x08- Reg(0x32: 0x90)=0x01
IXIA BCM5389 device1
S4 ---------> Port4----------
S0 <-------- Port0 <--------
S1 <-------- Port1
I cannot understand why your Switch 2 IMP port configure in managed mode? Because your Switch 2 IMP port is not used.
I draw your two switch chips connection configuration as below:
For BCM5389, if IMP port connect with external CPU and it needs to configure in managed mode.
In managed mode, some packets like reserved multicast will be trap to IMP port to external CPU by chip automatically. Please double check the datasheet.
If the IMP port is not used, and it does not need to configure in managed mode.
Please let me know if question.