Thread (11 messages) 11 messages, 3 authors, 2024-08-10

Re: [PATCH v9 4/5] wifi: brcmfmac: Add optional lpo clock enable support

From: Arend Van Spriel <arend.vanspriel@broadcom.com>
Date: 2024-08-10 11:23:46
Also in: linux-arm-kernel, linux-devicetree, linux-rockchip, linux-wireless, lkml

On August 10, 2024 5:52:11 AM Jacobe Zang [off-list ref] wrote:
WiFi modules often require 32kHz clock to function. Add support to
enable the clock to PCIe driver and move "brcm,bcm4329-fmac" check
to the top of brcmf_of_probe. Change function prototypes from void
to int and add appropriate errno's for return values that will be
send to bus when error occurred.

Co-developed-by: Ondrej Jirman <megi@xff.cz>
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Co-developed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Jacobe Zang <redacted>
---
.../broadcom/brcm80211/brcmfmac/bcmsdh.c      |  4 +-
.../broadcom/brcm80211/brcmfmac/common.c      |  3 +-
.../wireless/broadcom/brcm80211/brcmfmac/of.c | 53 +++++++++++--------
.../wireless/broadcom/brcm80211/brcmfmac/of.h |  9 ++--
.../broadcom/brcm80211/brcmfmac/pcie.c        |  3 ++
.../broadcom/brcm80211/brcmfmac/sdio.c        | 24 ++++++---
.../broadcom/brcm80211/brcmfmac/usb.c         |  3 ++
7 files changed, 63 insertions(+), 36 deletions(-)
[...]
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 
b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
index 6b38d9de71af6..461b7ff3be24b 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
[...]
quoted hunk ↗ jump to hunk
@@ -4474,8 +4480,10 @@ struct brcmf_sdio *brcmf_sdio_probe(struct 
brcmf_sdio_dev *sdiodev)
 bus->brcmf_wq = wq;

 /* attempt to attach to the dongle */
- if (!(brcmf_sdio_probe_attach(bus))) {
+ probe_attach_result = brcmf_sdio_probe_attach(bus);
There is no need for probe_attach_result anymore. Just use ret variable 
instead.
+ if (probe_attach_result < 0) {
 brcmf_err("brcmf_sdio_probe_attach failed\n");
+ ret = probe_attach_result;
 goto fail;
 }
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help