Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

USB: typec: tps6598x: Add patch mode to tps6598x

TPS25750 has a patch mode indicating the device requires
a configuration to get the device into operational mode

Signed-off-by: Abdel Alkuor <abdelalkuor@geotab.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231003155842.57313-4-alkuor@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Abdel Alkuor and committed by
Greg Kroah-Hartman
c5e95ec3 6ab6ad09

+3
+3
drivers/usb/typec/tipd/core.c
··· 68 68 TPS_MODE_BOOT, 69 69 TPS_MODE_BIST, 70 70 TPS_MODE_DISC, 71 + TPS_MODE_PTCH, 71 72 }; 72 73 73 74 static const char *const modes[] = { ··· 76 75 [TPS_MODE_BOOT] = "BOOT", 77 76 [TPS_MODE_BIST] = "BIST", 78 77 [TPS_MODE_DISC] = "DISC", 78 + [TPS_MODE_PTCH] = "PTCH", 79 79 }; 80 80 81 81 /* Unrecognized commands will be replaced with "!CMD" */ ··· 597 595 598 596 switch (match_string(modes, ARRAY_SIZE(modes), mode)) { 599 597 case TPS_MODE_APP: 598 + case TPS_MODE_PTCH: 600 599 return 0; 601 600 case TPS_MODE_BOOT: 602 601 dev_warn(tps->dev, "dead-battery condition\n");