Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b7dec8b7 authored by Jack Pham's avatar Jack Pham
Browse files

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: default avatarJack Pham <jackp@codeaurora.org>
parent 385dbf30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment