usb: typec: ucsi_glink: add a debug log in ucsi_qti_notify_work()

Add a debug log to print the partner accessory information from
connector status notifications from PPM that are being notified
to the clients. This is useful for debugging.

Change-Id: I84bcba5088fae33989a462c618ede72b4efbe1b2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-06-29 09:28:30 -07:00 committed by Subbaraman Narayanamurthy
parent fb407a3f0e
commit 1f384881ea

View File

@ -394,6 +394,12 @@ static void ucsi_qti_notify_work(struct work_struct *work)
struct constat_info_entry, node);
list_del(&entry->node);
mutex_unlock(&udev->notify_lock);
pr_debug("acc: %d usb: %d alt_mode: %d change: %d connect: %d\n",
entry->constat_info.acc,
entry->constat_info.partner_usb,
entry->constat_info.partner_alternate_mode,
entry->constat_info.partner_change,
entry->constat_info.connect);
raw_notifier_call_chain(&ucsi_glink_notifier,
0, &entry->constat_info);
kfree(entry);