Message ID | 20250107203056.1470303-1-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] input: Switch back to kernel hidp if uhid cannot be initialized | expand |
diff --git a/profiles/input/device.c b/profiles/input/device.c index 8cf8e5ea78e1..3627573e79c8 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -1527,9 +1527,9 @@ int input_device_register(struct btd_service *service) if (uhid_state) { idev->uhid = bt_uhid_new_default(); if (!idev->uhid) { - error("bt_uhid_new_default: failed"); - input_device_free(idev); - return -EIO; + DBG("bt_uhid_new_default failed, switching to kernel " + "mode"); + uhid_state = UHID_DISABLED; } }
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> If bt_uhid_new_default doesn't work it is likely that the underline kernel doesn't support it so this attempts to switch back to kernel mode (hidp). --- profiles/input/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)