diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-06-06 01:18:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 12:10:09 -0400 |
commit | d3af90a5e4e8fb7a93d408799682e566c9270808 (patch) | |
tree | 9eb60a7464d0f1eb380d65ff89239b0a5a044f77 /drivers/usb/renesas_usbhs/common.c | |
parent | 97664a207bc2601a03a300f00e6922038cd5b99c (diff) |
usb: renesas_usbhs: add usbhsf_fifo
renesas_usbhs has CFIFO/D0FIFO/D1FIFO.
But current renesas_usbhs is using CFIFO (for PIO) only for now.
The fifo selection method is needed for DMAEngine support.
This is a preparation for DMAEngine support
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index f3664d6af661..e510b29216b3 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c | |||
@@ -323,10 +323,14 @@ static int __devinit usbhs_probe(struct platform_device *pdev) | |||
323 | if (ret < 0) | 323 | if (ret < 0) |
324 | goto probe_end_iounmap; | 324 | goto probe_end_iounmap; |
325 | 325 | ||
326 | ret = usbhs_mod_probe(priv); | 326 | ret = usbhs_fifo_probe(priv); |
327 | if (ret < 0) | 327 | if (ret < 0) |
328 | goto probe_end_pipe_exit; | 328 | goto probe_end_pipe_exit; |
329 | 329 | ||
330 | ret = usbhs_mod_probe(priv); | ||
331 | if (ret < 0) | ||
332 | goto probe_end_fifo_exit; | ||
333 | |||
330 | /* dev_set_drvdata should be called after usbhs_mod_init */ | 334 | /* dev_set_drvdata should be called after usbhs_mod_init */ |
331 | dev_set_drvdata(&pdev->dev, priv); | 335 | dev_set_drvdata(&pdev->dev, priv); |
332 | 336 | ||
@@ -374,6 +378,8 @@ probe_end_call_remove: | |||
374 | usbhs_platform_call(priv, hardware_exit, pdev); | 378 | usbhs_platform_call(priv, hardware_exit, pdev); |
375 | probe_end_mod_exit: | 379 | probe_end_mod_exit: |
376 | usbhs_mod_remove(priv); | 380 | usbhs_mod_remove(priv); |
381 | probe_end_fifo_exit: | ||
382 | usbhs_fifo_remove(priv); | ||
377 | probe_end_pipe_exit: | 383 | probe_end_pipe_exit: |
378 | usbhs_pipe_remove(priv); | 384 | usbhs_pipe_remove(priv); |
379 | probe_end_iounmap: | 385 | probe_end_iounmap: |
@@ -404,6 +410,7 @@ static int __devexit usbhs_remove(struct platform_device *pdev) | |||
404 | 410 | ||
405 | usbhs_platform_call(priv, hardware_exit, pdev); | 411 | usbhs_platform_call(priv, hardware_exit, pdev); |
406 | usbhs_mod_remove(priv); | 412 | usbhs_mod_remove(priv); |
413 | usbhs_fifo_remove(priv); | ||
407 | usbhs_pipe_remove(priv); | 414 | usbhs_pipe_remove(priv); |
408 | iounmap(priv->base); | 415 | iounmap(priv->base); |
409 | kfree(priv); | 416 | kfree(priv); |