Status 0x30 should never happen with spi transfers.
diff --git a/mcp2210.c b/mcp2210.c
index 501c35e..e7c97db 100644
--- a/mcp2210.c
+++ b/mcp2210.c
@@ -342,6 +342,12 @@ retry:
memcpy(data + offset, buf + 4, *length);
offset += *length;
}
+ if (status == 0x30) {
+ /* This shouldn't happen */
+ applog(LOG_DEBUG, "%s %d: SPI expecting more data inappropriately",
+ cgpu->drv->name, cgpu->device_id);
+ return false;
+ }
if (offset < orig_len) {
*length = 0;
goto retry;