summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-11-17 11:26:55 -0800
committerJack Pham <jackp@codeaurora.org>2016-11-23 15:03:14 -0800
commitdd1a207e6ee09ae399ab2abfc9498f23bfb8d9f3 (patch)
tree1299746bc71333179350e4766babfc55cd4c3b9b /fs/jbd2/commit.c
parentd854b01d5525c3cc16149ab1b1dac296e77a5a65 (diff)
usb: pd: Fix VDM and misc timing issues
Decrease the wait time from 5ms to 2ms when preparing a VDM response to ensure that it gets sent out timely within tSenderResponse (15ms). To avoid possible collision with an incoming packet, check that there has not been any queued Rx message just prior to sending a VDM. Also check the result of the transmit and simply try again later if -EBUSY is returned. While at it, fix a couple other miscellaneous timing issues. Setting PD_ACTIVE=1 has considerable delay due to the charger's voting mechanism, so move setting it to after starting the SenderResponse timer when sending the Source Capabilities, and similarly after sending a Request as a sink, in order to make sure response timing is met. For source hard reset, increase the tSrcRecover delay slightly from the spec minimum to account for additional VBUS rise/fall delays before sending PS_RDY. Finally, add a delay for VCONN_SWAP before sending PS_RDY for similar reason. Change-Id: I5760fadb66cad6faf02e95a1e1bb975289ef8e9f Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions