usb: typec: tps6598x: Add trace event for status register
authorGuido Günther <agx@sigxcpu.org>
Mon, 15 Feb 2021 11:46:43 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:14 +0000 (09:37 +0100)
commit02a9ada7eb8830523d5feea4509f413cf8d0e333
treee3099af6df9c034cd13efebacfb9c2bf763541ea
parent95cd85a9d493c34e70e97736f859316d52c7bd61
usb: typec: tps6598x: Add trace event for status register

This allows to trace status information which helps to debug problems
with role switching, etc.

We don't use the generic FIELD_GET() to reduce the macro size since we
otherwise trip up sparse.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Link: https://lore.kernel.org/r/d24742be3c98382cbef17047f3eecf0f7d807f31.1613389531.git.agx@sigxcpu.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tps6598x.c
drivers/usb/typec/tps6598x.h
drivers/usb/typec/tps6598x_trace.h