All of lore.kernel.org
 help / color / mirror / Atom feed
* usb typec not doing handling in-kernel
@ 2018-08-13 10:36 Heiko Stuebner
  2018-08-13 12:29 ` Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Heiko Stuebner @ 2018-08-13 10:36 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck

Hi,

I'm currently trying to wrap my head around the new typec subsystem and
also how to do it correctly on Rockchip rk3399 devices.

The issue (and Guenter might know quite a bit about that) is that on
ChromeOS devices the embedded controller hides the whole tcpm/vdm
logic from the operating system and just provides a custom interface to
query things like cable state, display-port hotplug status and so on.

So right now the rk3399-typec-phy uses that extcon-based interface to
get all status changes but that of course leaves out all systems directly
talking to a fusb302. I did a small drawing to showcase that:

-------------    ------------------
| typec-phy |----| extcon-cros-ec |\
-------------    ------------------ \
     |        \                      \
-------------  \ ------------------   \ -----------
|  cdn-dp   |   \|     ?????      |-----| fusb302 |
-------------    ------------------     -----------

So to bring everything on the same page, I guess the cros-ec extcon
(drivers/extcon/extcon-usbc-cros-ec.c) should somehow use the typec
functions instead of implementing an extcon? But from reading into the
typec code, it somehow looks like the typec framework expects to be in
control of things like altmode negotiations, or am I misreading something?


Thanks
Heiko

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-24  6:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 10:36 usb typec not doing handling in-kernel Heiko Stuebner
2018-08-13 12:29 ` Guenter Roeck
     [not found]   ` <6e3e7449-1957-e98d-c186-97d960e06c09-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2018-09-20  8:21     ` Heiko Stuebner
2018-09-20 20:49       ` Guenter Roeck
2018-08-13 13:36 ` Heikki Krogerus
     [not found]   ` <20180813133637.GA25757-FZxXFokcWpatqXYlAKuG4QC/G2K4zDHf@public.gmane.org>
2018-08-14 13:58     ` Heiko Stuebner
2018-08-15 14:46       ` Heikki Krogerus
     [not found]         ` <20180815144636.GB25757-FZxXFokcWpatqXYlAKuG4QC/G2K4zDHf@public.gmane.org>
2018-10-23 13:49           ` Heiko Stuebner
2018-10-24  6:49             ` Heikki Krogerus
2018-08-13 20:20 ` Alexandru M Stan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.