All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] device: Clear only the pending flags that have been applied
@ 2025-01-29 17:22 Ludovico de Nittis
  2025-01-29 18:32 ` [BlueZ] " bluez.test.bot
  2025-01-30 17:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Ludovico de Nittis @ 2025-01-29 17:22 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Ludovico de Nittis

When executing `btd_device_flags_changed()`, `dev->pending_flags` may
hold additional queued flag changes.

Instead of completely clearing out `dev->pending_flags`, we should only
remove the bits that have been actually applied and leaving the rest as
pending.
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index e8bff718c..17d023a61 100644
--- a/src/device.c
+++ b/src/device.c
@@ -7413,7 +7413,7 @@ void btd_device_flags_changed(struct btd_device *dev, uint32_t supported_flags,
 
 	dev->supported_flags = supported_flags;
 	dev->current_flags = current_flags;
-	dev->pending_flags = 0;
+	dev->pending_flags &= ~current_flags;
 
 	if (!changed_flags)
 		return;
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ] device: Clear only the pending flags that have been applied
  2025-01-29 17:22 [PATCH BlueZ] device: Clear only the pending flags that have been applied Ludovico de Nittis
@ 2025-01-29 18:32 ` bluez.test.bot
  2025-01-30 17:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-01-29 18:32 UTC (permalink / raw)
  To: linux-bluetooth, ludovico.denittis

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

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=929127

---Test result---

Test Summary:
CheckPatch                    PENDING   0.21 seconds
GitLint                       PENDING   0.20 seconds
BuildEll                      PASS      20.84 seconds
BluezMake                     PASS      1535.06 seconds
MakeCheck                     PASS      12.86 seconds
MakeDistcheck                 PASS      159.47 seconds
CheckValgrind                 PASS      215.01 seconds
CheckSmatch                   PASS      272.19 seconds
bluezmakeextell               PASS      98.41 seconds
IncrementalBuild              PENDING   0.30 seconds
ScanBuild                     PASS      899.80 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ] device: Clear only the pending flags that have been applied
  2025-01-29 17:22 [PATCH BlueZ] device: Clear only the pending flags that have been applied Ludovico de Nittis
  2025-01-29 18:32 ` [BlueZ] " bluez.test.bot
@ 2025-01-30 17:30 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-01-30 17:30 UTC (permalink / raw)
  To: Ludovico de Nittis; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed, 29 Jan 2025 18:22:31 +0100 you wrote:
> When executing `btd_device_flags_changed()`, `dev->pending_flags` may
> hold additional queued flag changes.
> 
> Instead of completely clearing out `dev->pending_flags`, we should only
> remove the bits that have been actually applied and leaving the rest as
> pending.
> 
> [...]

Here is the summary with links:
  - [BlueZ] device: Clear only the pending flags that have been applied
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f0d0266acd9d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-30 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29 17:22 [PATCH BlueZ] device: Clear only the pending flags that have been applied Ludovico de Nittis
2025-01-29 18:32 ` [BlueZ] " bluez.test.bot
2025-01-30 17:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.