Skip to content

Commit

Permalink
the mmcsd driver (and fdt slicer) declare dependencies on a non-exist…
Browse files Browse the repository at this point in the history
…ence g_flashmap module, which should be geom_flashmap. with this change, we can access and mount drives on the StarFive VisionFive 2 after loading the mmcsd kld (still relying on the clock hack)
  • Loading branch information
csgordon committed Oct 9, 2023
1 parent fd72e1e commit 95e24f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sys/dev/fdt/fdt_slicer.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ static moduledata_t fdt_slicer_mod = {
};

DECLARE_MODULE(fdt_slicer, fdt_slicer_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
MODULE_DEPEND(fdt_slicer, g_flashmap, 0, 0, 0);
MODULE_DEPEND(fdt_slicer, geom_flashmap, 0, 0, 0);
MODULE_VERSION(fdt_slicer, 1);
2 changes: 1 addition & 1 deletion sys/dev/mmc/mmcsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,5 +1564,5 @@ mmcsd_handler(module_t mod __unused, int what, void *arg __unused)
}

DRIVER_MODULE(mmcsd, mmc, mmcsd_driver, mmcsd_handler, NULL);
MODULE_DEPEND(mmcsd, g_flashmap, 0, 0, 0);
MODULE_DEPEND(mmcsd, geom_flashmap, 0, 0, 0);
MMC_DEPEND(mmcsd);
4 changes: 2 additions & 2 deletions sys/geom/geom_flashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ static struct g_class g_flashmap_class = {
.taste = g_flashmap_taste,
};

DECLARE_GEOM_CLASS(g_flashmap_class, g_flashmap);
MODULE_VERSION(g_flashmap, 0);
DECLARE_GEOM_CLASS(g_flashmap_class, geom_flashmap);
MODULE_VERSION(geom_flashmap, 0);

0 comments on commit 95e24f5

Please sign in to comment.