opnsense-src/sys/dev/mpr
Warner Losh c5041b4ee8 mpr/mps: Add comment explaining state transition
When we can't load a request due to a shortage of chains, we complete
the command's cm. However, to avoid an assert in mp?_complete_command,
we transition its state to INQUEUE. This transition is legitimate
because this is the only error path that terminates a cm before it's
enqueued and the only other alternative would be an additional transient
state that would add complexity w/o adding value. Add a comment
explainging all this because otherwise the transition can look a bit
weird.

Sponsored by:		Netflix
2022-04-28 11:19:39 -06:00
..
mpi mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mpr.c mpr/mps: Add comment explaining state transition 2022-04-28 11:19:39 -06:00
mpr_config.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_ioctl.h mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mpr_mapping.c mpr/mps(4): Make device mapping some more robust. 2021-04-23 23:36:51 -04:00
mpr_mapping.h Update copyright information 2018-12-26 10:43:31 +00:00
mpr_pci.c Refine the busdma template interface. Provide tools for filling in fields 2020-09-14 05:58:12 +00:00
mpr_sas.c mpr/mps: Fix a race in diagnostic reset 2022-01-25 19:15:46 -07:00
mpr_sas.h mpr/mps: Remove write-only flag and callout 2022-01-24 13:21:09 -07:00
mpr_sas_lsi.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_table.c Fix "set but not used" warnings in the mpr driver. This fixes a minor 2021-11-25 03:28:29 +00:00
mpr_table.h Convert some in-line printing of diagnostic into tables. 2017-09-09 22:02:36 +00:00
mpr_user.c mpr: add \n in diagnostic printf 2022-03-30 20:14:07 -04:00
mprvar.h mpr(4): Handle mprsas_alloc_tm() errors on device removal. 2021-08-20 10:03:32 -04:00