]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Add check for UCSI version
authorVenkat Jayaraman <venkat.jayaraman@intel.com>
Fri, 5 Sep 2025 18:44:01 +0000 (11:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:24:10 +0000 (15:24 +0200)
commit1bc28f015a19a10b7a305fc561c1143c34a1e04a
tree37ef0e3ad6ebf578a46dcf31e6968ca63219b176
parent87c5ff5615dc0a37167e8faf3adeeddc6f1344a3
usb: typec: ucsi: Add check for UCSI version

"Power Reading" bit is introduced in UCSI v2.1 and so limit the
check for that bit only if version supported is 2.1 or above.

Fixes: c851b71fd6cd ("usb: typec: ucsi: Add support for READ_POWER_LEVEL command")
Signed-off-by: Venkat Jayaraman <venkat.jayaraman@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250905184401.3222530-1-venkat.jayaraman@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c