lkml.org 
[lkml]   [2025]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Bluetooth: BT Driver: mediatek: add gpio pin to reset bt
From
On 28/05/2025 09:03, Zhangchao Zhang wrote:
> +
> +static int btmtk_reset_by_gpio(struct hci_dev *hdev)
> +{
> + struct btmtk_data *data = hci_get_priv(hdev);
> + struct btmtk_reset_gpio *reset_gpio_data;
> + struct device_node *node;
> + int reset_gpio_number;
> +
> + node = of_find_compatible_node(NULL, NULL, "mediatek,usb-bluetooth");

There is no such compatible. Just git grep for it.

> + if (node) {
> + reset_gpio_number = of_get_named_gpio(node, "reset-gpios", 0);

Where is the ABI documented? Anyway, you should not pick GPIOs from
random devices.


Best regards,
Krzysztof

\
 
 \ /
  Last update: 2025-05-28 14:08    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog