mirror of
https://github.com/opnsense/src.git
synced 2026-06-21 06:29:21 -04:00
In general sprinkle locking assertions and harmonized KASSERTs throughout the upper part of the driver to document expectations. In dwmmc_cmd_done() "cmd" should be set correctly and be used for both MMCCAM and classic mmc rather than special-casing mmccam. In dwmmc_next_operation() place variable declarations on the top for both cases before the first debug and lock assertion calls; then factor out common parts at the end and put both cases in the same order. By calling dwmmc_next_operation() directly from both dwmmc_request() in the mmc case, and dwmmc_cam_request() in the mmccase (rather than) chaining calls in the latter, we avoid unlocking the sc in the mmccam case and have a consistent call path from both; also removing the mmccam #ifdef from dwmmc_request() brings more clarity. In dwmmc_next_operation() enhance the panic/error messages with some extra information and assert that we come in with a cam pinfo on CAM_ACTIVE_INDEX. MFC after: 3 days Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D51628 |
||
|---|---|---|
| .. | ||
| host | ||
| bridge.h | ||
| mmc.c | ||
| mmc_fdt_helpers.c | ||
| mmc_fdt_helpers.h | ||
| mmc_helpers.c | ||
| mmc_helpers.h | ||
| mmc_ioctl.h | ||
| mmc_private.h | ||
| mmc_pwrseq.c | ||
| mmc_pwrseq_if.m | ||
| mmc_subr.c | ||
| mmc_subr.h | ||
| mmcbr_if.m | ||
| mmcbrvar.h | ||
| mmcbus_if.m | ||
| mmcreg.h | ||
| mmcsd.c | ||
| mmcspi.c | ||
| mmcvar.h | ||