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 |
||
|---|---|---|
| .. | ||
| dwmmc.c | ||
| dwmmc_altera.c | ||
| dwmmc_hisi.c | ||
| dwmmc_reg.h | ||
| dwmmc_rockchip.c | ||
| dwmmc_samsung.c | ||
| dwmmc_starfive.c | ||
| dwmmc_var.h | ||