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

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

usb: pd: Update uevent parameters during hard reset



Ensure that a few of the parameters (SELECTED_PDO, REQUESTED_PDO,
RDO) are properly cleared out during hard reset and a uevent
update is sent to notify userspace clients.

Also, don't reset src_cap_id upon disconnect. This makes it a
a monotonically increasing value upon every connection so that
clients can distinguish when a new PD session is established.
Demote it to a u16 in order to have a smaller wraparound (65535).

Change-Id: I622ad1155b3680d3f616d5e9a835d4c6cbca3636
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent af7d3841
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