All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Yanli Yang" <yanli.yang@bedmex.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH bluetooth-next v4 3/3] Bluetooth: btaic: Add AIC8800D80 SDIO loader and UART transport
Date: Thu, 24 Sep 2026 03:47:46 +0000	[thread overview]
Message-ID: <20260924034746.CA7521F000FF@smtp.kernel.org> (raw)
In-Reply-To: <179022103316.2.10766336739313723963.btaic-v4-3@bedmex.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] bluetooth: btaic: unused suspend/resume functions when !CONFIG_PM_SLEEP
--

commit 774c6b59e34be9758b37b2fc097ca43acb716194
Author: Yanli Yang <yanli.yang@bedmex.com>

Bluetooth: btaic: Add AIC8800D80 SDIO loader and UART transport

This commit adds a driver for the AIC8800D80 Bluetooth chip, utilizing SDIO
function 1 for firmware loading and a serdev UART interface for the HCI
transport. It coordinates the firmware provider and UART consumer through a
reference-counted boot state.

> diff --git a/drivers/bluetooth/btaic_sdio.c b/drivers/bluetooth/btaic_sdio.c
> new file mode 100644
> index 0000000000000..18d58f0832a5a
> --- /dev/null
> +++ b/drivers/bluetooth/btaic_sdio.c
[ ... ]
> +static int aic_bt_sdio_suspend(struct device *dev)
> +{
> +	struct sdio_func *func = dev_to_sdio_func(dev);
> +	mmc_pm_flag_t caps;
> +
> +	caps = sdio_get_host_pm_caps(func);
> +	if (!(caps & MMC_PM_KEEP_POWER))
> +		return -EOPNOTSUPP;
> +
> +	return sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
> +}
> +
> +static int aic_bt_sdio_resume(struct device *dev)
> +{
> +	return 0;
> +}

[Severity: Low]
Will compiling this driver with CONFIG_PM_SLEEP disabled trigger
unused-function build warnings?

When CONFIG_PM_SLEEP is not set, SET_SYSTEM_SLEEP_PM_OPS expands to nothing,
leaving aic_bt_sdio_suspend and aic_bt_sdio_resume unreferenced in this
file. Adding the __maybe_unused attribute to these static functions would
prevent the warnings.

> +
> +static const struct dev_pm_ops aic_bt_sdio_pm_ops = {
> +	SET_SYSTEM_SLEEP_PM_OPS(aic_bt_sdio_suspend, aic_bt_sdio_resume)
> +};
[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/179022103315.2.2907053891316619435.btaic-v4-cover@bedmex.com?part=3

  reply	other threads:[~2026-09-24  3:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  3:34 [PATCH bluetooth-next v4 0/3] Bluetooth: Add AIC8800D80 SDIO firmware loader and UART HCI Yanli Yang
2026-09-24  3:34 ` [PATCH bluetooth-next v4 3/3] Bluetooth: btaic: Add AIC8800D80 SDIO loader and UART transport Yanli Yang
2026-09-24  3:47   ` sashiko-bot [this message]
2026-09-24  3:34 ` [PATCH bluetooth-next v4 2/3] dt-bindings: net: bluetooth: Add AIC8800D80 Yanli Yang
2026-09-24  3:34 ` [PATCH bluetooth-next v4 1/3] dt-bindings: vendor-prefixes: Add AIC Semiconductor Yanli Yang
2026-09-24  5:58   ` Bluetooth: Add AIC8800D80 SDIO firmware loader and UART HCI bluez.test.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=20260924034746.CA7521F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=yanli.yang@bedmex.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.