Cc: Len Brown <lenb@...>, <linux-acpi@...>, <linux-kernel@...>, Adam Belay <ambx1@...>, Li Shaohua <shaohua.li@...>, Matthieu Castet <castet.matthieu@...>, Thomas Renninger <trenn@...>, Rene Herman <rene.herman@...>, Jaroslav Kysela <perex@...>, Andrew Morton <akpm@...>, Takashi Iwai <tiwai@...>
On Monday 19 May 2008 04:42:28 pm Adam M Belay wrote:
Mostly just simpler code.
It is important to maintain the order of resources within each
type, of course, so we can encode them in the correct order when
we set device configuration. But we could still sort them by
type if you think that's important.
There is some risk with changing the order, but there's also
some benefit in reducing the fiddling we do with the data from
the firmware. It's been conceptually liberating for me to see
the data correlate more exactly with _CRS and friends.
You mean like resource_show(), which looks like this?
$ cat /sys/devices/pci0000:00/0000:00:00.0/resource
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
I'm all in favor of converging with the PCI style of doing things,
but I'm not sure I understand your idea in this case. We still do
quite a bit of manual poking in the PNP resource file, and the
labels make it nicer for human consumption.
Bjorn
--