USB: c67x00: add proper delays to HPI read/write
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 25 Dec 2013 12:01:30 +0000 (16:01 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 00:15:39 +0000 (16:15 -0800)
commit8f668fbbd571bbd5187a9a0eae150b768fc388ac
tree3def8b18a00f20ce2ea41acd3f831450ac982ac7
parent543d7784b07ffd16cc82a9cb4e1e0323fd0040f1
USB: c67x00: add proper delays to HPI read/write

According to CY7C67300 specification HPI read and write cycle duration
Tcyc must be at least 6T long, where T is 1/48MHz, which is 125ns.
Without this delay fast host processor cannot write to chip registers.
Add proper ndelay to hpi_{read,write}_reg.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/c67x00/c67x00-ll-hpi.c