Re: Display Alt mode with TPS6598x driver
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Date: 2021-01-08 07:34:36
Hi, On Mon, Dec 28, 2020 at 07:37:11PM +0530, Shah, Nehal-bakulchandra wrote:
On 11/26/2020 9:48 PM, Shah, Nehal-bakulchandra wrote:quoted
On 11/26/2020 5:47 PM, Heikki Krogerus wrote:quoted
On Wed, Nov 25, 2020 at 08:51:24PM +0530, Shah, Nehal-bakulchandra wrote:quoted
Hi Heikki, I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver . Can you help me to understand how to achieve this?You should be able to get an idea how to achieve that for example by checking how we did it for UCSI: drivers/usb/typec/ucsi/displayport.c I think you should start by first only registering the alternate mode without any control. That way you should not need to deal with anything else except the DP SID Status register. After that we can add control as the next step. If you need more help, let me know. Br,Thanks for the input. I will have a look. regards NehalI am not able to understand who will trigger ucsi_displayport_exit ? for enter mode , i understood it goes through vdm statemachine. But how exit is getting triggered?.
ucsi_displayport_exit() ends up being called when the displayport altmode driver (drivers/usb/typec/altmodes/displayport.c) executes typec_altmode_exit(). Br, -- heikki