ipmi: kcs_bmc_aspeed: Optionally apply status address
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 8 Jun 2021 10:47:57 +0000 (20:17 +0930)
committerCorey Minyard <cminyard@mvista.com>
Tue, 22 Jun 2021 00:50:35 +0000 (19:50 -0500)
commitd0ec795c8c275ceca2076861f7fe3cc5f18da348
treed97c1101a47f94623ceb2bb46530e7f3c4c624f5
parent78ff5a1666cd4a1129ca53dad5c68700fe63ab6a
ipmi: kcs_bmc_aspeed: Optionally apply status address

Some Aspeed KCS devices can derive the status register address from the
address of the data register. As such, the address of the status
register can be implicit in the configuration if desired. On the other
hand, sometimes address schemes might be requested that are incompatible
with the default addressing scheme. Allow these requests where possible
if the devicetree specifies the status register address.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Message-Id: <20210608104757.582199-17-andrew@aj.id.au>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/kcs_bmc_aspeed.c