All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Han Gao" <gaohan@iscas.ac.cn>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 3/4] riscv: dts: thead: enable AP6256 Wi-Fi on Milk-V Meles
Date: Tue, 29 Sep 2026 10:35:38 +0000	[thread overview]
Message-ID: <20260929103539.7174B1F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260929-rv-meles-v1-3-effdd14a76e8@iscas.ac.cn>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing function = "gpio" in wifi_host_wake_pins pinctrl node
--

commit de373882dd24540cebce78cb7e64ca51c97365ba
Author: Han Gao <gaohan@iscas.ac.cn>

riscv: dts: thead: enable AP6256 Wi-Fi on Milk-V Meles

This commit adds device tree nodes to enable the AP6256 Wi-Fi module on the
Milk-V Meles. It configures the SDIO interface, PMIC clocks, regulators,
and GPIO pins for the Wi-Fi module's operation and host-wake interrupts.

> diff --git a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts
> --- a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts
> +++ b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts

[ ... ]

> +&padctrl1_apsys {
> +	wifi_enable_pins: wifi-enable-0 {
> +		gpio-pins {
> +			pins = "GPIO0_20";
> +			bias-disable;
> +			drive-strength = <7>;
> +			input-disable;
> +		};
> +	};
> +
> +	wifi_host_wake_pins: wifi-host-wake-0 {
> +		gpio-pins {
> +			pins = "GPIO0_21";
> +			bias-disable;
> +			input-enable;
> +			input-schmitt-enable;

[Severity: Medium]
Does this pinctrl node also need a function = "gpio" property to ensure the 
pin is properly muxed?

If the bootloader configures GPIO0_21 for an alternate function, the missing
function assignment means the pinctrl-th1520 driver might skip creating a
PIN_MAP_TYPE_MUX_GROUP mapping. The dw-apb-gpio driver will request the
interrupt via gpiochip_irq_reqres(), which locks the IRQ but never calls
pinctrl_gpio_request().

This could leave the pin in its alternate function state, preventing the
host-wake interrupt from triggering and potentially breaking wake-on-WLAN
functionality.

> +		};
> +	};
> +};

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260929-rv-meles-v1-0-effdd14a76e8@iscas.ac.cn?part=3

  reply	other threads:[~2026-09-29 10:35 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 10:22 [PATCH 0/4] riscv: dts: thead: Add Milk-V Meles support Han Gao
2026-09-29 10:22 ` Han Gao
2026-09-29 10:22 ` [PATCH 1/4] dt-bindings: riscv: thead: add Milk-V Meles Han Gao
2026-09-29 10:22   ` Han Gao
2026-09-29 22:15   ` Drew Fustini
2026-09-29 22:15     ` Drew Fustini
2026-09-30 11:51   ` Krzysztof Kozlowski
2026-09-30 11:51     ` Krzysztof Kozlowski
2026-09-30 14:37     ` Han Gao
2026-09-30 14:37       ` Han Gao
2026-09-30 17:02       ` Drew Fustini
2026-09-30 17:02         ` Drew Fustini
2026-10-01  5:36         ` Krzysztof Kozlowski
2026-10-01  5:36           ` Krzysztof Kozlowski
2026-09-29 10:22 ` [PATCH 2/4] riscv: dts: " Han Gao
2026-09-29 10:22   ` Han Gao
2026-09-29 22:32   ` Drew Fustini
2026-09-29 22:32     ` Drew Fustini
2026-09-29 10:22 ` [PATCH 3/4] riscv: dts: thead: enable AP6256 Wi-Fi on " Han Gao
2026-09-29 10:22   ` Han Gao
2026-09-29 10:35   ` sashiko-bot [this message]
2026-09-29 22:38   ` Drew Fustini
2026-09-29 22:38     ` Drew Fustini
2026-09-29 10:22 ` [PATCH 4/4] riscv: dts: thead: enable HDMI " Han Gao
2026-09-29 10:22   ` Han Gao
2026-09-29 22:39   ` Drew Fustini
2026-09-29 22:39     ` Drew Fustini

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=20260929103539.7174B1F00898@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gaohan@iscas.ac.cn \
    --cc=robh@kernel.org \
    --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 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.