summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2018-01-23 19:49:47 +0200
committerKostya Porotchkin <kostap@marvell.com>2018-01-25 11:11:42 +0200
commit2968e45f06fee03f551c59ca232b0125d1d12f43 (patch)
treee1be366a100107b2f2080fcc24d728de8187107d /drivers
parent60303b9b66066489614e9cd1954304f30d35830f (diff)
fix: mvebu: gwin: Do not report error on addresses mismatch
Stop reporting error upon temporary GWIN window removal if the source window base address does not match the HW configuration. The base address could be aligned before writing it to the HW and in such case the test will fail. Checking the window target should be enough since there is no reason to install 2 GWIN windows with the same target value. Change-Id: I3ae8baf3e26ef617818828310abe709587f47acc Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/49425 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Hanna Hawa <hannah@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/marvell/gwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/marvell/gwin.c b/drivers/marvell/gwin.c
index 2b673b6e..8ba8c7f0 100644
--- a/drivers/marvell/gwin.c
+++ b/drivers/marvell/gwin.c
@@ -154,7 +154,7 @@ void gwin_temp_win_remove(int ap_index, struct addr_map_win *win, int size)
base >>= ADDRESS_LSHIFT;
base <<= ADDRESS_RSHIFT;
- if ((win->target_id != target) || (win->base_addr != base)) {
+ if (win->target_id != target) {
ERROR("%s: Trying to remove bad window-%d!\n", __func__, win_id);
continue;
}