I think dev->bus the bus number for the bus that the Cardbus controller
is connected to? If so, this change is wrong.
bus:device.function = 0:0.0
+--------+
| host |
| bridge >--------+------------------ dev->bus
+--------+ |
|
+----v----+ dev
| Cardbus |
| Bridge |
+---------+
|
| bus number = dev->subordinate->number
|
|
+----v----+ bus = dev->subordinate->number
| Cardbus | device = 0
| card |
+---------+
The device we want to read the CIS offset from is the cardbus card.
In the above case, your change means we'll try to read the CIS offset
from the host bridge, which is obviously wrong.
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/