mmccam: Unhold the periph when we add the device
Otherwise the device node aren't created. Pointy hat to: manu Reported by: bz
This commit is contained in:
@@ -1505,6 +1505,7 @@ sdda_start_init(void *context, union ccb *start_ccb)
|
||||
|
||||
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 @@ sdda_start_init(void *context, union ccb *start_ccb)
|
||||
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);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user