@@ -731,13 +731,11 @@ static void tegra_xusb_parse_usb_role_default_mode(struct tegra_xusb_port *port)
if (mode == USB_DR_MODE_HOST)
role = USB_ROLE_HOST;
- else if (mode == USB_DR_MODE_PERIPHERAL)
+ else
role = USB_ROLE_DEVICE;
- if (role != USB_ROLE_NONE) {
- usb_role_switch_set_role(port->usb_role_sw, role);
- dev_dbg(&port->dev, "usb role default mode is %s", modes[mode]);
- }
+ usb_role_switch_set_role(port->usb_role_sw, role);
+ dev_dbg(&port->dev, "usb role default mode is %s", modes[mode]);
}
static int tegra_xusb_usb2_port_parse_dt(struct tegra_xusb_usb2_port *usb2)