commit | 564b41724ef3ac24f55bda9d6edcf32241e0ac46 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Wed May 24 18:41:53 2017 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Thu Jun 08 17:35:45 2017 -0700 |
tree | 459abc1879b81b5718372ddf99de795daa9f6adb | |
parent | 684a7b030d05b2924fcc66a2cd51293e49e638ae [diff] |
usb: pd: Rerun usbpd_sm if RX queue is not empty Upon receiving a PD message the state machine is queued to act on it. However, if another message is received quickly before usbpd_sm is scheduled, it will only process the first message. Add a check if the RX queue is not empty in order to drain the messages properly. Change-Id: Ie9e079a51a5740024c9a1be5ba27b3edacf9b2df Signed-off-by: Jack Pham <jackp@codeaurora.org>