summaryrefslogtreecommitdiffstats
path: root/drivers/net/tc35815.c
diff options
context:
space:
mode:
authorDmitri Vorobiev2008-01-14 22:27:46 +0100
committerRalf Baechle2008-01-22 01:35:23 +0100
commit0487de91427925e7c43debeb948bdf53b10ef32c (patch)
treee911ecd1291b7ac0c7fe85d1a28102a07e150f21 /drivers/net/tc35815.c
parent[MIPS] SMTC: Fix build error. (diff)
downloadkernel-qcow2-linux-0487de91427925e7c43debeb948bdf53b10ef32c.tar.gz
kernel-qcow2-linux-0487de91427925e7c43debeb948bdf53b10ef32c.tar.xz
kernel-qcow2-linux-0487de91427925e7c43debeb948bdf53b10ef32c.zip
[MIPS] Malta: Fix reading the PCI clock frequency on big-endian
The JMPRS register on Malta boards keeps a 32-bit CPU-endian value. The readw() function assumes that the value it reads is a little-endian 16-bit number. Therefore, using readw() to obtain the value of the JMPRS register is a mistake. This error leads to incorrect reading of the PCI clock frequency on big-endian during board start-up. Change readw() to __raw_readl(). This was tested by injecting a call to printk() and verifying that the value of the jmpr variable was consistent with current setting of the JP4 "PCI CLK" jumper. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/net/tc35815.c')
0 files changed, 0 insertions, 0 deletions