[patch] usb: typec: ucsi: Handle UNDEFINED error for cable alt mode queries

This will eliminate this errors on framework hardware:

kernel: ucsi_acpi USBC000:00: unknown error 0
kernel: ucsi_acpi USBC000:00: GET_CABLE_PROPERTY failed (-5)
kernel: ucsi_acpi USBC000:00: unknown error 256
kernel: ucsi_acpi USBC000:00: GET_CABLE_PROPERTY failed (-5)

Solution: Blacklist UCSI Modules

Create /etc/modprobe.d/blacklist-ucsi.conf:

blacklist ucsi_acpi
blacklist typec_ucsi

FWIW that commit only demotes the dev_err to dev_dbg for one specific case: GET_ALTERNATE_MODES returning UCSI_ERROR_UNDEFINED against a passive cable (recipient SOP’/SOP’'). It doesn’t touch GET_CABLE_PROPERTY and doesn’t change any behavior, so even if it were upstream it wouldn’t help with the functional issues some of us are hitting here.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.