Message ID | 20240925073204.1499240-1-quic_chejiang@quicinc.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v1] device: Remove device after all bearers are disconnected | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | warning | WARNING:TYPO_SPELLING: 'droped' may be misspelled - perhaps 'dropped'? #94: RemoveDevice should be handled after all bearers are droped, ^^^^^^ WARNING:LONG_LINE: line length of 82 exceeds 80 columns #109: FILE: src/device.c:3495: + "RemoveDevice")) { WARNING:LONG_LINE_COMMENT: line length of 84 exceeds 80 columns #111: FILE: src/device.c:3497: + /* Don't handle the RemoveDevice msg if device is connected. WARNING:LONG_LINE_COMMENT: line length of 87 exceeds 80 columns #112: FILE: src/device.c:3498: + * For a dual mode remote, both BR/EDR and BLE may be connected, WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line #112: FILE: src/device.c:3498: + /* Don't handle the RemoveDevice msg if device is connected. + * For a dual mode remote, both BR/EDR and BLE may be connected, WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line #114: FILE: src/device.c:3500: + * disconnects. */ WARNING:LONG_LINE: line length of 88 exceeds 80 columns #115: FILE: src/device.c:3501: + if (device->bredr_state.connected || device->le_state.connected) /github/workspace/src/src/13811736.patch total: 0 errors, 7 warnings, 17 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. /github/workspace/src/src/13811736.patch has style problems, please review. NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/BuildEll | success | Build ELL PASS |
tedd_an/BluezMake | success | Bluez Make PASS |
tedd_an/MakeCheck | success | Bluez Make Check PASS |
tedd_an/MakeDistcheck | success | Make Distcheck PASS |
tedd_an/CheckValgrind | success | Check Valgrind PASS |
tedd_an/CheckSmatch | success | CheckSparse PASS |
tedd_an/bluezmakeextell | success | Make External ELL PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
tedd_an/ScanBuild | success | Scan Build PASS |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=892676 ---Test result--- Test Summary: CheckPatch FAIL 0.71 seconds GitLint PASS 0.32 seconds BuildEll PASS 24.18 seconds BluezMake PASS 1590.90 seconds MakeCheck PASS 12.94 seconds MakeDistcheck PASS 176.77 seconds CheckValgrind PASS 249.60 seconds CheckSmatch PASS 349.54 seconds bluezmakeextell PASS 117.92 seconds IncrementalBuild PASS 1470.89 seconds ScanBuild PASS 1042.01 seconds Details ############################## Test: CheckPatch - FAIL Desc: Run checkpatch.pl script Output: [v1] device: Remove device after all bearers are disconnected WARNING:TYPO_SPELLING: 'droped' may be misspelled - perhaps 'dropped'? #94: RemoveDevice should be handled after all bearers are droped, ^^^^^^ WARNING:LONG_LINE: line length of 82 exceeds 80 columns #109: FILE: src/device.c:3495: + "RemoveDevice")) { WARNING:LONG_LINE_COMMENT: line length of 84 exceeds 80 columns #111: FILE: src/device.c:3497: + /* Don't handle the RemoveDevice msg if device is connected. WARNING:LONG_LINE_COMMENT: line length of 87 exceeds 80 columns #112: FILE: src/device.c:3498: + * For a dual mode remote, both BR/EDR and BLE may be connected, WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line #112: FILE: src/device.c:3498: + /* Don't handle the RemoveDevice msg if device is connected. + * For a dual mode remote, both BR/EDR and BLE may be connected, WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line #114: FILE: src/device.c:3500: + * disconnects. */ WARNING:LONG_LINE: line length of 88 exceeds 80 columns #115: FILE: src/device.c:3501: + if (device->bredr_state.connected || device->le_state.connected) /github/workspace/src/src/13811736.patch total: 0 errors, 7 warnings, 17 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. /github/workspace/src/src/13811736.patch has style problems, please review. NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. --- Regards, Linux Bluetooth
diff --git a/src/device.c b/src/device.c index f8f61e643..b440b6b51 100644 --- a/src/device.c +++ b/src/device.c @@ -3492,8 +3492,16 @@ void device_remove_connection(struct btd_device *device, uint8_t bdaddr_type, DBusMessage *msg = device->disconnects->data; if (dbus_message_is_method_call(msg, ADAPTER_INTERFACE, - "RemoveDevice")) + "RemoveDevice")) { + + /* Don't handle the RemoveDevice msg if device is connected. + * For a dual mode remote, both BR/EDR and BLE may be connected, + * RemoveDevice should be handled after all bearers are + * disconnects. */ + if (device->bredr_state.connected || device->le_state.connected) + break; remove_device = true; + } g_dbus_send_reply(dbus_conn, msg, DBUS_TYPE_INVALID); device->disconnects = g_slist_remove(device->disconnects, msg);