Author: manu
Date: Thu Apr 16 15:58:58 2020
New Revision: 360009
URL: https://svnweb.freebsd.org/changeset/base/360009

Log:
  mmc_fdt_helpers: Drain the cd pin taskqueue in mmc_fdt_gpio_teardown
  
  We have no use for it now.
  
  MFC after:    1 month

Modified:
  head/sys/dev/mmc/mmc_fdt_helpers.c

Modified: head/sys/dev/mmc/mmc_fdt_helpers.c
==============================================================================
--- head/sys/dev/mmc/mmc_fdt_helpers.c  Thu Apr 16 12:32:28 2020        
(r360008)
+++ head/sys/dev/mmc/mmc_fdt_helpers.c  Thu Apr 16 15:58:58 2020        
(r360009)
@@ -381,6 +381,8 @@ mmc_fdt_gpio_teardown(struct mmc_fdt_helper *helper)
                gpio_pin_release(helper->cd_pin);
        if (helper->cd_ires != NULL)
                bus_release_resource(helper->dev, SYS_RES_IRQ, 0, 
helper->cd_ires);
+
+       taskqueue_drain_timeout(taskqueue_swi_giant, &helper->cd_delayed_task);
 }
 
 bool
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to