Author: manu
Date: Thu Aug  6 08:21:33 2020
New Revision: 363945
URL: https://svnweb.freebsd.org/changeset/base/363945

Log:
  mmccam: Unhold the periph when we add the device
  
  Otherwise the device node aren't created.
  
  Pointy hat to:             manu
  Reported by:  bz

Modified:
  head/sys/cam/mmc/mmc_da.c

Modified: head/sys/cam/mmc/mmc_da.c
==============================================================================
--- head/sys/cam/mmc/mmc_da.c   Thu Aug  6 08:06:07 2020        (r363944)
+++ head/sys/cam/mmc/mmc_da.c   Thu Aug  6 08:21:33 2020        (r363945)
@@ -1505,6 +1505,7 @@ finish_hs_tests:
 
        softc->state = SDDA_STATE_NORMAL;
 
+       cam_periph_unhold(periph);
        /* MMC partitions support */
        if (mmcp->card_features & CARD_FEATURE_MMC && mmc_get_spec_vers(periph) 
>= 4) {
                sdda_process_mmc_partitions(periph, start_ccb);
@@ -1516,6 +1517,7 @@ finish_hs_tests:
                    sdda_get_read_only(periph, start_ccb));
                softc->part_curr = 0;
        }
+       cam_periph_hold(periph, PRIBIO|PCATCH);
 
        xpt_announce_periph(periph, softc->card_id_string);
        /*
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to