On Tue, Dec 12, 2023 at 10:03 AM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote: > > Dear Heikki, > > > Thank you for your reply. > > Am 21.11.23 um 14:59 schrieb Heikki Krogerus: > > > On Tue, Nov 21, 2023 at 12:30:34AM +0100, Paul Menzel wrote: > >> To test a USB Type-C port for conformance to the specification, is it > >> possible to connect two Linux devices using a USB Type-C cable, and run some > >> programs on each?US > >> > >> (I started using a Dell XPS 13 9360 from 2016, and sometimes experience > >> troubles with USB Type-C adapters/port replicators and want to verify that > >> the USB Type-C port works according to the specification.) > > > > Unfortunately USB Type-C is handled in firmware on those computers. We > > can only query the status of some basic things using an interface > > called UCSI, but most details are completely hidden from the > > operating system. > > Interesting. Although now not necessary Linux kernel related, there > should be such test frameworks to test such a port “for compliance”. Can > you recommend the one you or Intel are using? > You could use this debugfs infra to test PD Controller flows between two systems: https://www.spinics.net/lists/linux-usb/msg244979.html We also have a wrapper for this debugfs here : https://github.com/Rajaram-Regupathy/libtypec/commit/ac3e1d07e3bae338fdb73e2bfd3151f5a9a09a57 > > There have been a lot of problems with the UCSI interface on older XPS > > 13 and Latitude systems. Some of those problems have a workaround in > > the driver, but not everything. > > Do you know, how Microsoft Windows handles these problems? Also with quirks? > > > Kind regards, > > Paul >