diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-10-11 01:06:35 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:41:48 -0400 |
commit | a9be4a45627c0eaa5f3f16987243530f4df6b514 (patch) | |
tree | 024bece3289100284db928cc4f53cbaefa511685 /drivers/usb/renesas_usbhs | |
parent | f427eb64f4c5433a91da5eb139970dd5cbad9082 (diff) |
usb: gadget: renesas_usbhs: make sure SOF packet sending-out control
It is enabled to set SOF packet output bit when USBRST bit was set.
And USBRST bit should be set 0 when SOF packet was output.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 1161d78e1665..895eb44a1a51 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c | |||
@@ -181,6 +181,13 @@ void usbhs_usbreq_set_val(struct usbhs_priv *priv, struct usb_ctrlrequest *req) | |||
181 | */ | 181 | */ |
182 | void usbhs_bus_send_sof_enable(struct usbhs_priv *priv) | 182 | void usbhs_bus_send_sof_enable(struct usbhs_priv *priv) |
183 | { | 183 | { |
184 | u16 status = usbhs_read(priv, DVSTCTR) & (USBRST | UACT); | ||
185 | |||
186 | if (status != USBRST) { | ||
187 | struct device *dev = usbhs_priv_to_dev(priv); | ||
188 | dev_err(dev, "usbhs should be reset\n"); | ||
189 | } | ||
190 | |||
184 | usbhs_bset(priv, DVSTCTR, (USBRST | UACT), UACT); | 191 | usbhs_bset(priv, DVSTCTR, (USBRST | UACT), UACT); |
185 | } | 192 | } |
186 | 193 | ||