Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3135590lqo; Wed, 15 May 2024 00:09:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXw4nfJ5jsHQjCbbvHGzwp6+0rXzfEH3+xwLES/gJBOJkLKaBFkTluJo4Q7fcU5Pf6xGsTGnDbORU6lqXtyPKeEM3XUxYX5AVUeyE96pQ== X-Google-Smtp-Source: AGHT+IGSSDNpDAYBJr8+JmEuG5E4ifdlTMid2516mjXOrEIXKKNfaPg8Wp+Nko4mqkfUFmBUWza8 X-Received: by 2002:a17:902:b48d:b0:1e4:ccf6:209f with SMTP id d9443c01a7336-1ef43d2e29emr143083985ad.28.1715756948781; Wed, 15 May 2024 00:09:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715756948; cv=pass; d=google.com; s=arc-20160816; b=d0nTPNVpi2F7pSVj831J8YRCGsgRDtjY6i6jhpmlXuxGPDq5BRyJTCHqpEEot6iCDV n3iV4+E0ym+aI0jpojdsVD3QGEgljwO8Wpp41r+vmjmYEov5DTGqJN40zPB+kjgyM6gT TOhx+xKwjmTQtHjXtyWTUc5vCAdq34Tc3VExopsNRBTFnFBa4TUWSSeBfF4bbWAmpf7a eT3+JjEDWjbtDh9NCYCbgx7nORvd+nj0dif0h+xzgrv78So5bgs18UP//QYGW9rXgEOo z3ufzSd7iD76jAs7P8EH/yU3YU3sOYFJzlUqlu+AgTTW9LMKNjg/pv9h0BRjKUqLxnnn zRzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=IEkYqXspb8yWx6Ag5tQvD0WO2kn9waf2QC/KyXn7WD0=; fh=OAAB7yCKw6RAEYmoRWACZMm4UlKNgD8SI87JHwO9WZk=; b=lleKNhrz7xZC5RFK4GzkiTE9wn6kIPoGkm+K+FrtsZgeQ24fIYHubQfJ9kUa+sKDMs ltQ8yucqmeYcp3t74BKcfi9hz+6CSqFq5Y3TMe8ON8ST0IDqOk4aoD1q25/Qc7ksUkTt ajUZ2ZpAmBi4CUBxQ/k/074MiSA9ORD7pl6RGyhI8E7y0nB4HTQJe/e5XyyNDAjjjxKf tkAGHJdxyh6uHlSuF3TAjioMfLCP3m23VkakNuzuEm7q1MF87fz7ANlOwfHgftl3Taqk Mb35xmI5j8q4crGQfk/i7PS9KlcS+k5P7miz+glo1DmvHIPVtAVK9yd6eW6dNB/hktF0 l2RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c139028si139006175ad.452.2024.05.15.00.09.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:09:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78E6228258D for ; Wed, 15 May 2024 07:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ED0F42ABD; Wed, 15 May 2024 07:09:01 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A880641C76; Wed, 15 May 2024 07:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715756941; cv=none; b=DebN2Ppyg1y8PCK3zP2WkIycp6d4jfF9m8q++1gmq1ee/dNnCJA+zSV+AK3UC6/UCegtgS3qgyycA7POyjrt0L8UWpINzOGRMMh4azPOo9cTtClc91Av26K7LS+QRLzvFcOmnkwnWX8mABsSSAaAQTUZo73xxRRpAOtGYHWU5hs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715756941; c=relaxed/simple; bh=4zAOzBhsn58JdAcEAqx/g9gyIq1koku9aF+BceYr8xw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=E470desSMCyM2mP9esap3qV4BFiJDSOIdJgT4K/29HzyyY35pprzBp0yr4ZFBXwS9ZaV1mbjxEazO9Eiyr0ch00T7G4T/lT3wn3aJo1KhU7x3YoghNW0RZK7lJchSM9tckxBggiax1kYh7wg1ckR/URqzAaVrn8U/UD85A7CFIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 34ED71A001F; Wed, 15 May 2024 09:08:52 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DA8021A000C; Wed, 15 May 2024 09:08:51 +0200 (CEST) Received: from pe-lt8779.in-pnq01.nxp.com (pe-lt8779.in-pnq01.nxp.com [10.17.104.141]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id CC6B6180222A; Wed, 15 May 2024 15:08:49 +0800 (+08) From: Neeraj Sanjay Kale To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, amitkumar.karwar@nxp.com, rohit.fule@nxp.com, neeraj.sanjaykale@nxp.com, sherry.sun@nxp.com, ziniu.wang_1@nxp.com, haibo.chen@nxp.com, LnxRevLi@nxp.com, guillaume.legoupil@nxp.com, salim.chebbo@nxp.com Subject: [PATCH v1 0/3] Enable status prints for firmware download Date: Wed, 15 May 2024 12:36:54 +0530 Message-Id: <20240515070657.85132-1-neeraj.sanjaykale@nxp.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP This patch series enables prints for firmware download functionality to help any automation tests framework to verify this feature. While testing some scenarios such as downloading corrupt FW file, if the driver is removed before FW download completes, or FW download timeout occurs, a kernel crash is observed due to Null Pointer Dereference, which is fixed along with a print to indicate automation framework that the FW Download was Aborted. Signed-off-by: Neeraj Sanjay Kale Neeraj Sanjay Kale (3): Bluetooth: btnxpuart: Fix Null pointer dereference in btnxpuart_flush() Bluetooth: btnxpuart: Enable status prints for firmware download Bluetooth: btnxpuart: Handle FW Download Abort scenario drivers/bluetooth/btnxpuart.c | 68 +++++++++++++++++++++++------------ 1 file changed, 46 insertions(+), 22 deletions(-) -- 2.34.1