From: sashiko-bot@kernel.org
To: "Manivannan Sadhasivam" <manivannan.sadhasivam@oss.qualcomm.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 2/5] Bluetooth: btnxpuart: Add auxiliary driver for PCIe M.2 modules
Date: Mon, 30 Nov 2026 12:36:09 +0000 [thread overview]
Message-ID: <sashiko-outbox-241069@kernel.org> (raw)
In-Reply-To: <20261130-pci-m2-bt-rework-v2-2-922fcad88987@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] Bluetooth: btnxpuart: missing pm and coredump callbacks on
nxp_bt_aux_driver
--
commit b3a1fe9207c7f630feccf3c2a0ae8626929cc84a
Author: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Bluetooth: btnxpuart: Add auxiliary driver for PCIe M.2 modules
This commit factors the shared HCI controller registration and teardown
into helpers and adds an auxiliary driver for PCIe M.2 modules such as
88W8987.
> diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
> index 5c730e3361141..c7209b3b59aa1 100644
> --- a/drivers/bluetooth/btnxpuart.c
> +++ b/drivers/bluetooth/btnxpuart.c
[ ... ]
> @@ -2075,7 +2149,44 @@ static struct serdev_device_driver nxp_serdev_driver = {
> },
> };
>
> -module_serdev_device_driver(nxp_serdev_driver);
> +static const struct auxiliary_device_id nxp_bt_aux_id_table[] = {
> + {
> + .name = "pwrseq_pcie_m2.88w8987-bt",
> + .driver_data = (kernel_ulong_t)&w8987_data,
> + },
> + { }
> +};
> +MODULE_DEVICE_TABLE(auxiliary, nxp_bt_aux_id_table);
> +
> +static struct auxiliary_driver nxp_bt_aux_driver = {
> + .name = "nxp_bt",
> + .probe = nxp_bt_aux_probe,
> + .remove = nxp_bt_aux_remove,
> + .id_table = nxp_bt_aux_id_table,
> +};
[Severity: Medium]
Should nxp_bt_aux_driver also wire .driver.pm = &nxp_pm_ops and
.driver.coredump = nxp_serdev_coredump (under CONFIG_DEV_COREDUMP), like
nxp_serdev_driver does?
For PCIe M.2 modules, nxp_bt_aux_driver binds to the auxiliary device
while the underlying serdev has no driver attached. Without those
callbacks on nxp_bt_aux_driver, system suspend and resume will not run
nxp_serdev_suspend() and nxp_serdev_resume() to transition the controller
power-save state, and the sysfs coredump trigger attribute will not be
created even though nxp_register_dev() sets up power save and registers
devcoredump. Both nxp_pm_ops and nxp_serdev_coredump() take a generic
struct device * and look up nxpdev via dev_get_drvdata(dev), which
matches auxiliary_set_drvdata(adev, nxpdev) in nxp_bt_aux_probe().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-pci-m2-bt-rework-v2-0-922fcad88987@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-11-30 12:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:19 [PATCH v2 0/5] Rework M.2 Bluetooth instantiation using the auxiliary bus Manivannan Sadhasivam via B4 Relay
2026-11-30 12:19 ` [PATCH v2 1/5] Bluetooth: hci_qca: Add auxiliary driver for PCIe M.2 modules Manivannan Sadhasivam via B4 Relay
2026-11-30 12:38 ` sashiko-bot
2026-11-30 12:49 ` Loic Poulain
2026-11-30 12:19 ` [PATCH v2 2/5] Bluetooth: btnxpuart: " Manivannan Sadhasivam via B4 Relay
2026-11-30 12:36 ` sashiko-bot [this message]
2026-11-30 12:19 ` [PATCH v2 3/5] power: sequencing: pcie-m2: Create auxiliary device for the M.2 BT interface Manivannan Sadhasivam via B4 Relay
2026-11-30 12:36 ` sashiko-bot
2026-11-30 12:19 ` [PATCH v2 4/5] Bluetooth: hci_qca: Drop serdev based M.2 power sequencing code Manivannan Sadhasivam via B4 Relay
2026-11-30 12:19 ` [PATCH v2 5/5] Bluetooth: btnxpuart: " Manivannan Sadhasivam via B4 Relay
2026-11-30 12:38 ` [PATCH v2 0/5] Rework M.2 Bluetooth instantiation using the auxiliary bus sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-241069@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@oss.qualcomm.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox