summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/adc.h
diff options
context:
space:
mode:
authorHideo Saito <saito@densan.co.jp>2007-03-12 06:50:49 +0100
committerPaul Mundt <lethal@linux-sh.org>2007-03-12 06:50:49 +0100
commitbb68660943fc0dc2a5fa634243f3c6b7fb715626 (patch)
tree726f8f7acc53670d54d28841321a81f4e57693ab /include/asm-sh/adc.h
parentRevert "USB: pxa2xx_udc: fix hardcoded irq number" (diff)
downloadlinux-bb68660943fc0dc2a5fa634243f3c6b7fb715626.tar.xz
linux-bb68660943fc0dc2a5fa634243f3c6b7fb715626.zip
sh: Fix PCI BAR address-space wraparound.
When a SH7751R system includes a card that has wide range space like a graphics card, the pci-pci bridge controller can't set the correct address range. For example, when *lower_limit is 0xfd000000 and bar_size is 0x4000000, in the following code at arch/sh/drivers/pci/pci-auto.c, 0x0 is set in bar_value. pciauto_setup_bars() { ... bar_value = ((*lower_limit - 1) & ~(bar_size - 1)) + bar_size; ... *lower_limit = bar_value + bar_size; } As a result, 0x4000000 is set in *lower_limit, but this value is wrong. The following patch avoids this problem by checking the range of the value and refusing to update the BAR if the calculated value ends up being bogus. Signed-off-by: Hideo Saito <saito@densan.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/adc.h')
0 files changed, 0 insertions, 0 deletions