diff options
| author | Clifford Wolf <[email protected]> | 2007-07-17 04:04:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-17 10:23:04 -0700 |
| commit | 698ca47e8dba93f4b001b06b4c7037b09ac6eb09 (patch) | |
| tree | 2e1f817e847d37b7397171d7fe15dc5ee0a79d07 /include/linux/debugobjects.h | |
| parent | 78961a5740374a8143f8fe120300f2ed160dd276 (diff) | |
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 <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions