Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1416225ybt; Thu, 2 Jul 2020 05:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMjQgC+wUpAp2uOhHZE5FPVgphynJd20hMyirJNT2DX1kqU/QJmW5SShsW9jso28K4oING X-Received: by 2002:aa7:c991:: with SMTP id c17mr26595891edt.278.1593691378216; Thu, 02 Jul 2020 05:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593691378; cv=none; d=google.com; s=arc-20160816; b=LrhJg4Baw8q6KVkgHMrTN42+5RlriJXa4ToBJtcIIxwjTWzNu05vfjNvN1uQeR0YiZ a7GkF5BYzesW2fe1yPsMWKzy/YbWiQp2LVMnw/AigsQ8Z84QdNYhA6aqYfVBiQt/Gb0r fFlq5DQeoEwl9pxp96Oyiifv6hnjYNNG9Ig67hiysGeRnijflkHpCzcp1OoDdWwydYOD KKt07XzoMyASyzz8cZiUgoBdvZKZbpvFLrel0aeet8kJCuuOP0JQ/1GKiRtccEpdC1Ur u+xXViM5h/Tz5oxaSBotcCfh3tibibhLneYsnGF+F590N2MnXc6urF7ceLesUqQ3ttlU zEVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=ihy25rrtO5QkP696VF3X6s0M2DKZejR+6Kuo5mg7dso=; b=L4Rv8dkA+WWNEl17vlMXwwS2VZ0LbfOOUTEy9IRddyqrqMJBJqMVlRPvkmVGChNufZ jFbqSpsk+X9Y/DU5oqTpPLKdTA/dvbrRbTE4tddi7WNuKMsgK+8X0tDkILXk/TFR2SBq l9YpyYWNFYnFN7wrrcJ6g11hf4hRit7VQgDMR/g6ZSbkNCzIfQVCuWNfO1EcUDUYqems VgIBf+sDB+CdODL43yisPgPZtAp74bolGdqdHJGCz6BLPpI3TvlUdu/KY9ypFxaDXbnM wsk+mvqX9ElXB9eicxKxp4ts2yHzWgQT6Ei5Fr+3pK15CgiJEpTUPmvbdPVEhRD4FEdr I5XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si6093932edp.123.2020.07.02.05.02.15; Thu, 02 Jul 2020 05:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbgGBMCG (ORCPT + 99 others); Thu, 2 Jul 2020 08:02:06 -0400 Received: from mga14.intel.com ([192.55.52.115]:27652 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728697AbgGBMCG (ORCPT ); Thu, 2 Jul 2020 08:02:06 -0400 IronPort-SDR: TG4/sEYIa8m7xIk78sPgt0iAGN5zZBnq7BZcoqy5obJY+9FhCgljYP7rRPWxTK/HnvVItVrAIu XOyRW3IvM9Kg== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="145947812" X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="145947812" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 05:02:06 -0700 IronPort-SDR: djcz1Eo83MXMCRmRyJRqmliIvD50mP7od4NQwsU9NZN8B9U3eHLZJlhYI8DKZPZ2R/zEOyJ1jL cgZ2KVIE8yAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="304224689" Received: from unknown (HELO intel-Lenovo-Legion-Y540-15IRH-PG0.iind.intel.com) ([10.224.186.95]) by fmsmga004.fm.intel.com with ESMTP; 02 Jul 2020 05:02:04 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, kiraank@gmail.com, Kiran K Subject: [PATCH 0/5] Refactor firmware download Date: Thu, 2 Jul 2020 17:33:10 +0530 Message-Id: <20200702120315.26768-1-kiran.k@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, This patchset series refactors firmware download sequence to accomodate new generation Intel controllers. Few functions have been split to enhance readability and reusability. Kiran K (5): Bluetooth: btintel: Make controller version read generic Bluetooth: btintel: Refactor firmware header download sequence Bluetooth: btintel: Refactor firmware payload download code Bluetooth: btintel: Define tlv structure for new generation Controllers Bluetooth: btintel: Parse controller information present in TLV format drivers/bluetooth/btintel.c | 223 ++++++++++++++++++++++++++++++---- drivers/bluetooth/btintel.h | 110 +++++++++++++++-- drivers/bluetooth/btusb.c | 73 +++++++---- drivers/bluetooth/hci_ag6xx.c | 12 +- drivers/bluetooth/hci_intel.c | 14 ++- 5 files changed, 369 insertions(+), 63 deletions(-) -- 2.17.1