linux-kernel-test/drivers/spi
Clifford Wolf 698ca47e8d spi_mpc83xx.c underclocking hotfix
The MPC83xx SPI controller clock divider can divide the system clock by not
more then 1024.  The spi_mpc83xx driver does not check this and silently
writes garbage to the SPI controller registers when asked to run at lower
frequencies.  I've tried to run the SPI on a 266MHz MPC8349E with 100kHz
for debugging a bus problem and suddenly was confronted with a 2nd problem
to debug..  ;-)

The patch adds an additional check which avoids writing garbage to the SPI
controller registers and warn the user about it.  This might help others to
avoid simmilar problems.

Cc: Kumar Gala <galak@gate.crashing.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:04 -07:00
..
at25.c sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes 2007-07-11 16:09:09 -07:00
atmel_spi.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
atmel_spi.h [PATCH] SPI: atmel_spi driver 2007-02-14 08:09:53 -08:00
au1550_spi.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
Kconfig spi_lm70llp parport adapter driver 2007-07-17 10:23:04 -07:00
Makefile spi_lm70llp parport adapter driver 2007-07-17 10:23:04 -07:00
mpc52xx_psc_spi.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
omap_uwire.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
pxa2xx_spi.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
spi_bfin5xx.c Blackfin SPI driver: fix bug SPI DMA incomplete transmission 2007-06-11 17:34:17 +08:00
spi_bitbang.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
spi_butterfly.c minor spi_butterfly cleanup 2007-05-08 11:15:15 -07:00
spi_imx.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
spi_lm70llp.c spi_lm70llp parport adapter driver 2007-07-17 10:23:04 -07:00
spi_mpc83xx.c spi_mpc83xx.c underclocking hotfix 2007-07-17 10:23:04 -07:00
spi_s3c24xx_gpio.c [PATCH] spi_s3c2410_gpio.c spi mode 2 and 3 support 2007-02-20 17:10:16 -08:00
spi_s3c24xx.c SPI controller drivers: check for unsupported modes 2007-07-17 10:23:04 -07:00
spi.c SPI dynamic busid generation bugfix 2007-06-04 13:25:09 -07:00
spidev.c spidev compiler warning gone 2007-07-17 10:23:04 -07:00