bus: mvebu-mbus: allow several windows with the same target/attribute
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Apr 2014 12:19:52 +0000 (14:19 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 24 Apr 2014 03:48:08 +0000 (03:48 +0000)
commitb566e782be32145664d96ada3e389f17d32742e5
treeea163932e1e11bdda40122b986de3403ffc779b2
parent09752a12f430f58523fb6f435f5e30e4048fcfb2
bus: mvebu-mbus: allow several windows with the same target/attribute

Having multiple windows with the same target and attribute is actually
legal, and can be useful for PCIe windows, when PCIe BARs have a size
that isn't a power of two, and we therefore need to create several
MBus windows to cover the PCIe BAR for a given PCIe interface.

Fixes: fddddb52a6c4 ('bus: introduce an Marvell EBU MBus driver')
Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1397823593-1932-7-git-send-email-thomas.petazzoni@free-electrons.com
Tested-by: Neil Greatorex <neil@fatboyfat.co.uk>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/bus/mvebu-mbus.c