Skip to contentSkip to conversation

usb: typec: displayport: Export probe and remove functions

PATCH Superseded Heikki Krogerus 1 participant 1 message Apr 16, 2019 USB

lore
Share & tools
lore
#0 lore raw

PATCH v2 6/7 usb: typec: displayport: Export probe and remove functions

Quoted 28 lines · Ajay Gupta

Hi Heikki,

Quoted 26 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Heikki Krogerus
Sent: Monday, April 15, 2019 5:10 AM
To: Greg Kroah-Hartman <[email protected]>
Cc: Ajay Gupta <[email protected]>; [email protected]
Subject: [PATCH v2 6/7] usb: typec: displayport: Export probe and remove functions

From: Ajay Gupta <[email protected]>

VirtualLink standard extends the DisplayPort Alt Mode by utilizing also the USB 2 pins on the USB Type-C connector.
It uses the same messages as DisplayPort, but not the DP SVID. At the time of writing, USB IF has not assigned a Standard ID (SID) for VirtualLink, so the manufacturers of VirtualLink adapters use their Vendor IDs as the SVID.

Since the SVID specific communication is exactly the same as with DisplayPort alternate mode, there is no need to implement separate driver for VirtualLink. We'll handle the current VirtualLink adapters with probe drivers, and once there is SVID assigned for it, we add it to the displayport alt mode driver.

To support probing drivers, exporting the probe and remove functions, and also changing the DP_HEADER helper macro to use the SVID of the alternate mode device instead of the DisplayPort alt mode SVID.

Quoted 8 lines
Quoted 6 lines
---
 drivers/usb/typec/altmodes/displayport.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Looks like you missed adding displayport.h file. It is available in original patch below,
https://marc.info/?l=linux-usb&m=155492587224379&w=2

That's the one I picked, and I did compile the driver as well.. I'm not sure what I've done, but I'll resend the series.

Sorry for the hassle.

thanks,