Message ID | 20200817090637.26887-4-allen.cryptic@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | de7dbc2dbef71aba9331f707e5339874981c2a7f |
Delegated to: | Kalle Valo |
Headers | show |
Series | wirless: convert tasklets to use new tasklet_setup() | expand |
Hello, looking at the other patches in this series, I think this patch's subject "ath:" tag was supposed to be "carl9170:"? (so the full subject is: "wireless: carl9170: convert tasklets to use new tasklet_setup() API") On 2020-08-17 11:06, Allen Pais wrote: > From: Allen Pais <allen.lkml@gmail.com> > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain Perier <romain.perier@gmail.com> > Signed-off-by: Allen Pais <allen.lkml@gmail.com> Seems to work. Acked-by: Christian Lamparter <chunkeey@gmail.com> > --- > drivers/net/wireless/ath/carl9170/usb.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c > index ead79335823a..e4eb666c6eea 100644 > --- a/drivers/net/wireless/ath/carl9170/usb.c > +++ b/drivers/net/wireless/ath/carl9170/usb.c > @@ -377,9 +377,9 @@ void carl9170_usb_handle_tx_err(struct ar9170 *ar) > } > } > > -static void carl9170_usb_tasklet(unsigned long data) > +static void carl9170_usb_tasklet(struct tasklet_struct *t) > { > - struct ar9170 *ar = (struct ar9170 *) data; > + struct ar9170 *ar = from_tasklet(ar, t, usb_tasklet); > > if (!IS_INITIALIZED(ar)) > return; > @@ -1082,8 +1082,7 @@ static int carl9170_usb_probe(struct usb_interface *intf, > init_completion(&ar->cmd_wait); > init_completion(&ar->fw_boot_wait); > init_completion(&ar->fw_load_wait); > - tasklet_init(&ar->usb_tasklet, carl9170_usb_tasklet, > - (unsigned long)ar); > + tasklet_setup(&ar->usb_tasklet, carl9170_usb_tasklet); > > atomic_set(&ar->tx_cmd_urbs, 0); > atomic_set(&ar->tx_anch_urbs, 0); >
Allen Pais <allen.cryptic@gmail.com> wrote: > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain Perier <romain.perier@gmail.com> > Signed-off-by: Allen Pais <allen.lkml@gmail.com> > Acked-by: Christian Lamparter <chunkeey@gmail.com> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Patch applied to ath-next branch of ath.git, thanks. de7dbc2dbef7 carl9170: convert tasklets to use new tasklet_setup() API
diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c index ead79335823a..e4eb666c6eea 100644 --- a/drivers/net/wireless/ath/carl9170/usb.c +++ b/drivers/net/wireless/ath/carl9170/usb.c @@ -377,9 +377,9 @@ void carl9170_usb_handle_tx_err(struct ar9170 *ar) } } -static void carl9170_usb_tasklet(unsigned long data) +static void carl9170_usb_tasklet(struct tasklet_struct *t) { - struct ar9170 *ar = (struct ar9170 *) data; + struct ar9170 *ar = from_tasklet(ar, t, usb_tasklet); if (!IS_INITIALIZED(ar)) return; @@ -1082,8 +1082,7 @@ static int carl9170_usb_probe(struct usb_interface *intf, init_completion(&ar->cmd_wait); init_completion(&ar->fw_boot_wait); init_completion(&ar->fw_load_wait); - tasklet_init(&ar->usb_tasklet, carl9170_usb_tasklet, - (unsigned long)ar); + tasklet_setup(&ar->usb_tasklet, carl9170_usb_tasklet); atomic_set(&ar->tx_cmd_urbs, 0); atomic_set(&ar->tx_anch_urbs, 0);