In a qcspmi_cmd_read() error case, the register is only returning the error
authormglocker <mglocker@openbsd.org>
Wed, 14 Aug 2024 10:54:58 +0000 (10:54 +0000)
committermglocker <mglocker@openbsd.org>
Wed, 14 Aug 2024 10:54:58 +0000 (10:54 +0000)
commit3f2f329f363f903bc04d7898d6c46a8b9c33819f
tree8fcc4b410ecea9e26a9aadca666cdc45274790e0
parent91460ded698f798e0767a04835c77be351a65eca
In a qcspmi_cmd_read() error case, the register is only returning the error
bit, not SPMI_STATUS_DONE.  Therefore, catch the error at the right place,
and print the specific error type.

ok patrick@
sys/dev/fdt/qcpmic.c
sys/dev/fdt/qcspmi.c