lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v66Vk8SMs1TOs+80Jy5fXumuYqCx59Tzd_N7wJAfyysQcw@mail.gmail.com>
Date: Sun, 30 Jun 2024 17:15:00 +0800
From: Chen-Yu Tsai <wens@...nel.org>
To: Jacobe Zang <jacobe.zang@...ion.com>
Cc: Stefan Wahren <wahrenst@....net>, "robh@...nel.org" <robh@...nel.org>, 
	"krzk+dt@...nel.org" <krzk+dt@...nel.org>, "heiko@...ech.de" <heiko@...ech.de>, 
	"kvalo@...nel.org" <kvalo@...nel.org>, "davem@...emloft.net" <davem@...emloft.net>, 
	"edumazet@...gle.com" <edumazet@...gle.com>, "kuba@...nel.org" <kuba@...nel.org>, 
	"pabeni@...hat.com" <pabeni@...hat.com>, "conor+dt@...nel.org" <conor+dt@...nel.org>, 
	"efectn@...tonmail.com" <efectn@...tonmail.com>, "dsimic@...jaro.org" <dsimic@...jaro.org>, 
	"jagan@...eble.ai" <jagan@...eble.ai>, 
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>, 
	"linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>, 
	"linux-rockchip@...ts.infradead.org" <linux-rockchip@...ts.infradead.org>, 
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "arend@...adcom.com" <arend@...adcom.com>, 
	"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>, 
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>, "megi@....cz" <megi@....cz>, 
	"duoming@....edu.cn" <duoming@....edu.cn>, "bhelgaas@...gle.com" <bhelgaas@...gle.com>, 
	"minipli@...ecurity.net" <minipli@...ecurity.net>, 
	"brcm80211@...ts.linux.dev" <brcm80211@...ts.linux.dev>, 
	"brcm80211-dev-list.pdl@...adcom.com" <brcm80211-dev-list.pdl@...adcom.com>, Nick Xie <nick@...das.com>
Subject: Re: [PATCH v3 4/5] wifi: brcmfmac: Add optional lpo clock enable support

On Sun, Jun 30, 2024 at 5:10 PM Jacobe Zang <jacobe.zang@...ion.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


ChenYu

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ