Skip to contentSkip to conversation

wireless: broadcom: brcm80211: use setup_timer() helper

PATCH In review Allen Pais 2 participants 7 messages Sep 21, 2017 – Sep 25, 2017 1 message not in the archive Broadcom BRCM80211 IEEE802.11 wireless drivers

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 1/1 wireless: broadcom: brcm80211: use setup_timer() helper

Use setup_timer function instead of initializing timer with the function and data fields.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +2 -4
index 613caca..5adce0e 100644
@@ -4144,10 +4144,8 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev)
 	init_waitqueue_head(&bus->dcmd_resp_wait);
 
 	/* Set up the watchdog timer */
-	init_timer(&bus->timer);
-	bus->timer.data = (unsigned long)bus;
-	bus->timer.function = brcmf_sdio_watchdog;
-
+	setup_timer(&bus->timer, brcmf_sdio_watchdog,
+		    (unsigned long)bus);
 	/* Initialize watchdog thread */
 	init_completion(&bus->watchdog_wait);
 	bus->watchdog_tsk = kthread_run(brcmf_sdio_watchdog_thread,
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Allen Pais

Use setup_timer function instead of initializing timer with the function and data fields.

The commit log is weirdly indented and no need to have "wireless:
broadcom:" in the title. I can fix both of those.

Signature · 1 line
Kalle Valo
#2 lore raw
In reply to Allen Pais
Quoted 4 lines · Allen

Use setup_timer function instead of initializing timer with the
function and data fields.

Also your name in patchwork is just "Allen", without your lastname. I can fix it this time, but please register to patchwork to fix your name. (Annoyingly patchwork takes the name from it's database, not from the "From:" header)

Signature · 3 lines
https://patchwork.kernel.org/patch/9963851/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 6 lines · Allen
Quoted 4 lines

Also your name in patchwork is just "Allen", without your lastname. I can fix it this time, but please register to patchwork to fix your name. (Annoyingly patchwork takes the name from it's database, not from the "From:" header)

Ah that's strange. I'll register again.

It's a frequent problem to have misconfigured name in patchwork. I guess it happens as the first mail patchwork sees from you is the one stored to the database. And if that mail has an incorrect name, that will be used from that onwards. You have only onetime chance to fix it yourself when you register to patchwork. After that only server admins can fix it and you need to contact kernel.org helpdesk.

Apparently in recent versions of patchwork this should work better but kernel.org hasn't updated it yet.

Signature · 1 line
Kalle Valo
author
#6 lore raw
Quoted 7 lines

It's a frequent problem to have misconfigured name in patchwork. I guess it happens as the first mail patchwork sees from you is the one stored to the database. And if that mail has an incorrect name, that will be used from that onwards. You have only onetime chance to fix it yourself when you register to patchwork. After that only server admins can fix it and you need to contact kernel.org helpdesk.

I have registered again and let's hope it picks the full name going forward.

Quoted 3 lines

Apparently in recent versions of patchwork this should work better but kernel.org hasn't updated it yet.

I'll write to the admins, ensure it is right.

Thank you.

#7 lore raw

Re: [1/1] brcmfmac: use setup_timer() helper

In reply to Allen Pais
Quoted 4 lines · Allen Pais

Use setup_timer function instead of initializing timer with the function and data fields.

Patch applied to wireless-drivers-next.git, thanks.

30ac40763939 brcmfmac: use setup_timer() helper

Signature · 3 lines
https://patchwork.kernel.org/patch/9963851/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches