Commit b566e782 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper
Browse files

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: fddddb52

 ('bus: introduce an Marvell EBU MBus driver')
Cc: <> # v3.10+
Signed-off-by: default avatarThomas Petazzoni <>

Tested-by: default avatarNeil Greatorex <>
Signed-off-by: default avatarJason Cooper <>
parent 09752a12
......@@ -223,12 +223,6 @@ static int mvebu_mbus_window_conflicts(struct mvebu_mbus_state *mbus,
if ((u64)base < wend && end > wbase)
return 0;
* Check if target/attribute conflicts
if (target == wtarget && attr == wattr)
return 0;
return 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment