diff options
author | Hui Wang <[email protected]> | 2024-06-18 19:26:20 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-06-24 16:10:36 +0200 |
commit | 4fb92bdb8e84e618f8c289dc56a923b914a72cac (patch) | |
tree | 5a38cebd7028b24291047e56635ded7372a18b4b /lib/netdev-notifier-error-inject.c | |
parent | a9411ef13f8fada29775fd21a3dfab7dcc49216a (diff) |
serial: sc16is7xx: hardware reset chip if reset-gpios is defined in DT
Some boards connect a GPIO to the reset pin, and the reset pin needs
to be set up correctly before accessing the chip.
Add a function to handle the chip reset. If the reset-gpios is defined
in the DT, do hardware reset through this GPIO, otherwise do software
reset as before.
Reviewed-by: Lech Perczak <[email protected]>
Tested-by: Hugo Villeneuve <[email protected]>
Reviewed-by: Hugo Villeneuve <[email protected]>
Signed-off-by: Hui Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions