Re: [PATCH v8] Bluetooth: mediatek: add gpio pin to reset bt

From: Krzysztof Kozlowski
Date: Thu Sep 25 2025 - 20:43:39 EST


On Thu, 25 Sept 2025 at 18:21, Zhangchao Zhang
<ot_zhangchao.zhang@xxxxxxxxxxxx> wrote:
>
> Support the platform Bluetooth to be reset by hardware pin,
> when a Bluetooth exception occurs, attempt to reset the
> Bluetooth module using the hardware reset pin, as this
> method is generally more stable and reliable than a
> software reset. If the hardware reset pin is not specified
> in the device tree, fall back to the existing software
> reset mechanism to ensure backward compatibility.
>
> Co-developed: Sean Wang <Sean.Wang@xxxxxxxxxxxx>
> Co-developed: Hao Qin <hao.qin@xxxxxxxxxxxx>
> Co-developed: Chris Lu <chris.lu@xxxxxxxxxxxx>

Wrong chain. Follow submitting patches.

> Signed-off-by: Zhangchao Zhang <ot_zhangchao.zhang@xxxxxxxxxxxx>
>
> V7-->V8 modifications:
> -Currently, the universal reset GPIO can be found by configuring DTS.
> USB bus can get the device node and reset GPIO in the probe phase.
> It is fully compatible with other vendors' methods of getting reset
> GPIO. Therefore, the previous complex methods of adding the compatible
> string in btmtk.c to get GPIO is discarded. Abi files and yaml files
> are no longer needed. When a Bluetooth exception occurs, the existence
> of GPIO will be determined first. This change improves the robustness
> of Bluetooth recovery on platforms that support hardware reset, while
> maintaining support for platforms that do not.


You didn't even bother to compile this code, which is obvious from the diff.

I think you don't understand how patches and Git work, but these are
prerequisites for submitting your work here.

Please share how this passed your internal review - four people had to
write this code which doesn't even compile.