1
0
Fork 0
remarkable-linux/drivers/bus
Fabio Estevam e805ad22be bus: imx-weim: Take the 'status' property value into account
[ Upstream commit 33b96d2c95 ]

Currently we have an incorrect behaviour when multiple devices
are present under the weim node. For example:

&weim {
	...
	status = "okay";

	sram@0,0 {
		...
        	status = "okay";
	};

	mram@0,0 {
		...
        	status = "disabled";
    	};
};

In this case only the 'sram' device should be probed and not 'mram'.

However what happens currently is that the status variable is ignored,
causing the 'sram' device to be disabled and 'mram' to be enabled.

Change the weim_parse_dt() function to use
for_each_available_child_of_node()so that the devices marked with
'status = disabled' are not probed.

Cc: <stable@vger.kernel.org>
Suggested-by: Wolfgang Netbal <wolfgang.netbal@sigmatek.at>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-18 08:50:55 -04:00
..
Kconfig ARM: SoC driver updates for v4.1 2015-04-22 09:18:17 -07:00
Makefile ARM: SoC driver updates for v4.1 2015-04-22 09:18:17 -07:00
arm-cci.c drivers: CCI: fix used_mask init in validate_group() 2015-05-07 18:29:18 +02:00
arm-ccn.c bus: arm-ccn: Fix node->XP config conversion 2015-08-03 09:29:07 -07:00
brcmstb_gisb.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-weim.c bus: imx-weim: Take the 'status' property value into account 2016-04-18 08:50:55 -04:00
mips_cdmm.c MIPS: Fix CDMM to use native endian MMIO reads 2015-05-26 16:46:52 +02:00
mvebu-mbus.c Revert "bus: mvebu-mbus: make sure SDRAM CS for DMA don't overlap the MBus bridge window" 2015-05-28 11:14:31 +02:00
omap-ocp2scp.c bus: ocp2scp: SYNC2 value should be changed to 0x6 2015-03-26 10:48:11 -07:00
omap_l3_noc.c bus: omap_l3_noc: Fix master id address decoding for OMAP5 2015-05-04 10:21:01 -07:00
omap_l3_noc.h bus: omap_l3_noc: Fix master id address decoding for OMAP5 2015-05-04 10:21:01 -07:00
omap_l3_smx.c genirq: Remove the deprecated 'IRQF_DISABLED' request_irq() flag entirely 2015-03-05 20:53:06 +01:00
omap_l3_smx.h drivers: bus: Move the OMAP interconnect driver to drivers/bus/ 2012-09-19 16:53:26 +02:00
simple-pm-bus.c drivers: bus: Add Simple Power-Managed Bus Driver 2015-02-24 06:36:18 +09:00
vexpress-config.c ARM: vexpress: refine dependencies for new code 2014-05-26 21:26:52 +02:00