mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-27 21:10:28 +09:00
ANDROID: usb: typec: tcpm: Add vendor hook to store partner source capabilities
Add a hook after receiving the source capabilities from the partner
port. Pass the address of the source capability array so that vendor
code is able to access them.
OOT bug:
Bug: 181629276
Bug: 169215197
Bug: 271294543
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I11c4a7919c248690e63c3bfbebfa6b8d711175a6
(cherry picked from commit af7214914a)
This commit is contained in:
committed by
Treehugger Robot
parent
081a88febb
commit
c8314fcb76
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
struct tcpci;
|
||||
struct tcpci_data;
|
||||
struct tcpm_port;
|
||||
|
||||
#ifndef TYPEC_TIMER
|
||||
#define TYPEC_TIMER
|
||||
@@ -41,6 +42,10 @@ DECLARE_HOOK(android_vh_typec_tcpm_get_timer,
|
||||
TP_PROTO(const char *state, enum typec_timer timer, unsigned int *msecs),
|
||||
TP_ARGS(state, timer, msecs));
|
||||
|
||||
DECLARE_HOOK(android_vh_typec_store_partner_src_caps,
|
||||
TP_PROTO(unsigned int *nr_source_caps, u32 (*source_caps)[]),
|
||||
TP_ARGS(nr_source_caps, source_caps));
|
||||
|
||||
#endif /* _TRACE_HOOK_UFSHCD_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
Reference in New Issue
Block a user