Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212338
b: refs/heads/master
c: 4190f6a
h: refs/heads/master
v: v3
  • Loading branch information
Barry Song authored and Mike Frysinger committed Oct 18, 2010
1 parent 76bc2a3 commit a260c2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e72dcde72c712708e2145ab0ecff539ff4a4c7fb
refs/heads/master: 4190f6a51f3f9c7c8298202d31b3ead9381c33f1
9 changes: 7 additions & 2 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,14 @@ static int bfin_spi_setup(struct spi_device *spi)
*/
chip->baud = hz_to_spi_baud(spi->max_speed_hz);
chip->chip_select_num = spi->chip_select;
if (chip->chip_select_num < MAX_CTRL_CS)
if (chip->chip_select_num < MAX_CTRL_CS) {
if (!(spi->mode & SPI_CPHA))
dev_warn(&spi->dev, "Warning: SPI CPHA not set:"
" Slave Select not under software control!\n"
" See Documentation/blackfin/bfin-spi-notes.txt");

chip->flag = (1 << spi->chip_select) << 8;
else
} else
chip->cs_gpio = chip->chip_select_num - MAX_CTRL_CS;

if (chip->enable_dma && chip->pio_interrupt) {
Expand Down

0 comments on commit a260c2b

Please sign in to comment.