* [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check
@ 2022-10-24 12:40 Linus Walleij
2022-10-24 14:26 ` Arend Van Spriel
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2022-10-24 12:40 UTC (permalink / raw)
To: Arend van Spriel, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
Wright Feng
Cc: linux-wireless, brcm80211-dev-list.pdl, brcm80211-dev-list,
Linus Walleij
The driver looks up the BCMA parent GPIO driver and checks that
this succeeds, but then it goes on to use the deprecated GPIO
call gpio_is_valid() to check the consistency of the .base
member of the BCMA GPIO struct. Surely this belongs in the
BCMA driver: we cannot have all drivers performing cosistency
checks on the internals of things they are passed.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c
index c1b9ac692d26..1cce92c5780f 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c
@@ -63,7 +63,7 @@ int brcms_led_register(struct brcms_info *wl)
int hwnum = -1;
enum gpio_lookup_flags lflags = GPIO_ACTIVE_HIGH;
- if (!bcma_gpio || !gpio_is_valid(bcma_gpio->base))
+ if (!bcma_gpio)
return -ENODEV;
/* find radio enabled LED */
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check
2022-10-24 12:40 [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check Linus Walleij
@ 2022-10-24 14:26 ` Arend Van Spriel
2022-10-25 20:09 ` Kalle Valo
0 siblings, 1 reply; 4+ messages in thread
From: Arend Van Spriel @ 2022-10-24 14:26 UTC (permalink / raw)
To: Linus Walleij, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
Wright Feng
Cc: linux-wireless, brcm80211-dev-list.pdl, brcm80211-dev-list
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
On October 24, 2022 2:40:08 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> The driver looks up the BCMA parent GPIO driver and checks that
> this succeeds, but then it goes on to use the deprecated GPIO
> call gpio_is_valid() to check the consistency of the .base
> member of the BCMA GPIO struct. Surely this belongs in the
> BCMA driver: we cannot have all drivers performing cosistency
Should be: consistency
>
> checks on the internals of things they are passed.
Apart from the typo in the subject and missing wifi: prefix (replace
'brcm80211' by 'wifi')...
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check
2022-10-24 14:26 ` Arend Van Spriel
@ 2022-10-25 20:09 ` Kalle Valo
2022-10-26 7:52 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Kalle Valo @ 2022-10-25 20:09 UTC (permalink / raw)
To: Arend Van Spriel
Cc: Linus Walleij, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
Wright Feng, linux-wireless, brcm80211-dev-list.pdl,
brcm80211-dev-list
Arend Van Spriel <arend.vanspriel@broadcom.com> writes:
> On October 24, 2022 2:40:08 PM Linus Walleij <linus.walleij@linaro.org> wrote:
>
>> The driver looks up the BCMA parent GPIO driver and checks that
>> this succeeds, but then it goes on to use the deprecated GPIO
>> call gpio_is_valid() to check the consistency of the .base
>> member of the BCMA GPIO struct. Surely this belongs in the
>> BCMA driver: we cannot have all drivers performing cosistency
>
> Should be: consistency
>
>>
>> checks on the internals of things they are passed.
>
> Apart from the typo in the subject and missing wifi: prefix (replace
> 'brcm80211' by 'wifi')...
I can fix those.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check
2022-10-25 20:09 ` Kalle Valo
@ 2022-10-26 7:52 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2022-10-26 7:52 UTC (permalink / raw)
To: Kalle Valo
Cc: Arend Van Spriel, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
Wright Feng, linux-wireless, brcm80211-dev-list.pdl,
brcm80211-dev-list
On Tue, Oct 25, 2022 at 10:09 PM Kalle Valo <kvalo@kernel.org> wrote:
> Arend Van Spriel <arend.vanspriel@broadcom.com> writes:
>
> > On October 24, 2022 2:40:08 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> >
> >> The driver looks up the BCMA parent GPIO driver and checks that
> >> this succeeds, but then it goes on to use the deprecated GPIO
> >> call gpio_is_valid() to check the consistency of the .base
> >> member of the BCMA GPIO struct. Surely this belongs in the
> >> BCMA driver: we cannot have all drivers performing cosistency
> >
> > Should be: consistency
> >
> >>
> >> checks on the internals of things they are passed.
> >
> > Apart from the typo in the subject and missing wifi: prefix (replace
> > 'brcm80211' by 'wifi')...
>
> I can fix those.
I am sending a combined patch with this and the other bcma patch
because they happen to depend on each other. Dunno how to tag
a patch that affects bcma and brcn80211 at the same time so you
will probably have to edit it anyway.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-26 7:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 12:40 [PATCH] brcm80211: brcmsmac: Drop BMCMA consistency check Linus Walleij
2022-10-24 14:26 ` Arend Van Spriel
2022-10-25 20:09 ` Kalle Valo
2022-10-26 7:52 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).