Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2231805rwd; Sun, 28 May 2023 10:49:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GbW1cnLEfV1WilCk7I24ibLhaJFQoVaZGkZ5EdHXlvCBK4WIuPckUAgc9q+pXn66+R4PP X-Received: by 2002:a05:6a20:8403:b0:111:346c:3445 with SMTP id c3-20020a056a20840300b00111346c3445mr772468pzd.38.1685296179747; Sun, 28 May 2023 10:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685296179; cv=none; d=google.com; s=arc-20160816; b=qj2jcKs1sTCl8S9tSxT2U1GO+XwsuPjlnSqgTlq3sDmLfTR6ZAkQkWgZ1e51r+xPzM CIO5Pl5BqMfmhLVnAN56ZW36vOf5EqhdPZoF2PvaRHRsUJeKY63reXrGGA8P+fEf1f5d sG1ib7W3yyvWenHlCtH1S2M4b0FYSCq2WMD8/130Qxoq4OIhl11HN8oY4+Aylj2BBszU 4t8mW6yKP+xx4wNGka19H56RJU+zbFuEvHH57uSzVLMby89536HEvRtvSbqDYRg1LRM4 7yQdNw5zjG7UjB5wATit2CK8DWq1HzJgTf1mjnOokm4Bamzr9PXpLI17lf1eNh0I257+ 0TXQ== 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=ddf7dyQvNsW5m31rJdgHaYgXD8AaNgVLcfmUyFjJCCg=; b=kR+19CusCKakV8DFVnxeIct8q5nJ1tuWP2NH9h6X2ZwvYVEaeHJoQ85DtzjAATfzPB 7vnN3beORYTKuriHbonXU4K3Q2F7PTvQp4B/53WqsOysqSec+NoXXhpJGfVxfp9k32o+ G/AYUmcMjciNyH2Rioep0BYYZGVONHInXqmgpGPYSPOx4D8WSGkZkhguMT7vAFPSrhO1 OZAav/L8JiymshEVBlQzxoU2RrpaLgZrTkYvayJCf0taMug0gIlPkGEbSgIKm3zW7evC dM/UkztMYXrypjWrdIkGs6V/zg7L09d16gfhm9vp/wpEmpXUllaNRjsaQ1JGmg9elnv3 LkxQ== 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 j64-20020a638043000000b0053474003cf0si7999888pgd.449.2023.05.28.10.49.25; Sun, 28 May 2023 10:49:39 -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 S229491AbjE1RoU (ORCPT + 99 others); Sun, 28 May 2023 13:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjE1RoS (ORCPT ); Sun, 28 May 2023 13:44:18 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4BB9A0 for ; Sun, 28 May 2023 10:44:17 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 921AA240101 for ; Sun, 28 May 2023 19:44:16 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QTmHh0xxqz6tw8; Sun, 28 May 2023 19:44:16 +0200 (CEST) From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH 0/6] LE Set CIG Parameters / Create CIS fixes Date: Sun, 28 May 2023 17:44:08 +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. These were found when trying to make Samsung Galaxy Buds2 Pro stream disabling and re-enabling work, and with a few additional emulator test improvements. In these cases, the user is closing and reconnecting ISO sockets rapidly. With this and the associated BlueZ patchset, disabling and re-enabling streams on this device works correctly and the problem in https://github.com/bluez/bluez/issues/516 is solved; this kernel patchset contains nothing device specific though. The last Create CIS patch probably could be done in different ways, but seemed simplest to have hci_le_create_cis_sync be idempotent. Pauli Virtanen (6): Bluetooth: ISO: fix maximum number of CIS in Set CIG Parameters Bluetooth: ISO: use hci_sync for setting CIG parameters Bluetooth: ISO: don't try to do Set CIG Parameters if CIG known busy 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 | 139 +++++++++++++++++++------------ net/bluetooth/hci_event.c | 79 ++++++++++++++---- net/bluetooth/hci_sync.c | 90 ++++++++++++++------ net/bluetooth/iso.c | 2 +- 6 files changed, 217 insertions(+), 99 deletions(-) -- 2.40.1