reset/aspeed: Implement status callback
authorJoel Stanley <joel@jms.id.au>
Thu, 23 Jun 2022 05:10:37 +0000 (14:40 +0930)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:30:51 +0000 (14:30 -0400)
commit0a8bd97f883c554a4137b4f3a88d0d638c4d1b31
treefc32a1e14a9a0c1f437ec9b075b522a2fa02a7b0
parentb45768ebfe11109b995adc65ea7b5dc7228b7ed4
reset/aspeed: Implement status callback

The I2C driver shares a reset line between buses, so allow it to test
the state of the reset line before resetting it.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Ryan Chen <ryan_chen@aspeedtech.com>
drivers/reset/reset-ast2500.c
drivers/reset/reset-ast2600.c