|
|
311d97 |
From 2922440e42230d3d1b63397e99efa331f499c755 Mon Sep 17 00:00:00 2001
|
|
|
311d97 |
From: John Keeping <john@metanate.com>
|
|
|
311d97 |
Date: Tue, 12 Nov 2019 14:01:40 +0000
|
|
|
311d97 |
Subject: [PATCH 05/10] linux_udev: silently ignore "bind" action
|
|
|
311d97 |
|
|
|
311d97 |
When a driver is bound to a device, udev emits a "bind" action that
|
|
|
311d97 |
causes libusb to log an error message:
|
|
|
311d97 |
|
|
|
311d97 |
libusb: error [udev_hotplug_event] ignoring udev action bind
|
|
|
311d97 |
|
|
|
311d97 |
Since we know this action is not relevant for libusb, silently ignore it
|
|
|
311d97 |
to avoid people thinking there is something wrong.
|
|
|
311d97 |
|
|
|
311d97 |
There is already a debug log entry for the action, so there is no need
|
|
|
311d97 |
to add a duplicate here.
|
|
|
311d97 |
|
|
|
311d97 |
Signed-off-by: John Keeping <john@metanate.com>
|
|
|
311d97 |
(cherry picked from commit f20f2be7825e34b5273af17fc0740c60bd352b32)
|
|
|
311d97 |
---
|
|
|
311d97 |
libusb/os/linux_udev.c | 2 ++
|
|
|
311d97 |
libusb/version_nano.h | 2 +-
|
|
|
311d97 |
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
311d97 |
|
|
|
311d97 |
diff --git a/libusb/os/linux_udev.c b/libusb/os/linux_udev.c
|
|
|
311d97 |
index bea03e3..b09d299 100644
|
|
|
311d97 |
--- a/libusb/os/linux_udev.c
|
|
|
311d97 |
+++ b/libusb/os/linux_udev.c
|
|
|
311d97 |
@@ -262,6 +262,8 @@ static void udev_hotplug_event(struct udev_device* udev_dev)
|
|
|
311d97 |
linux_hotplug_enumerate(busnum, devaddr, sys_name);
|
|
|
311d97 |
} else if (detached) {
|
|
|
311d97 |
linux_device_disconnected(busnum, devaddr);
|
|
|
311d97 |
+ } else if (strncmp(udev_action, "bind", 4) == 0) {
|
|
|
311d97 |
+ /* silently ignore "known unhandled" action */
|
|
|
311d97 |
} else {
|
|
|
311d97 |
usbi_err(NULL, "ignoring udev action %s", udev_action);
|
|
|
311d97 |
}
|
|
|
311d97 |
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
|
|
|
311d97 |
index 41a03d1..1764dec 100644
|
|
|
311d97 |
--- a/libusb/version_nano.h
|
|
|
311d97 |
+++ b/libusb/version_nano.h
|
|
|
311d97 |
@@ -1 +1 @@
|
|
|
311d97 |
-#define LIBUSB_NANO 11412
|
|
|
311d97 |
+#define LIBUSB_NANO 11413
|
|
|
311d97 |
--
|
|
|
311d97 |
2.26.1
|
|
|
311d97 |
|