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:50:05 +0000 (19:50 +0200)
commit48564f69835690e62405ec64845522b63d75b20e
tree4ddf6550acfeaf9354d13ecd122ab8aa1a58ebf1
parente38311ff9e4d8a1365c92e84d085484161caeb12
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