Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2846802rdb; Tue, 12 Sep 2023 14:07:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtvJDrgJux9kdIQtUTns1yQM0gMA4sDmIy3bqaxrsPF2TGtilBm1ypwzbUX9x8P1tkkZAr X-Received: by 2002:a17:90a:b902:b0:273:f51f:1626 with SMTP id p2-20020a17090ab90200b00273f51f1626mr388927pjr.35.1694552861451; Tue, 12 Sep 2023 14:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694552861; cv=none; d=google.com; s=arc-20160816; b=ElKdcNCeXAAJncm5GG+0o5IpmrT6RIltU5rKM2gdpqayAHIWGJnV/8erGLInYgBq8f OuB4GMx66CLXdlwCU5dWAeiM07KcnlO8yxjTn6AxqN/QnM4W7FLdxd5sMqMV3karg+pj Ss9apL6fbg79wAN7r2Ls9Ge0V6Fpc/5+1jCDvV3uFKWX669JlIyOP2Mz3MUN9t0aCPDZ 5Xj7ygmqqRf0kr8Vseglnr76h/a7gTndLU8WASyTt0dWMpXwPm5vH/FFcN+/QlkMsA3V JdO9n4vfTrHA/tmd4EPZLiK03xvvSd4D5CCXBsECcIsSR9ALwQgamwNg5UjIvvn7JIN2 Ntuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HBsOCujGtmnuDBUeKQtQ0tSGczirc+tgjS5/dddK7rE=; fh=fAVvqa29TMCSLQ1BWo+IkeTh9vOt2h2EvlnFWIq0DOI=; b=KRAZzvUT5NN4lAjgMlXsZuBClg33APVJADy4I/ymvjA+WkG1DTwf6HmiprdiTd8KUJ WsHLlIu1LuKk8pEulgmkmDU293CtCftR3zSmVA+wUz8yyu8p+MfxdxwUEGVB6ZDxPLVv GmgIr7WayxZjCxqkwTUqf9YhtUNGi3gM183Wl0pytJaSSZ46dcqA/+AEXxwelgP0JrJ5 8IuCO7RNrYutIcpRNFwbG8/+K29AWSm6slYEK+RBMQd217GFMH2AFwQjCJdEuT2c2424 DNZuf3OEEipCDBt9vg/jut/zfQqprc7hEVmutbLUsfi6h2anTTfLhzBEvQr1r4/sGatl vPXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="URP/+Ljx"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id lb2-20020a17090b4a4200b0025bf45ac365si102118pjb.82.2023.09.12.14.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="URP/+Ljx"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DD3B3823B3CD; Tue, 12 Sep 2023 14:05:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbjILVFQ (ORCPT + 99 others); Tue, 12 Sep 2023 17:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbjILVFP (ORCPT ); Tue, 12 Sep 2023 17:05:15 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0966199 for ; Tue, 12 Sep 2023 14:05:11 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bd0d135ca3so105690611fa.3 for ; Tue, 12 Sep 2023 14:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694552710; x=1695157510; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HBsOCujGtmnuDBUeKQtQ0tSGczirc+tgjS5/dddK7rE=; b=URP/+LjxlOLXZj+XZ9Dd2eWowP8DF3EWEeac/8gOUYpxQXSrZEdUFBJ6a3ScZREUf7 xcBw8HsVUcBf4fGjajloRijOq6sE4C1EeawTGrEtbQiUI1+FkPvYLcLIvCR0wyG73NlP ZQLnsHNd2f2AgU/+k46ZZN2QkWLDt0NwbFthetlnTotMniVxazaEy+LB+Fdzdh/dlQ39 mCZ0Ny3YHFg/gs4XhH/AaJ0rswIvF5a/rGoLU+HomIqEHU3+7wa2d5KQsAR4aTN1rdR+ FDvw2tBgCpm7LKBCmXx53JHO2zo5lumwPL7XiGUwQ9qoSN4l82ps6EV1xW/HvuG5SNLs zxSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694552710; x=1695157510; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HBsOCujGtmnuDBUeKQtQ0tSGczirc+tgjS5/dddK7rE=; b=vfx30FqZbCBq/dfBM4+CoyhjZzAy9wZHNTyYlbB+/SK5yPJ4+hEPjOn6DEM5ttdLFG zYa/dS149bVHtHSmBJ+2h/EaQgyrSnY7umr7srqIwgWzt1a3SBh33H7GG7es613sbh9k 5iq+ELXEPgwO0fZigJTrSLY8yeBs5do4a/vnfR5UYI6LRNGouSy6FzWACEH5Mt5pziG0 tjXVGOMMCn5Uw3pHFVtuEQ90ZGWKut18/v09lQxMo4E7HMTKtQrxs36BWG7NZo6S6Hx9 AHR4i1oQT58ix+4uve8ZQSmYIJqcX5AINxVLUPRPhxY5OzSf1jGkqv7uQlLlbRuQrOLc mDZQ== X-Gm-Message-State: AOJu0Yw9FJlC9BzCcXq26wodnwOJ9G9PEeoWOgxpaDznxy+kq/WWg2Wd +bSB6AqfBIRVvdsLJcXCS/bySoCYga3jnFTQNZuS5UVL X-Received: by 2002:a2e:9455:0:b0:2bc:fc2e:7671 with SMTP id o21-20020a2e9455000000b002bcfc2e7671mr763276ljh.13.1694552709448; Tue, 12 Sep 2023 14:05:09 -0700 (PDT) MIME-Version: 1.0 References: <09443d89e7486d890b346d47ebc5c6a8f5eb30af.1688323254.git.pav@iki.fi> <168858002504.7518.9584432839192702711.git-patchwork-notify@kernel.org> <0711a8538290d26724ca39b684cc064eb89ab185.camel@iki.fi> In-Reply-To: <0711a8538290d26724ca39b684cc064eb89ab185.camel@iki.fi> From: Luiz Augusto von Dentz Date: Tue, 12 Sep 2023 14:04:57 -0700 Message-ID: Subject: Re: [PATCH BlueZ v2 1/2] shared/bap: detach io for source ASEs only after Stop Ready To: Pauli Virtanen Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 14:05:14 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Hi Pauli, On Sun, Sep 10, 2023 at 9:31=E2=80=AFAM Pauli Virtanen wrote: > > Hi Luiz, > > to, 2023-08-31 kello 14:04 -0700, Luiz Augusto von Dentz kirjoitti: > > On Wed, Jul 5, 2023 at 11:18=E2=80=AFAM wrote: > > > > > > Hello: > > > > > > This series was applied to bluetooth/bluez.git (master) > > > by Luiz Augusto von Dentz : > > > > > > On Sun, 2 Jul 2023 21:43:04 +0300 you wrote: > > > > The Client may terminate a CIS when sink is in QOS and source in > > > > Disabling states (BAP v1.0.1 Sec 5.6.5). It may also terminate it = when > > > > Receiver Stop Ready has completed successfully (BAP v1.0.1 Sec 5.6.= 5.1). > > > > > > > > It appears Samsung Galaxy Buds2 Pro (R510XXUOAWA5) ignores the Rece= iver > > > > Stop Ready command if CIS is already disconnected, and then gets st= uck > > > > in disabling state. It works if CIS is disconnected after Receiver = Stop > > > > Ready. > > > > > > > > [...] > > > > > > Here is the summary with links: > > > - [BlueZ,v2,1/2] shared/bap: detach io for source ASEs only after S= top Ready > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3D7b10e72d= e6f4 > > > - [BlueZ,v2,2/2] bap: wait for CIG to become configurable before re= creating CIS > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3D8c317019= 0d6f > > > > > > You are awesome, thank you! > > > -- > > > Deet-doot-dot, I am a bot. > > > https://korg.docs.kernel.org/patchwork/pwbot.html > > > > Looks like this one introduces a problem when using the emulator: > > > > https://gist.github.com/Vudentz/5c7ef940fc97b054227559dcd47b99f7?permal= ink_comment_id=3D4677775#gistcomment-4677775 > > > > If I try to release then acquire then it won't trigger recreate logic, > > I suspect this is due to bap_io_disconnected being called ahead of > > states changes. > > Sorry for the delay. Was this fixed by d06b912df5ab ("bap: Fix not > always calling bap_io_close on disconnect")? If not, I'll try to > reproduce. Yeah, that should have been fixed already. > -- > Pauli Virtanen --=20 Luiz Augusto von Dentz