]> git.baikalelectronics.ru Git - kernel.git/commit
of/base: Fix PowerPC address parsing hack
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 14 Nov 2014 06:55:03 +0000 (17:55 +1100)
committerRob Herring <robh@kernel.org>
Tue, 18 Nov 2014 17:46:44 +0000 (11:46 -0600)
commite3039b8da22b3e03c6f7733b75f7f008380479c6
tree5ca9d6602cd4eb71e1d5828b2a52666060a32f05
parent44b6797284da95fb4b947b39ec2c38356f5e0f36
of/base: Fix PowerPC address parsing hack

We have a historical hack that treats missing ranges properties as the
equivalent of an empty one. This is needed for ancient PowerMac "bad"
device-trees, and shouldn't be enabled for any other PowerPC platform,
otherwise we get some nasty layout of devices in sysfs or even
duplication when a set of otherwise identically named devices is
created multiple times under a different parent node with no ranges
property.

This fix is needed for the PowerNV i2c busses to be exposed properly
and will fix a number of other embedded cases.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c