diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2016-12-15 14:47:29 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-12-16 15:54:39 +0100 |
commit | 1d1e141f2e2c44de514f34ae22e074e9a8718b7a (patch) | |
tree | a16723f4204b681aa57373c0c1c3542fa5911e59 /src | |
parent | 710032be191687adc5865e3ec5319e3b24940e03 (diff) | |
download | coreboot-1d1e141f2e2c44de514f34ae22e074e9a8718b7a.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/mediatek/mt8173/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8173/usb.c b/src/soc/mediatek/mt8173/usb.c index ac07646e35..1dccfc9a89 100644 --- a/src/soc/mediatek/mt8173/usb.c +++ b/src/soc/mediatek/mt8173/usb.c @@ -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); |