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

usb: typec: Ensure USB_ROLE_SWITCH is set as a dependency for tps6598x

When I switched on USB role switching for the tps6598x I completely forgot
to add the Kconfig dependency.

Ensure USB_ROLE_SWITCH is selected to prevent the typs6598x driver being
compiled in but the role-switch driver being compiled as a module, leading
to link error.

Suggested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200520153617.610909-1-bryan.odonoghue@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bryan O'Donoghue and committed by
Greg Kroah-Hartman
e9ccc35b d4929202

+2 -1
+2 -1
drivers/usb/typec/Kconfig
··· 64 64 config TYPEC_TPS6598X 65 65 tristate "TI TPS6598x USB Power Delivery controller driver" 66 66 depends on I2C 67 - select REGMAP_I2C 67 + depends on REGMAP_I2C 68 + depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH 68 69 help 69 70 Say Y or M here if your system has TI TPS65982 or TPS65983 USB Power 70 71 Delivery controller.