From bad935cbf2b0f7d7dd0e025dda98c2f7ed61538b Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Fri, 21 Feb 2025 19:17:01 +0200 Subject: [PATCH] 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 --- device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.c b/device.c index 79856bb..6d15ad5 100644 --- a/device.c +++ b/device.c @@ -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); }