[PATCH v2 0/1] device: Fix device recreation after failed restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



During S4 suspend/resume stress testing, I observed that some paired
devices disappeared after system resume. This happened because
adapter_create_device() skipped restoring from storage, even if the 
initial restore had failed.

My desktop application treats temporary and paired devices differently,
so the disappearance of paired devices led to a poor user experience.
I believe this is a valid issue that should be addressed.

This patch introduces a list of pending restore addresses. When a
device in this list is created, it will be reloaded from storage to
ensure pairing information is properly restored.

Changes since v1:
- Fix code formatting (checkpatch.pl warnings)
- Align logic with BlueZ's existing restore pattern
- Fix a bug in list handling that could cause double-free

Please review ,thanks.

xinpeng.wang (1):
  device: Recreate paired device from storage after failed restore

 src/adapter.c | 113 ++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 101 insertions(+), 12 deletions(-)

-- 
2.20.1





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux