Commit 0d0a87a
Desnes Nunes
usb: typec: tcpm: apply vbus before data bringup in tcpm_src_attach
JIRA: https://issues.redhat.com/browse/RHEL-116007
commit bec1519
Author: RD Babiera <rdbabiera@google.com>
Date: Wed, 18 Jun 2025 23:06:04 +0000
This patch fixes Type-C compliance test TD 4.7.6 - Try.SNK DRP Connect
SNKAS.
tVbusON has a limit of 275ms when entering SRC_ATTACHED. Compliance
testers can interpret the TryWait.Src to Attached.Src transition after
Try.Snk as being in Attached.Src the entire time, so ~170ms is lost
to the debounce timer.
Setting the data role can be a costly operation in host mode, and when
completed after 100ms can cause Type-C compliance test check TD 4.7.5.V.4
to fail.
Turn VBUS on before tcpm_set_roles to meet timing requirement.
Fixes: f0690a2 ("staging: typec: USB Type-C Port Manager (tcpm)")
Cc: stable <stable@kernel.org>
Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250618230606.3272497-2-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Desnes Nunes <desnesn@redhat.com>1 parent 2571e4a commit 0d0a87a
1 file changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4410 | 4410 | | |
4411 | 4411 | | |
4412 | 4412 | | |
4413 | | - | |
4414 | | - | |
4415 | | - | |
4416 | | - | |
4417 | | - | |
4418 | | - | |
4419 | | - | |
4420 | | - | |
4421 | | - | |
4422 | | - | |
4423 | | - | |
4424 | 4413 | | |
4425 | 4414 | | |
4426 | 4415 | | |
| |||
4430 | 4419 | | |
4431 | 4420 | | |
4432 | 4421 | | |
4433 | | - | |
| 4422 | + | |
4434 | 4423 | | |
4435 | 4424 | | |
4436 | 4425 | | |
4437 | 4426 | | |
4438 | 4427 | | |
4439 | 4428 | | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
4440 | 4440 | | |
4441 | 4441 | | |
4442 | 4442 | | |
| |||
4447 | 4447 | | |
4448 | 4448 | | |
4449 | 4449 | | |
4450 | | - | |
4451 | | - | |
4452 | | - | |
4453 | | - | |
4454 | | - | |
4455 | 4450 | | |
4456 | 4451 | | |
4457 | 4452 | | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
4458 | 4458 | | |
4459 | 4459 | | |
4460 | 4460 | | |
| |||
0 commit comments