mediatek/mt8173: Check the right set of bits in USB controller
Change-Id: Ic1d1b85a1d7e85b555a93b3a0b55fe310b26e34a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1353362 Reviewed-on: https://review.coreboot.org/17875 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
710032be19
commit
1d1e141f2e
|
@ -99,7 +99,7 @@ static int check_ip_clk_status(void)
|
|||
u3_port_num = CAP_U3_PORT_NUM(read32(&ippc_regs->ip_xhci_cap));
|
||||
|
||||
check_bits = STS1_SYSPLL_STABLE | STS1_REF_RST | STS1_SYS125_RST;
|
||||
check_bits = (u3_port_num ? STS1_U3_MAC_RST : 0);
|
||||
check_bits |= (u3_port_num ? STS1_U3_MAC_RST : 0);
|
||||
|
||||
stopwatch_init_usecs_expire(&sw, 50000);
|
||||
|
||||
|
|
Loading…
Reference in New Issue