GB_SPI_STATE_OP_DONE
if (msg->state != GB_SPI_STATE_OP_DONE)
while (msg->state != GB_SPI_STATE_OP_DONE) {
msg->state = GB_SPI_STATE_OP_DONE;