Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2020 08:21:33 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363945 - head/sys/cam/mmc
Message-ID:  <202008060821.0768LXPi058040@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008060821.0768LXPi058040>