]> git.dujemihanovic.xyz Git - u-boot.git/commit
[PATCH] Avoid assigning PCI resources from zero address
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Mon, 23 Apr 2007 13:30:39 +0000 (15:30 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 5 May 2007 19:31:08 +0000 (21:31 +0200)
commitb7598a43f2b421a713d8135e98a42c37d9eb9df0
tree79cf9f5f2e77365af24831a2345190f3dcc861e5
parent9ffd451afeb08e5be7ddae680487ec962b2bca25
[PATCH] Avoid assigning PCI resources from zero address

If a PCI IDE card happens to get a zero address assigned to it, the Linux IDE
core complains and IDE drivers fails to work.  Also, assigning zero to a BAR
was illegal according to PCI 2.1 (the later revisions seem to have excluded the
sentence about "0" being considered an invalid address) -- so, use a reasonable
starting value of 0x1000 (that's what the most Linux archs are using).

Alternatively, one might have fixed the calls to pci_set_region() individually
(some code even seems to have taken care of this issue) but that would have
been a lot more work. :-)

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Stefan Roese <sr@denx.de>
drivers/pci_auto.c