]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:22 +0000 (15:57 -0800)
commitcc91f8b2a55b80a7b4dd6ca0ce364c03fe50a56d
tree1994ed12ea0da684e188be39e993d272d9f303f8
parent2bf559697785880fbdf073d49a3fce7feed48df1
of/base: Fix PowerPC address parsing hack

commit 746c9e9f92dde2789908e51a354ba90a1962a2eb upstream.

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>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/address.c