public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dgilbert@interlog.com>
To: Yaroslav Isakov <yaroslav.isakov@gmail.com>, linux-usb@vger.kernel.org
Subject: Re: type-c subsystem is empty on Thinkpad T14 Gen 4 AMD
Date: Sun, 17 Dec 2023 12:08:49 -0500	[thread overview]
Message-ID: <520bd89d-b6e4-4654-adcd-8bb884802f56@interlog.com> (raw)
In-Reply-To: <CADS+iDWFVZp81Ck48wQjzh--n_7Z-bV2u0SR4Z6-OZOMBLeMKw@mail.gmail.com>

On 12/17/23 11:21, Yaroslav Isakov wrote:
> Hello! I recently bought Thinkpad T14 Gen 4 AMD laptop, and I
> installed Gentoo on it, with kernel 6.6.4.
> 
> Even though type-c ports seems to be working (I checked usb3 flash
> stick, lenovo charger, Jabra headset, Yubikey), I cannot see any
> devices in /sys/class/(typec,typec_mux,usb_power_delivery).
> 
> There are no messages in dmesg at all, mentioning typec. I can see
> that modules typec_ucsi, ucsi_acpi, thunderbolt are loaded. I can see
> that device TYPEC000 is present on acpi bus, there are files in
> /sys/bus/acpi/devices/USBC000:00, but, there is no driver linked in
> it.
> 
> I tried to recompile module ucsi_acpi, with adding { "USBC000", 0 }
> to ucsi_acpi_match, but it did not change anything (except that in
> modinfo of this module, USBC000 is now seen.
> 
> I tried to decompile SSDT1 table, which has definition of USBC, but
> there is nothing in it, which is supicious.
> 
> What else can I check, to understand, why can't I see anything in
> typec/PD subsystems?
> 

I have a X13 Gen 3 [i5-1240P] which is about 18 months old. Everything you
mention is present plus the typec ports and the associated pd objects:

$ lsucpd
  port0 [pd0]  <<====  partner [pd2]
  port1 [pd1]  <

A power adapter is connected to port0. Here are the modules loaded:

$ lsmod | grep typec
typec_ucsi             57344  1 ucsi_acpi
roles                  16384  1 typec_ucsi
typec                 114688  1 typec_ucsi
usb_common             20480  4 xhci_hcd,usbcore,uvcvideo,typec_ucsi
$ lsmod | grep ucsi
ucsi_acpi              12288  0
typec_ucsi             57344  1 ucsi_acpi
roles                  16384  1 typec_ucsi
typec                 114688  1 typec_ucsi
usb_common             20480  4 xhci_hcd,usbcore,uvcvideo,typec_ucsi

$ ls /sys/bus/acpi/devices/USBC000:00
device:ac  device:ad  hid  modalias  path  physical_node  power  status 
subsystem  uevent  uid  wakeup

Strange that the Thunderbolt module is loaded since I thought only the Intel
variants supported Thunderbolt.

The only thing that I can think of is some BIOS setting. When I poked around
in the X13 BIOS I don't remember any setting that would cause what you are
seeing.]

Doug Gilbert

  reply	other threads:[~2023-12-17 17:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-17 16:21 type-c subsystem is empty on Thinkpad T14 Gen 4 AMD Yaroslav Isakov
2023-12-17 17:08 ` Douglas Gilbert [this message]
2023-12-17 17:24   ` Yaroslav Isakov
2023-12-17 19:15     ` Douglas Gilbert
2023-12-17 20:48       ` Yaroslav Isakov
2023-12-17 21:25         ` Yaroslav Isakov
2023-12-18  3:46           ` Douglas Gilbert
2023-12-18 17:45             ` Yaroslav Isakov
2023-12-19 10:02               ` Heikki Krogerus
2024-02-22 14:30                 ` Mark Pearson
2024-03-18 18:48                   ` Mark Pearson
2024-03-18 19:22                     ` Yaroslav Isakov
2024-03-18 19:42                       ` Mark Pearson
2024-03-20 18:38                         ` Yaroslav Isakov
2024-06-11 12:38                           ` Mark Pearson
2024-06-11 12:45                             ` Yaroslav Isakov
2024-06-11 13:46                               ` Mark Pearson
2024-06-11 14:02                                 ` Yaroslav Isakov
2024-08-04 11:10                                   ` Yaroslav Isakov
2024-02-23 15:23 ` Roland Ruckerbauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=520bd89d-b6e4-4654-adcd-8bb884802f56@interlog.com \
    --to=dgilbert@interlog.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=yaroslav.isakov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox