From patchwork Wed Sep 6 13:59:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 720467 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28160EB8FD2 for ; Wed, 6 Sep 2023 14:00:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241378AbjIFOAY (ORCPT ); Wed, 6 Sep 2023 10:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241291AbjIFOAX (ORCPT ); Wed, 6 Sep 2023 10:00:23 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2051.outbound.protection.outlook.com [40.107.8.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9557710C6 for ; Wed, 6 Sep 2023 07:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YqDKxwZDN5Fz+DKVp34YuvPFmjM6EqBFPjq9lOrmEv4Z/vMCT85k9kf/F5RyKGD0z9RQgY7hE5zQZ375KjM5qXLz9c1wQkkyuWY3yCMfIdOL0jNH5ntvO0d95CahJL4LZVxvvyW7/AHoK2D7HRdS0GFNbjKwAv9N1pXoyLAufR1dLQ+OHgJxOR+pAsxox+WsZR9Vz8lpBBtK3kpYyABwSENQ5gdfQD/YScpUE5k1xrdwf5aBxYV0itt8T4GtsMghJdV01QFWRcSKV3UAC7hTachqiJ5Z5/niRDYWb0OlYkuTB/WjA4wrkIJtPZMpianpNuaJVV/uI0U42y4wE3Etmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sjRqTk1S0yT5PNsScdtfr1hLHpH+vkF17gn1aLAzb9w=; b=E3a4HT42JfWzDC5Q6SVVNYjxJHmoLxckSb3FodpMI0XRLA0P4dFO/mgJmoKcfrN6srFrPI0S4C/oRwpvZHwEIvmHw9TVpa+3ITeZroY0KWUuUkV2RIovYqtDxySeAmJ7WWZEHm3r/vjfFLGGWwBy62vT+mGDKFOb7U9XjB+J8CjbLtcMVznFQcgCQCEv+0J5fzU1/HoqDf6nTkTk0BfWOOnaVGza3V5gBsIFUksBU2uzzbuxiqJRpK03mHMx2ZF0kFfAGdIEtHwrmaigGGWM2x1qdl62Cip36twfRUsOrqmuGnhHxmSbgGDBmAmFZwfQVfMFsXHmWd4UrkGs3WumHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sjRqTk1S0yT5PNsScdtfr1hLHpH+vkF17gn1aLAzb9w=; b=N95EcXDTW2YZK50wa4yGooKktQO8bCeMfpLL6LH4KyXfe4CCXHcAYT1aPN6tQI33m8nyvkl7CBiCzCjQGI71pfqmOPSyFBx7Pk8ZcnHOkLiC2Sl0FanoUkblajv2tMaU4IGXVmZBbZ34Qr77q5nyPzzSGsHAgTvoE9VucQ+2hZw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by AS8PR04MB8788.eurprd04.prod.outlook.com (2603:10a6:20b:42f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Wed, 6 Sep 2023 14:00:15 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b%7]) with mapi id 15.20.6745.034; Wed, 6 Sep 2023 14:00:15 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Iulia Tanasescu Subject: [PATCH v2 0/1] Bluetooth: ISO: Fix BIS cleanup Date: Wed, 6 Sep 2023 16:59:53 +0300 Message-Id: <20230906135954.9165-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: AS4PR09CA0024.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::12) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AS8PR04MB8788:EE_ X-MS-Office365-Filtering-Correlation-Id: da457815-2724-4d2d-770a-08dbaee19841 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EIYq2osCHP6er+ukQSPOVJtFppFeaySYmWHreiH/w1np7RTpe8WRgrpAStsLVeKcDtXuzRainz3CnNcSozfbHzqBOZheDsz0d3lqVgMSD/DEYfvQZ80s09VUf23H2+GwXGvj/3cJLT/FfJmo6V9+UkxogCByWFoUVI/5c7ORQgbUYhZzNfLPkF9k0m1oenPBfvCO+Zu1UNAhFWkeLIJMR+acmdGh/pFhPs2rpIH/GwHL7nhshcAzS4Wc9m/IGNW+D8WvQqrhOwSaEG//RixpenRRITM0KdEPgBCmRAYvpzZDc5hQ1rI4DOy3SYrfFfkex+Te9ZAC7RKtOJ3Hjrz/uZWGLiTC6jvkfqnWRCMS46GivCCjk04E+x9wY4x5oKoLP53WFoNR2OxdiqLM2Zm31xMFZ58KkP4DXzt/ckqXueZgEF2O8OvcrTjCywk2apnfJ3pIoMStrnr6I7CnnXbgFE6cDjvZ5GFMa0JwxlATN+hDVMp7cR73R4TtRK9cyz+4vSdcL8LFSfbd1iyyk4HFnrKOpHceliGo7zlyXTcXyXxTLgmNOuAPiIwllwgYTJBse4d3clNc5ViSqGW8sFAg52/KqCt3l9wAzBD0agoaHSv1Wn4b95F18jIKBZViGIbW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8898.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(366004)(39860400002)(396003)(376002)(451199024)(1800799009)(186009)(38350700002)(36756003)(38100700002)(86362001)(6666004)(26005)(478600001)(1076003)(5660300002)(52116002)(44832011)(6486002)(6506007)(55236004)(66556008)(66946007)(66476007)(316002)(6916009)(41300700001)(2616005)(8676002)(8936002)(6512007)(4326008)(2906002)(4744005)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5mLBHnXMtkn8WINva4fhl4jjkCPdU73mhYv3PS1HK1eb41w/fmzlHWZkSZ0jzXhQs5UrghKFGvP7qkaWQD12DSRsdwQJzNM3Lzr34zmB7BhBEKiu+XhVIvjc+kS2gZl0YDPmGHemhi0Nq1IfhyTMiOrMCs4BaVcaMBF7oZoNiuuRvbxSrra0k4e9vQVWe94jiFtuPG30BJN8Udx3S/+ZAMUH4Q735DKZezcudAggHRkAH8wMIVaRzCM4mYWN4ih3SHOO+p2y9MG6s4PKSfD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Q8Fx0ki3PDNaIFas70CT2VkR7a5pyt801Hcd5BSMiiAUi2jHd+Nwx7giDiHkumoOuav1xlX4xVzf27XqtSc2Q82Ya/2xxr4T2Ljcx/xxXd9j24cWYNqyQs02+NvSCoMELxjuwO13s54KAnAxyv+g02EVdAQlqzhQvssNeLY9KYA7zsRqC0JCqNatfEVbSJAE1iaw0wB+e0ljUBTweQb0E6ltFwNhw56xpV1l257aK7qKliLmw0UWPno/TarMlur3ud8JRqru/Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: da457815-2724-4d2d-770a-08dbaee19841 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2023 14:00:14.9899 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rvfjuUNacjiTIJ5GiVSLc1z2/8e0wOHQd3yrXrtDB5F7Px1mXiBorBGMdElOBvfUJe9tWNRUAEwLSbuHQCZmJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8788 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This fixes the master BIS cleanup procedure - as opposed to CIS cleanup, no HCI disconnect command should be issued. A master BIS should only be terminated by disabling periodic and extended advertising, and terminating the BIG. In case of a Broadcast Receiver, all BIS and PA sync connections can be cleaned up by calling hci_conn_failed, since it contains all function calls that are necessary for successful cleanup. Iulia Tanasescu (1): Bluetooth: ISO: Fix BIS cleanup include/net/bluetooth/hci_sync.h | 2 ++ net/bluetooth/hci_conn.c | 7 +++++++ net/bluetooth/hci_sync.c | 28 ++++++++++++---------------- 3 files changed, 21 insertions(+), 16 deletions(-) base-commit: 2595dd981e7478108540095a81495c473ef47750