mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chris Lu (陸稚泓)" <Chris.Lu@mediatek.com>
To: "Zhangchao Zhang (张超)" <ot_zhangchao.zhang@mediatek.com>,
	"johan.hedberg@gmail.com" <johan.hedberg@gmail.com>,
	"luiz.dentz@gmail.com" <luiz.dentz@gmail.com>,
	"marcel@holtmann.org" <marcel@holtmann.org>,
	"krzk@kernel.org" <krzk@kernel.org>
Cc: "Sean Wang" <Sean.Wang@mediatek.com>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"Steve Lee (李視誠)" <steve.lee@mediatek.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Deren Wu (武德仁)" <Deren.Wu@mediatek.com>,
	"Aaron Hou (侯俊仰)" <Aaron.Hou@mediatek.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] Bluetooth: BT Driver: mediatek: add gpio pin to reset bt
Date: Wed, 25 Jun 2025 03:42:30 +0000	[thread overview]
Message-ID: <451afb573ed6b218f2d8eeacdf1c3158c698c421.camel@mediatek.com> (raw)
In-Reply-To: <5a430a69-6182-4a34-b5df-5fd557411b68@kernel.org>

Hi Krzysztof,

Sorry for late reply. Some problem with Zhangchao's envrionment that he
can't reply the mail. So I'll reply on his behalf.

Before submitting the next version, we'd like to discuss and confirm
the questions you mentioned in v1 according to the suggestion from
Bluetooth Maintainer Luiz.

On Wed, 2025-05-28 at 14:07 +0200, Krzysztof Kozlowski wrote:
> 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> 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.
> 
In v1, we haven't prepared yaml file about dts setting yet. Does your
question above referring to the same thing?

Zhangchao will add it in the next submission and run it through
"dt_binding_check" according to the Kernel's document.

> 
> Best regards,
> Krzysztof

Thanks a lot,
Chris Lu


  reply	other threads:[~2025-06-25  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-28  7:03 Zhangchao Zhang
2025-05-28  7:46 ` Paul Menzel
2025-05-28 12:07 ` Krzysztof Kozlowski
2025-06-25  3:42   ` Chris Lu (陸稚泓) [this message]
2025-06-25  5:56     ` Krzysztof Kozlowski

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=451afb573ed6b218f2d8eeacdf1c3158c698c421.camel@mediatek.com \
    --to=chris.lu@mediatek.com \
    --cc=Aaron.Hou@mediatek.com \
    --cc=Deren.Wu@mediatek.com \
    --cc=Sean.Wang@mediatek.com \
    --cc=johan.hedberg@gmail.com \
    --cc=krzk@kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=ot_zhangchao.zhang@mediatek.com \
    --cc=steve.lee@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®