mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "usb: typec: ucsi: check partner changed flag during notification"
This commit is contained in:
commit
13bc62c871
1 changed files with 7 additions and 0 deletions
|
|
@ -370,6 +370,13 @@ static void ucsi_qti_notify(struct ucsi_dev *udev, unsigned int offset,
|
|||
mutex_unlock(&udev->notify_lock);
|
||||
|
||||
if (cmd_requested && offset == UCSI_MESSAGE_IN) {
|
||||
/*
|
||||
* when Connector Partner Type or Flags changes,
|
||||
* Connector Partner Changed bit shall be set.
|
||||
*/
|
||||
if (!(status->change & UCSI_CONSTAT_PARTNER_CHANGE))
|
||||
return;
|
||||
|
||||
cancel_work_sync(&udev->notify_work);
|
||||
|
||||
udev->constat_info.partner_usb = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue