usb: TOSHIBA Disk Can't Be Recognized on the Port of USB 2.0 [1/1]
authorhe.he <he.he@amlogic.com>
Tue, 10 Sep 2019 02:48:17 +0000 (22:48 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 17 Sep 2019 06:38:02 +0000 (23:38 -0700)
commitc7dbd68dfafeaf65a99cfe4d93aa74fae772d2a0
treea8efcdabc27402f0d335e14cd209e2d6741194a1
parentb4ea53ce1f8ce21016a5d2b5ada70da76ad3f350
usb: TOSHIBA Disk Can't Be Recognized on the Port of USB 2.0 [1/1]

PD#SWPL-14156

Problem:
TOSHIBA Disk can't be recognized on the Port of USB 2.0 and since then
any disk can't be recognized.This is because
that the CCS flag of the PORTSC is still set and if write 0
to 0x38 of usb phy register the CCS will change to
0 and so that other disks can be recognized.

Solution:
when the enumeration fails, call set_usb_phy_host_tuning.

Verify:
test pass on u212

Change-Id: I507f269afc825de75c7dcce5f79c9c1dd7793d84
Signed-off-by: he.he <he.he@amlogic.com>
drivers/amlogic/usb/phy/phy-aml-new-usb-v2.h
drivers/usb/core/hub.c
drivers/usb/core/hub.h