From: Arend Van Spriel <arend.vanspriel@broadcom.com>
To: Stefan Wahren <wahrenst@gmx.net>, <wens@kernel.org>,
Jacobe Zang <jacobe.zang@wesion.com>
Cc: <robh@kernel.org>, <krzk+dt@kernel.org>, <heiko@sntech.de>,
<kvalo@kernel.org>, <davem@davemloft.net>, <edumazet@google.com>,
<kuba@kernel.org>, <pabeni@redhat.com>, <conor+dt@kernel.org>,
<efectn@protonmail.com>, <dsimic@manjaro.org>, <jagan@edgeble.ai>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <arend@broadcom.com>,
<linux-wireless@vger.kernel.org>, <netdev@vger.kernel.org>,
<megi@xff.cz>, <duoming@zju.edu.cn>, <bhelgaas@google.com>,
<minipli@grsecurity.net>, <brcm80211@lists.linux.dev>,
<brcm80211-dev-list.pdl@broadcom.com>, Nick Xie <nick@khadas.com>
Subject: Re: [PATCH v3 4/5] wifi: brcmfmac: Add optional lpo clock enable support
Date: Sun, 30 Jun 2024 12:51:44 +0200 [thread overview]
Message-ID: <19068c5ae00.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> (raw)
In-Reply-To: <8e44631c-955f-42de-bb2f-f3a32c79f1c1@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
On June 30, 2024 11:54:43 AM Stefan Wahren <wahrenst@gmx.net> wrote:
> Am 30.06.24 um 11:15 schrieb Chen-Yu Tsai:
>> On Sun, Jun 30, 2024 at 5:10 PM Jacobe Zang <jacobe.zang@wesion.com> wrote:
>>> Hi Stefan,
>>>
>>>>> WiFi modules often require 32kHz clock to function. Add support to
>>>>> enable the clock to PCIe driver.
>>>> the low power clock is independent from the host interface like PCIe. So
>>>> the clock handling should move to the common code. Sorry, not i cannot
>>>> give a good suggestion, what's the best place for this.
>>> I think the clock is used by the PCIe device so enable it in this file.
>>> Also I checked
>>> use of clock which in spi[0] or sdio[0] device was enabled similarly to this.
>>>
>>> [0]
>>> https://lore.kernel.org/all/20210806081229.721731-4-claudiu.beznea@microchip.com/
>> You're looking at the wrong driver. For brcmfmac, the lpo clock is toggled
>> by the MMC pwrseq code. And for the Bluetooth side (where it really matters)
>> for UARTs, it is in drivers/bluetooth/hci_bcm.c. and documented in the
>> binding Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
> Thanks for clarifying. So this change handles the PCIe case without
> bluetooth. For USB the clock control doesn't make sense.
>
> Sorry for the noise
So someone could end up with both wifi and bt LPO clock defined in DTS
file. Not sure if that can be expressed and validated in device tree, but
at the least there should be a fair warning in both binding files that
there can be only one!
The LPO clock matters to the chip. It is not specific to the BT part. The
clock is important for the power-up cycle. The timing difference WL_REG_ON
and BT_REG_ON is expressed in LPO clock cycles.
Regards,
Arend
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]
next prev parent reply other threads:[~2024-06-30 10:51 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-30 7:36 [PATCH v3 0/5] Add AP6275P wireless support Jacobe Zang
2024-06-30 7:36 ` [PATCH v3 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Jacobe Zang
2024-07-02 18:56 ` Arend van Spriel
2024-06-30 7:36 ` [PATCH v3 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Wi-Fi device Jacobe Zang
2024-06-30 8:26 ` Stefan Wahren
2024-07-01 8:58 ` Krzysztof Kozlowski
2024-07-02 19:05 ` Arend van Spriel
2024-06-30 7:36 ` [PATCH v3 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Jacobe Zang
2024-07-01 8:46 ` Krzysztof Kozlowski
2024-07-01 10:38 ` Jacobe Zang
2024-07-01 11:16 ` Krzysztof Kozlowski
2024-07-01 11:31 ` Jacobe Zang
2024-07-01 13:04 ` Krzysztof Kozlowski
2024-06-30 7:36 ` [PATCH v3 4/5] wifi: brcmfmac: Add optional lpo clock enable support Jacobe Zang
2024-06-30 8:43 ` Stefan Wahren
2024-06-30 9:09 ` Jacobe Zang
2024-06-30 9:15 ` Chen-Yu Tsai
2024-06-30 9:54 ` Stefan Wahren
2024-06-30 10:51 ` Arend Van Spriel [this message]
2024-07-01 10:57 ` Jacobe Zang
2024-06-30 11:01 ` Arend Van Spriel
2024-07-01 12:03 ` kernel test robot
2024-07-01 13:48 ` kernel test robot
2024-07-02 19:20 ` Arend van Spriel
2024-06-30 7:36 ` [PATCH v3 5/5] wifi: brcmfmac: Add support for AP6275P Jacobe Zang
2024-06-30 8:34 ` Stefan Wahren
2024-06-30 8:36 ` Ondřej Jirman
2024-06-30 8:37 ` Stefan Wahren
2024-06-30 11:17 ` Arend Van Spriel
2024-07-08 10:09 ` Jacobe Zang
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=19068c5ae00.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=arend@broadcom.com \
--cc=bhelgaas@google.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dsimic@manjaro.org \
--cc=duoming@zju.edu.cn \
--cc=edumazet@google.com \
--cc=efectn@protonmail.com \
--cc=heiko@sntech.de \
--cc=jacobe.zang@wesion.com \
--cc=jagan@edgeble.ai \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=megi@xff.cz \
--cc=minipli@grsecurity.net \
--cc=netdev@vger.kernel.org \
--cc=nick@khadas.com \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=wahrenst@gmx.net \
--cc=wens@kernel.org \
/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®