device: support PPPS in parallel with the driver's USB control

Don't make PPPS path exclusive to the driver USB control. Allow both to
be used at the same time in case the setup uses both PPPS-hubs and
driver-specific control.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2025-02-21 19:17:01 +02:00
parent 9335390898
commit bad935cbf2

View File

@@ -285,7 +285,7 @@ void device_usb(struct device *device, bool on)
{
if (device->ppps_path)
ppps_power(device, on);
else if (device_has_control(device, usb))
if (device_has_control(device, usb))
device_control(device, usb, on);
}