diff options
author | Kuo-Jung Su <dantesu@faraday-tech.com> | 2013-05-15 15:29:20 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-06-12 22:22:51 +0200 |
commit | 9c6a9d7c8be40f58cf3faf0a4b8d9d33a21ca4f5 (patch) | |
tree | 30b004ad5a8648dfa97778b709fe958e9d16c97b /common/kgdb.c | |
parent | f6664ba4bcc484a2b924ecfa1052bb729def6685 (diff) | |
download | u-boot-imx-9c6a9d7c8be40f58cf3faf0a4b8d9d33a21ca4f5.zip u-boot-imx-9c6a9d7c8be40f58cf3faf0a4b8d9d33a21ca4f5.tar.gz u-boot-imx-9c6a9d7c8be40f58cf3faf0a4b8d9d33a21ca4f5.tar.bz2 |
usb: ehci: prevent bad PORTSC register access
1. The 'index' of ehci_submit_root() is not always > 0.
e.g.
While it gets invoked from usb_get_descriptor(),
the 'index' is always a '0'. (See ch.9 of USB2.0)
2. The PORTSC register is not always required, and thus it
should only report a port error when necessary.
It would cause a port scan failure if the ehci_submit_root()
always gets terminated by a port error.
Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common/kgdb.c')
0 files changed, 0 insertions, 0 deletions