Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166671
b: refs/heads/master
c: 462d26b
h: refs/heads/master
i:
  166669: 236962f
  166667: c41fab1
  166663: 2893d37
  166655: 2adcf33
v: v3
  • Loading branch information
Sascha Hauer authored and Linus Torvalds committed Oct 1, 2009
1 parent fc0b006 commit 6d9bfda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cdeb00218b0d0eaf1329d1e6a0959ee3f0fa14c
refs/heads/master: 462d26b5d2f17b6258f33c4d1e3310089b006489
7 changes: 7 additions & 0 deletions trunk/drivers/spi/spi_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@ static int spi_imx_setupxfer(struct spi_device *spi,
config.speed_hz = t ? t->speed_hz : spi->max_speed_hz;
config.mode = spi->mode;

if (!config.speed_hz)
config.speed_hz = spi->max_speed_hz;
if (!config.bpw)
config.bpw = spi->bits_per_word;
if (!config.speed_hz)
config.speed_hz = spi->max_speed_hz;

spi_imx->config(spi_imx, &config);

return 0;
Expand Down

0 comments on commit 6d9bfda

Please sign in to comment.