From 88ce57ae4ec97a08d1d3d20589880c7c396e36d7 Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Thu, 4 May 2023 18:01:12 -0700 Subject: [PATCH] sm8550-common: ueventd: Modify USB root hub authorize setting Change the ownership of the authorize file to allow the USB bus reset audio recovery mechanism in the USB HAL to work. This only modifies the ownership of the USB root hubs that are present on the system. For all other connected devices, the default ownership is fine, as the recovery is only allowed on direct connection to the USB root hub. Change-Id: Idbce78b52054f75c09891aa1c1c827dda60f1d0a --- init/ueventd.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/ueventd.qcom.rc b/init/ueventd.qcom.rc index a5980c5..e70d9d2 100644 --- a/init/ueventd.qcom.rc +++ b/init/ueventd.qcom.rc @@ -484,6 +484,9 @@ subsystem mem_buf_vm /sys/bus/usb/devices/* power/control 0660 system usb /sys/bus/usb/devices/* power/wakeup 0660 system usb +#USB root hub authorize setting +/sys/bus/usb/devices/usb* authorized 0660 system usb + #Memory Offline /sys/devices/system/memory/memory* state 0660 system system