bus: brcmstb_gisb: Use register offsets with writes too
authorDoug Berger <opendmb@gmail.com>
Thu, 30 Mar 2017 00:29:09 +0000 (17:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:56 +0000 (19:47 +0200)
commit95fbdbb60501bbc2bf5ae8d0736199714925ccd1
tree8500387c2196bd4b87f7d3a525e53e741176860b
parentcfea563e71b021ac4d64b422688e821dd52fbd60
bus: brcmstb_gisb: Use register offsets with writes too

[ Upstream commit 856c7ccb9ce7a061f04bdf586f649cb93654e294 ]

This commit corrects the bug introduced in commit f80835875d3d
("bus: brcmstb_gisb: Look up register offsets in a table") such
that gisb_write() translates the register enumeration into an
offset from the base address for writes as well as reads.

Fixes: f80835875d3d ("bus: brcmstb_gisb: Look up register offsets in a table")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/brcmstb_gisb.c