Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1448840rwd; Wed, 31 May 2023 14:14:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ580RiJOyDdRHfTgMFnfOSmprt7waupi2uXvsyHCyUFa/I7LjesmpibZ+rSqHpLgE2g8zCc X-Received: by 2002:a05:6808:2005:b0:398:5e04:a64f with SMTP id q5-20020a056808200500b003985e04a64fmr5565322oiw.44.1685567689239; Wed, 31 May 2023 14:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685567689; cv=none; d=google.com; s=arc-20160816; b=vWolOaWp7VljyJluIRo52BFptIh9IYzqyzL5pyzcanQ6R90+SpcuVuC3y2teNI5vkx CNo94bkRA6Wx8DQieTimnPgRiopzdKUMSFSVmAY4Z+h0BZKUJGEl7B4yD7AAOfG6KKwb utnLZg3FAt9QroBpa2jL2vnKItPL6PCaV8MEoCSWf3rimKVjTEZppQuiLpUu6F8bVlDo ytT1n7ZfUMsFY99LiM/Zf6GP+53bBRr+RZCOIsHSFZtXUc2H4BhF3MkDG8JYdSdAb42I eodjJNXNWR/B3UwSOko/ErSLI11APQIivTzlA9b70GpUWN7IZ1S0uyCsf4WxVkgAIFj/ NjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UArfs/WKLJhfdJNJRjQjVcxFbRszy80iT15xUXOlilc=; b=N/Z7ssNwjxpOr/RBoZ0KYp9e3azVAv5lGdUCEGU4h9HPc7gqbr+AhQdrWXeKZn6+Iz VWpzkNyL0KcmQymSd/lt9/W8vCLBg/rXJXM72RdJQ5J/dFrZV67jge55v9duP7Cx0mIS GLzxx6x6Bh9D/AVmurCoILrVhdinjqLnqVb8j/FZiTsjFInJ6Sb+Zon/0XuXIi46Lftc mYFtISiKf871Mnm/KBYLWzGmJtALuJ+vCcfekDrCyQi9iGvu/r7J4Wq59Eq9/vx3qFE5 IpBlP33vRicrpRmToOhnJQKmus8N0DQHxBeAZLQV6ZHct6mGCTWCxAutiezudG6YRnak xgTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y27-20020aa78f3b000000b0064ca7ac8938si4225682pfr.166.2023.05.31.14.13.48; Wed, 31 May 2023 14:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjEaVIB (ORCPT + 99 others); Wed, 31 May 2023 17:08:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjEaVIA (ORCPT ); Wed, 31 May 2023 17:08:00 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5666B3 for ; Wed, 31 May 2023 14:07:56 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1C5CA240108 for ; Wed, 31 May 2023 23:07:54 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QWhgD1Nztz9rxN; Wed, 31 May 2023 23:07:51 +0200 (CEST) From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH v2 0/4] LE Set CIG Parameters / Create CIS fixes Date: Wed, 31 May 2023 21:07:45 +0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset fixes a few issues with emission of HCI Remove CIG, Set CIG Parameters, Create CIS when multiple ISO sockets in the same CIG are closed and reconnected rapidly. v2: Dropped patches that added error checking in hci_le_set_cig_params, TBD separately later. Returning errors there triggers some race condition in the emulator when it's cleaning up the connections, which needs some more looking. Simplified the Set CIG Parameters event parsing. The patches here now are enough to make the test suite pass, and enough to fix the race conditions encountered in BlueZ ISO ops. Pauli Virtanen (4): Bluetooth: ISO: use hci_sync for setting CIG parameters Bluetooth: ISO: don't try to remove CIG if there are bound CIS left Bluetooth: ISO: use correct CIS order in Set CIG Parameters event Bluetooth: ISO: do not emit new LE Create CIS if previous is pending include/net/bluetooth/hci_core.h | 4 +- include/net/bluetooth/hci_sync.h | 2 +- net/bluetooth/hci_conn.c | 123 ++++++++++++++++++------------- net/bluetooth/hci_event.c | 72 +++++++++++++----- net/bluetooth/hci_sync.c | 90 +++++++++++++++------- net/bluetooth/iso.c | 2 +- 6 files changed, 193 insertions(+), 100 deletions(-) -- 2.40.1