usb: phy: tegra: Use device-tree notion of reset-GPIO's active-state

It is much more intuitive if reset is treated as asserted when GPIO value
is set to 1. All NVIDIA Tegra device-trees are properly specifying active
state of the reset-GPIO since 2013, let's clean up that part of the code.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106013416.9604-14-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dmitry Osipenko 2020-01-06 04:34:09 +03:00 committed by Greg Kroah-Hartman
parent 01d6ea31db
commit 06e60e5038
2 changed files with 18 additions and 55 deletions

View file

@ -17,6 +17,7 @@
#define __TEGRA_USB_PHY_H
#include <linux/clk.h>
#include <linux/gpio.h>
#include <linux/reset.h>
#include <linux/usb/otg.h>
@ -76,7 +77,7 @@ struct tegra_usb_phy {
struct usb_phy u_phy;
bool is_legacy_phy;
bool is_ulpi_phy;
int reset_gpio;
struct gpio_desc *reset_gpio;
struct reset_control *pad_rst;
bool powered_on;
};