OSDN Git Service

usb: pd: Add vendor defined message handling
authorJack Pham <jackp@codeaurora.org>
Tue, 12 Jul 2016 23:01:07 +0000 (16:01 -0700)
committerJack Pham <jackp@codeaurora.org>
Mon, 25 Jul 2016 23:18:11 +0000 (16:18 -0700)
commit34d404c41995fa63340fbe819a09558ffb1ceda9
tree5e86c2cd354ab0d740e9fd718867ae6b26091617
parent7eb20e5733b82473d2d1e9e59aa42989e73f3c70
usb: pd: Add vendor defined message handling

Add APIs to send and receive vendor defined messages (VDM) over
USB PD. A handler for a standard or vendor ID (SVID) can register
callbacks to be notified of reception of VDM messages. One
use case is for another kernel driver, such as DisplayPort, to be
able to be notified when an Alternate Mode adapter is connected
to the Type-C port in order to enter modal operation. SVID
handlers should maintain their own state and timer resources
in order to comply with the Power Delivery Specification.

Change-Id: Ibe26e6deeca587f21f8121f6f32cf7cc0a5c3e23
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
drivers/usb/pd/policy_engine.c
include/linux/usb/usbpd.h [new file with mode: 0644]