Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp606257imn; Fri, 29 Jul 2022 17:51:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vj1sThciC/lUrz6vP9JLoOf+1Sdt7tJxEbJaRP9D12X9F6CQET+QwMrRBho9786lGls/7s X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr4768253ejj.278.1659142288084; Fri, 29 Jul 2022 17:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659142288; cv=none; d=google.com; s=arc-20160816; b=tyHrHwnM0OuqLLkFmHzlyjmnPYgChjOHr2aiBZpDYMNyhyIkqT9QsVg1XoDaZtXaY/ ecMM4+zO0z/lmmahNqRdY0MrSvs4Chi3qpE1vshyIs9WHEDbjAuoXE3GiY5wVmvlPPX0 mF42JzCxVEIOQqjoUpGeYebDOFWAD/O1amitSKc70HvFN9SmCusV7saakFnPoI8jKvA5 p15PzSEwDngKICDVq7rke18U4MRhxGH1FdfD4b1rAw5C7AKqrLjSTSxZxUf5B/xE1H4b Tr1W78Z7xtTLVSAtW30Kb73Q2VV2S0L/juOTjjyTiKWcPh2qS8xkZYjHQw8AJU2JwbzN egaw== 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:dkim-signature; bh=lcNw/emA3kJUb9KOmbg2FpjBz7kNTpoT9MFGrB2NMMw=; b=W98lp9tBt4qBFLKoiaiMFxN0KWU5zlbqyHK+5np2MFW/uc5ZiTzpNdRuL7BvFfFhXU x5JY54A429gjJh76h0UPofAdzCTtMvDMQ0PyxboD1ayXGOuCKV+UHDW1tDMu3nJiTjzi 8P/L7e7dmJoKGykB4sYMnERJ5Cc9pQKu4KEalCXGxE3YQrgRQaoMmI5wv1tnIRXJZcBs W35j4W0hj45Lr9rVrXMXlim48CBXzpGlPeZukplTgJLy1fj8Su+3vIMCiaU11HVlaoIi OSRDCK/eKMqPd20zbOivLD9iwDR9WHtxlGtTMsCKBpbBIOn8UXKTux+7MdNIXLWTzRdd b1Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fHNtW6uI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di8-20020a170906730800b0072a92973741si5383167ejc.978.2022.07.29.17.51.00; Fri, 29 Jul 2022 17:51:28 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=fHNtW6uI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbiG3Auv (ORCPT + 99 others); Fri, 29 Jul 2022 20:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbiG3Auv (ORCPT ); Fri, 29 Jul 2022 20:50:51 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA76D72EE4 for ; Fri, 29 Jul 2022 17:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659142249; x=1690678249; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=G2ubfTKmAQXrxNfLWFxtAUK/jcRFdbufYVOBPtCT//Q=; b=fHNtW6uI8Fwww7gS05oEdExtwLC3RtglWniTVkOLqhKc+829oSXFS8m7 m4CY2mKV6tmJPq8I6fgRFsV/8f4Tn7v4BCAR7FGhKH+4iJUx2PcAQh8NW 0pyFEVuriVgIHt4uAv6a/gDherjYewgng1ggqabH0swoc19UvL0RNUeO8 qjNF8ivLCcJteo8h5vWZdvR+objVDnOUexSRNidp+O8dedFjsczHNmFzf KXEchcRKKEZm6V+x5jgvpZjF4okhy1jArK3SJ7+BevJoFacNCaB5tn9x/ SC3CHv0n/ZKO0yck1xsVXYaFjbDvaa7/NJvCfEDIyteHN5R+WOqdCyXOt w==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="268644784" X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="268644784" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 17:50:49 -0700 X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="660458094" Received: from agcodina-mobl1.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.212.26.50]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 17:50:49 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, luiz.dentz@gmail.com, brian.gix@intel.com Subject: [PATCH v5 00/10] Clean-up stale/unused hci_request.c code Date: Fri, 29 Jul 2022 17:50:28 -0700 Message-Id: <20220730005038.894650-1-brian.gix@intel.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE 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 will be a growing patch-set of conversions and dead-code removal towards the goal of retiring hci_request.c The patch sets will be split amoung the work queues and delayed work queues as initialized in hci_request_setup(), with the ultimate goal of eliminating hci_request.c entirely. v2: Published v3: Continuing work. This does include one conversion (SCO configure_datapath) that has been tested with mgmt-tester and sco-tester, but has not been tested with a controller with an off-loadable codec. v4: Clean-up checkpatch warnings. v5: Remove remaining procedures from hci_request.c/h. Not that other entities (notably amp.c, hci_event.c and hci_core.c) are still using the hci_request mechanism, however, the mgmt-tester unit test only currently execute opcode 0x1408 - HCI_OP_READ_ENC_KEY_SIZE during normal testing. Brian Gix (10): Bluetooth: Convert le_scan_disable timeout to hci_sync Bluetooth: Rework le_scan_restart for hci_sync Bluetooth: Delete unused hci_req_stop_discovery() Bluetooth: Convert SCO configure_datapath to hci_sync Bluetooth: Convert Interleave Scanning timeout to hci_sync Bluetooth: Move Adv Instance timer to hci_sync Bluetooth: Delete unreference hci_request code Bluetooth: move hci_get_random_address() to hci_sync Bluetooth: convert hci_update_adv_data to hci_sync Bluetooth: Convert hci_abort_conn to hci_sync include/net/bluetooth/hci_sync.h | 10 +- net/bluetooth/hci_conn.c | 86 +- net/bluetooth/hci_core.c | 4 +- net/bluetooth/hci_event.c | 2 +- net/bluetooth/hci_request.c | 2002 +----------------------------- net/bluetooth/hci_request.h | 61 - net/bluetooth/hci_sync.c | 564 ++++++++- net/bluetooth/mgmt.c | 5 +- 8 files changed, 639 insertions(+), 2095 deletions(-) -- 2.37.1