]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: bcm_sf2: Fix 64-bits register writes
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 9 Sep 2015 03:06:41 +0000 (20:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Oct 2015 11:51:36 +0000 (13:51 +0200)
commit12e082bc14a2c95787a79228ab8a1f9300cc8667
tree062b95cb84c870bc8f9c132d09b3e78506a1d1d6
parente60f4a39c2173ad637d5c6541404b7847acac246
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/bcm_sf2.h