Sergei Shtylyov b7598a43f2 [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>
2007-05-05 21:31:08 +02:00
..
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2002-11-03 00:24:07 +00:00
2005-01-10 00:01:04 +00:00
2006-08-23 11:04:43 -05:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2006-03-11 22:53:33 +01:00
2005-10-13 16:45:02 +02:00
2004-08-01 22:48:16 +00:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2005-10-28 22:30:33 +02:00
2006-03-06 13:03:37 +01:00
2006-03-12 22:14:20 +01:00
2006-03-11 22:53:33 +01:00
2006-03-11 22:53:33 +01:00
2007-04-14 16:14:06 +02:00
2007-04-14 16:14:06 +02:00
2007-04-18 17:07:26 +02:00
2006-07-21 15:24:56 +02:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2005-10-28 22:30:33 +02:00
2005-10-13 16:45:02 +02:00
2002-11-03 00:24:07 +00:00
2005-09-25 18:41:04 +02:00
2005-09-23 11:05:55 +02:00
2006-06-19 11:02:41 +02:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2006-07-21 15:24:56 +02:00
2006-07-21 15:24:56 +02:00
2004-01-02 14:00:00 +00:00
2006-07-21 20:57:53 +02:00
2004-07-01 16:30:44 +00:00
2004-07-01 16:30:44 +00:00
2006-10-09 00:42:01 +02:00
2005-03-27 23:41:39 +00:00
2006-03-12 02:10:00 +01:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2007-02-27 14:26:04 +01:00
2005-08-06 01:02:27 +02:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2006-07-21 15:24:56 +02:00
2007-04-23 19:58:28 -05:00
2007-03-04 01:36:05 +01:00
2004-03-25 15:14:43 +00:00
2004-03-25 15:14:43 +00:00
2002-09-17 21:37:55 +00:00