net: dsa: bcm_sf2: Fix 64-bits register writes
commit646cd5edbf95700a6d720f153ce2b6a66dde8aa3
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 9 Sep 2015 03:06:41 +0000 (8 20:06 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 27 Oct 2015 13:33:10 +0000 (27 09:33 -0400)
tree3bb4048858cf41d108d9b5b2a479990d238a7352
parentca41797a868fee22aab7d1bb3cbccb985172c65c
net: dsa: bcm_sf2: Fix 64-bits register writes

[ Upstream commit 03679a14739a0d4c14b52ba65a69ff553bfba73b ]

The macro to write 64-bits quantities to the 32-bits register swapped
the value and offsets arguments, we want to preserve the ordering of the
arguments with respect to how writel() is implemented for instance:
value first, offset/base second.

Fixes: 246d7f773c13 ("net: dsa: add Broadcom SF2 switch driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/dsa/bcm_sf2.h