Skip to contentSkip to conversation

patch "drivers/usb/typec/tps6598x.c: fix portinfo width" added to usb-testing

PATCH [email protected] 1 participant 1 message Jul 3, 2019

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drivers/usb/typec/tps6598x.c: fix portinfo width

to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-testing branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will be merged to the usb-next branch sometime soon, after it passes testing, and the merge window is open.

If you have any questions about this process, please let me know.

From 05da75fc651138e51ff74ace97174349910463f5 Mon Sep 17 00:00:00 2001
From: Nikolaus Voss <[email protected]>
Date: Fri, 28 Jun 2019 11:01:08 +0200
Subject: drivers/usb/typec/tps6598x.c: fix portinfo width

Portinfo bit field is 3 bits wide, not 2 bits. This led to a wrong driver configuration for some tps6598x configurations.

Fixes 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers")
Cc stable <[email protected]>
---
 drivers/usb/typec/tps6598x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/tps6598x.c +1 -1
index c674abe3cf99..a170c49c2542 100644
@@ -41,7 +41,7 @@
 #define TPS_STATUS_VCONN(s)		(!!((s) & BIT(7)))
 
 /* TPS_REG_SYSTEM_CONF bits */
-#define TPS_SYSCONF_PORTINFO(c)		((c) & 3)
+#define TPS_SYSCONF_PORTINFO(c)		((c) & 7)
 
 enum {
 	TPS_PORTINFO_SINK,
Signature · 1 line
2.22.0