]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[intelxl] Allow expected admin queue command errors to be silenced
authorMichael Brown <mcb30@ipxe.org>
Thu, 17 Mar 2022 13:01:50 +0000 (13:01 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 11 Aug 2022 14:28:03 +0000 (15:28 +0100)
commitfaf26bf8b882a6d56cc76686e2f0f3b236541f9d
treeb2a496174820b13ee12ae65ee0cec00da49469fb
parentf0ea19b23858bfe59f7ee060aa640820d0f65087
[intelxl] Allow expected admin queue command errors to be silenced

The "clear PXE mode" admin queue command will return an EEXIST error
if the device is already in non-PXE mode, but there is no other admin
queue command that can be used to determine whether the device has
already been switched into non-PXE mode.

Provide a mechanism to allow expected errors from a command to be
silenced, to allow the "clear PXE mode" command to be cleanly used
without needing to first check the GLLAN_RCTL_0 register value.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intelxl.c