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

phy-sun4i-usb: Warn when external vbus is detected

Warn when external vbus is detected when we're trying to enable our
own vbus.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Hans de Goede and committed by
Kishon Vijay Abraham I
91d6e3b6 6ba43c29

+3 -1
+3 -1
drivers/phy/phy-sun4i-usb.c
··· 390 390 391 391 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ 392 392 if (phy->index == 0 && sun4i_usb_phy0_have_vbus_det(data) && 393 - data->vbus_det) 393 + data->vbus_det) { 394 + dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n"); 394 395 return 0; 396 + } 395 397 396 398 ret = regulator_enable(phy->vbus); 397 399 if (ret)