alistair23-linux/drivers/bus
Jason Gunthorpe 09752a12f4 bus: mvebu-mbus: Avoid setting an undefined window size
The mbus hardware requires a power of two size, and size aligned base.
Currently, if a non-power of two is passed in to the low level routines
they configure the register in a way that results in undefined behaviour.

Call WARN and return EINVAL instead.

Also, update the debugfs routines to show a message if there is an
invalid register setting.

All together this makes the recent problems with silent failure
of PCI very obvious, noisy and debuggable.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1397823593-1932-6-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
2014-04-24 03:47:55 +00:00
..
arm-cci.c drivers: cci: Export CCI PMU revision 2014-02-25 19:36:17 +01:00
imx-weim.c bus: imx-weim: support CS GPR configuration 2014-03-05 10:40:46 +08:00
Kconfig drivers: bus: imx-weim: Add support for i.MX1/21/25/27/31/35/50/51/53 2013-08-16 12:59:44 +08:00
Makefile ARM SoC device tree changes 2013-07-02 14:23:01 -07:00
mvebu-mbus.c bus: mvebu-mbus: Avoid setting an undefined window size 2014-04-24 03:47:55 +00:00
omap-ocp2scp.c ARM: OMAP2+: Remove omap4 ocp2scp pdata 2013-05-30 13:09:31 -07:00
omap_l3_noc.c Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h