fsl-usb: do not test for PHY_CLK_VALID bit on controller version 1.6
authorNikita Yushchenko <nyushchenko@dev.rtsoft.ru>
Mon, 28 Apr 2014 15:23:44 +0000 (19:23 +0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 6 Jun 2014 10:38:19 +0000 (12:38 +0200)
commit9c7d0b459c3d169fd4fbe2f831444c1669cef8c2
tree793d421263f52242ded2f6f5c227c63f96993af8
parent361f937995467af9221608315b6db80766ca5ef4
fsl-usb: do not test for PHY_CLK_VALID bit on controller version 1.6

commit d183c81929beeba842b74422f754446ef2b8b49c upstream.

Per reference manuals of Freescale P1020 and P2020 SoCs, USB controller
present in these SoCs has bit 17 of USBx_CONTROL register marked as
Reserved - there is no PHY_CLK_VALID bit there.

Testing for this bit in ehci_fsl_setup_phy() behaves differently on two
P1020RDB boards available here - on one board test passes and fsl-usb
init succeeds, but on other board test fails, causing fsl-usb init to
fail.

This patch changes ehci_fsl_setup_phy() not to test PHY_CLK_VALID on
controller version 1.6 that (per manual) does not have this bit.

Signed-off-by: Nikita Yushchenko <nyushchenko@dev.rtsoft.ru>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/ehci-fsl.c