summaryrefslogtreecommitdiff
path: root/hsspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hsspi.c')
-rw-r--r--hsspi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hsspi.c b/hsspi.c
index 0be5a94..ad0d6ea 100644
--- a/hsspi.c
+++ b/hsspi.c
@@ -249,7 +249,8 @@ static int spi_xfer(struct hsspi *hsspi, const void *tx, void *rx,
continue;
}
- if (!(hsspi->soc->flags & STC_SOC_RDY)) {
+ if (!(hsspi->soc->flags & STC_SOC_RDY) ||
+ (hsspi->soc->flags == 0xff)) {
dev_err(&hsspi->spi->dev,
"FW not ready (flags %#02x)\n",
hsspi->soc->flags);