aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-05-26 08:05:25 -0400
committerMark Brown <broonie@linaro.org>2014-05-26 10:28:47 -0400
commit80874d8c9e9cbfa195572dfea46f2314098b3869 (patch)
tree641a05310b18cf157fc0f56f84e850f812326557
parenteee668a92bc775030178c8a7f0d0abe9cce441d7 (diff)
spi: core: Ignore unsupported spi-[tr]x-bus-width property values
Rejecting unsupported values of spi-tx-bus-width and spi-rx-bus-width may break compatibility with future DTs. Just ignore them, falling back to Single SPI Transfers. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/spi/spi.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index f01cbb41e6ca..147e0707f43f 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1247,11 +1247,10 @@ static void of_register_spi_devices(struct spi_master *master)
1247 spi->mode |= SPI_TX_QUAD; 1247 spi->mode |= SPI_TX_QUAD;
1248 break; 1248 break;
1249 default: 1249 default:
1250 dev_err(&master->dev, 1250 dev_warn(&master->dev,
1251 "spi-tx-bus-width %d not supported\n", 1251 "spi-tx-bus-width %d not supported\n",
1252 value); 1252 value);
1253 spi_dev_put(spi); 1253 break;
1254 continue;
1255 } 1254 }
1256 } 1255 }
1257 1256
@@ -1266,11 +1265,10 @@ static void of_register_spi_devices(struct spi_master *master)
1266 spi->mode |= SPI_RX_QUAD; 1265 spi->mode |= SPI_RX_QUAD;
1267 break; 1266 break;
1268 default: 1267 default:
1269 dev_err(&master->dev, 1268 dev_warn(&master->dev,
1270 "spi-rx-bus-width %d not supported\n", 1269 "spi-rx-bus-width %d not supported\n",
1271 value); 1270 value);
1272 spi_dev_put(spi); 1271 break;
1273 continue;
1274 } 1272 }
1275 } 1273 }
1276 1274