soc: aspeed: Re-enable FWH2AHB on AST2600
authorJoel Stanley <joel@jms.id.au>
Tue, 29 Jun 2021 07:35:19 +0000 (17:05 +0930)
committerJoel Stanley <joel@jms.id.au>
Thu, 19 Aug 2021 04:29:28 +0000 (13:59 +0930)
commit2f9b25fa668218f22a85ebe8c55d1d132fc0019d
tree4d8aa4fac6e10f16b160ed648ed21cc788d592bd
parent8812dff6459dd898ba27e49ccac646d12bbcea23
soc: aspeed: Re-enable FWH2AHB on AST2600

Recent builds of the vendor u-boot tree disable features of the
BMC that may allow unwanted access if not correctly configured. This
includes the firmware hub to ahb bridge (FWH2AHB), which is used by this
driver.

The bit to "un-disable" it is in the SCU. Set it only when the ioctl is
called and we are running on the ast2600, as to not open up the
'backdoor' unless there's userspace trying to use it.

Fixes: deb50313ba83 ("soc: aspeed-lpc-ctrl: LPC to AHB mapping on ast2600")
Link: https://lore.kernel.org/r/20210629073520.318514-2-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/soc/aspeed/aspeed-lpc-ctrl.c