From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 0B950373BEC for ; Fri, 29 May 2026 19:33:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780083188; cv=none; b=KCu42x5nvaPG274LcGAthfo63IYUaZSr32G4zrbPv96M5jsBBS2DHKyUUcVp+oI6IvJ5vXfRaf6RS7hY7whdLQGAavvpTmPARKQDhe7StbXBTWaqWVKd8TnkN+aijJ28CFK5v6F8iRKRR0oXEBJ1v4NKo4dlh18T/Rik4oXHPBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780083188; c=relaxed/simple; bh=12tCrkAzxp8yKlJtRsEG5YO5p/HCtJ1tw9dpFcVu1F8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WmG8XUmsSXoWIq+AV/AFEvnL8t/TZQbAvB8mfvcykrPuarLF35tthqkq9TOEkOPJPIPjA1YAfNBWtoGwle3unaoyAU9kSBY8/09VqySmr2g/TrZBNuiXBnU8/Hm+V6AFX7QkizlyDH6PYZs//tpxAoCqKFRGs149lr+8cKL/hkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NH1hyXJQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NH1hyXJQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B7771F0089A; Fri, 29 May 2026 19:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780083186; bh=elhv/TuaN75g2IwWmDx+pG7VIhYoL+LJvQg4JZEy83Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NH1hyXJQ/fsT0g3+qTJItqEO0kGTEFLELcvYyvceOsrrSTKDZFAd/Fw94eIXLhmw4 BAgYprLVvsKONJHO0+Agg+griJ536zwhTLTpEwVfs/aigFE0K9ZGw4YDUA0rlwGazO nJRLwYmsUwsLY9zP0CGJrssn2+TeV9o8KVh24u6OXzrPpI8o/fgh2a8hlI8pYWMzxR UX0FivqAx99Brh64aZx/Z7YyV138nofmB9bldDEeq6z1/zQeQYzER6hzZs/b4F9Xve hSNrve1Rd0Jwvp+7H2PcZP4LwjIjbpP9TIAM6loJj0ip++giawG4m70naxDwcOp3/r mOKW/Yr3C+tHA== From: Sasha Levin To: stable@vger.kernel.org Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH 6.6.y 3/4] Bluetooth: hci_qca: Migrate to serdev specific shutdown function Date: Fri, 29 May 2026 15:33:02 -0400 Message-ID: <20260529193303.1704693-3-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260529193303.1704693-1-sashal@kernel.org> References: <2026052800-unloving-guileless-afb9@gregkh> <20260529193303.1704693-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Uwe Kleine-König [ Upstream commit 12a6a5726c515455935982429ac35dee2307233d ] This saves a cast in the driver. The motivation is stop using the callback .shutdown in qca_serdev_driver.driver to make it possible to drop that. Signed-off-by: Uwe Kleine-König Link: https://patch.msgid.link/261a3384e25c4837d4efee87958805f15d7d4e3c.1765526117.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman Stable-dep-of: 375ba7484132 ("Bluetooth: hci_qca: Convert timeout from jiffies to ms") Signed-off-by: Sasha Levin --- drivers/bluetooth/hci_qca.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index cdad817e632c6..589069fd85de6 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -2425,11 +2425,10 @@ static void qca_serdev_remove(struct serdev_device *serdev) hci_uart_unregister_device(&qcadev->serdev_hu); } -static void qca_serdev_shutdown(struct device *dev) +static void qca_serdev_shutdown(struct serdev_device *serdev) { int ret; int timeout = msecs_to_jiffies(CMD_TRANS_TIMEOUT_MS); - struct serdev_device *serdev = to_serdev_device(dev); struct qca_serdev *qcadev = serdev_device_get_drvdata(serdev); struct hci_uart *hu = &qcadev->serdev_hu; struct hci_dev *hdev = hu->hdev; @@ -2650,11 +2649,11 @@ static void hciqca_coredump(struct device *dev) static struct serdev_device_driver qca_serdev_driver = { .probe = qca_serdev_probe, .remove = qca_serdev_remove, + .shutdown = qca_serdev_shutdown, .driver = { .name = "hci_uart_qca", .of_match_table = of_match_ptr(qca_bluetooth_of_match), .acpi_match_table = ACPI_PTR(qca_bluetooth_acpi_match), - .shutdown = qca_serdev_shutdown, .pm = &qca_pm_ops, #ifdef CONFIG_DEV_COREDUMP .coredump = hciqca_coredump, -- 2.53.0