usb: pd: qpnp-pdphy: Switch to hrtimer-based wait
Currently wait_event_interruptible_timeout() is used when
sending a message or hard reset signal to wait for a completion
interrupt. However, the jiffies-based timer is not accurate for
the short timeout durations used (15ms TX, 5ms hard reset) and
can result in timing out too early. Switch to hrtimer-based
wait_event_interruptible_hrtimeout() for better accuracy.
Change-Id: I1c9866114b548ce849ec6002c0eb1362ac9a7786
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment