usb-c: tcpc: Correctly detect Hard Reset sent detection
The Hard Reset sent signal was tested twice in the same "if else" structure but only handled in the last test. This change removes the first detection so that Hard Reset can be correctly detected. Signed-off-by: Sam Hurst <sbh1187@gmail.com>
This commit is contained in:
parent
e3365e961d
commit
603ac13145
1 changed files with 1 additions and 1 deletions
|
@ -1135,7 +1135,7 @@ static void ucpd_isr(const struct device *dev_inst[])
|
||||||
*/
|
*/
|
||||||
if (sr & tx_done_mask) {
|
if (sr & tx_done_mask) {
|
||||||
/* Check for tx message complete */
|
/* Check for tx message complete */
|
||||||
if (sr & (UCPD_SR_TXMSGSENT | UCPD_SR_HRSTSENT)) {
|
if (sr & UCPD_SR_TXMSGSENT) {
|
||||||
atomic_set_bit(&info->evt, UCPD_EVT_TX_MSG_SUCCESS);
|
atomic_set_bit(&info->evt, UCPD_EVT_TX_MSG_SUCCESS);
|
||||||
} else if (sr & (UCPD_SR_TXMSGABT | UCPD_SR_TXUND)) {
|
} else if (sr & (UCPD_SR_TXMSGABT | UCPD_SR_TXUND)) {
|
||||||
atomic_set_bit(&info->evt, UCPD_EVT_TX_MSG_FAIL);
|
atomic_set_bit(&info->evt, UCPD_EVT_TX_MSG_FAIL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue