Commit d4d62861 authored by Olav Kongas's avatar Olav Kongas Committed by Greg Kroah-Hartman

[PATCH] USB: isp116x-hcd: remove unnecessary ClockNotStop configuration option

Signed-off-by: default avatarOlav Kongas <ok@artecdesign.ee>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dc5bed09
...@@ -1569,7 +1569,7 @@ static int isp116x_start(struct usb_hcd *hcd) ...@@ -1569,7 +1569,7 @@ static int isp116x_start(struct usb_hcd *hcd)
if (board->sel15Kres) if (board->sel15Kres)
val |= HCHWCFG_15KRSEL; val |= HCHWCFG_15KRSEL;
/* Remote wakeup won't work without working clock */ /* Remote wakeup won't work without working clock */
if (board->clknotstop || board->remote_wakeup_enable) if (board->remote_wakeup_enable)
val |= HCHWCFG_CLKNOTSTOP; val |= HCHWCFG_CLKNOTSTOP;
if (board->oc_enable) if (board->oc_enable)
val |= HCHWCFG_ANALOG_OC; val |= HCHWCFG_ANALOG_OC;
...@@ -1615,9 +1615,6 @@ static int isp116x_start(struct usb_hcd *hcd) ...@@ -1615,9 +1615,6 @@ static int isp116x_start(struct usb_hcd *hcd)
/* Go operational */ /* Go operational */
val = HCCONTROL_USB_OPER; val = HCCONTROL_USB_OPER;
/* Remote wakeup connected - NOT SUPPORTED */
/* if (board->remote_wakeup_connected)
val |= HCCONTROL_RWC; */
if (board->remote_wakeup_enable) if (board->remote_wakeup_enable)
val |= HCCONTROL_RWE; val |= HCCONTROL_RWE;
isp116x_write_reg32(isp116x, HCCONTROL, val); isp116x_write_reg32(isp116x, HCCONTROL, val);
......
...@@ -7,19 +7,17 @@ ...@@ -7,19 +7,17 @@
struct isp116x_platform_data { struct isp116x_platform_data {
/* Enable internal resistors on downstream ports */ /* Enable internal resistors on downstream ports */
unsigned sel15Kres:1; unsigned sel15Kres:1;
/* Chip's internal clock won't be stopped in suspended state.
Setting/unsetting this bit takes effect only if
'remote_wakeup_enable' below is not set. */
unsigned clknotstop:1;
/* On-chip overcurrent protection */ /* On-chip overcurrent protection */
unsigned oc_enable:1; unsigned oc_enable:1;
/* INT output polarity */ /* INT output polarity */
unsigned int_act_high:1; unsigned int_act_high:1;
/* INT edge or level triggered */ /* INT edge or level triggered */
unsigned int_edge_triggered:1; unsigned int_edge_triggered:1;
/* WAKEUP pin connected - NOT SUPPORTED */ /* Enable wakeup by devices on usb bus (e.g. wakeup
/* unsigned remote_wakeup_connected:1; */ by attachment/detachment or by device activity
/* Wakeup by devices on usb bus enabled */ such as moving a mouse). When chosen, this option
prevents stopping internal clock, increasing
thereby power consumption in suspended state. */
unsigned remote_wakeup_enable:1; unsigned remote_wakeup_enable:1;
/* Switch or not to switch (keep always powered) */ /* Switch or not to switch (keep always powered) */
unsigned no_power_switching:1; unsigned no_power_switching:1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment