Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74595
b: refs/heads/master
c: 2ed3551
h: refs/heads/master
i:
  74593: 2485441
  74591: 2fb06f3
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Dec 5, 2007
1 parent 6776d4d commit 0fcd6d2
Show file tree
Hide file tree
Showing 2 changed files with 13 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: fad91c890909aabab0d9858d50f3c8394ee16b21
refs/heads/master: 2ed355165ff4ec834a75770f2a15dc87f5e06088
12 changes: 12 additions & 0 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,18 @@ static int setup(struct spi_device *spi)

/* chip_info isn't always needed */
if (chip_info) {
/* Make sure people stop trying to set fields via ctl_reg
* when they should actually be using common SPI framework.
* Currently we let through: WOM EMISO PSSE GM SZ TIMOD.
* Not sure if a user actually needs/uses any of these,
* but let's assume (for now) they do.
*/
if (chip_info->ctl_reg & (SPE|MSTR|CPOL|CPHA|LSBF|SIZE)) {
dev_err(&spi->dev, "do not set bits in ctl_reg "
"that the SPI framework manages\n");
return -EINVAL;
}

chip->enable_dma = chip_info->enable_dma != 0
&& drv_data->master_info->enable_dma;
chip->ctl_reg = chip_info->ctl_reg;
Expand Down

0 comments on commit 0fcd6d2

Please sign in to comment.