[PATCH V7 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

Alan Stern stern at rowland.harvard.edu
Thu Jan 20 03:23:27 EST 2011


On Tue, 18 Jan 2011 tmarri at apm.com wrote:

> From: Tirumala Marri <tmarri at apm.com>
> 
> The PCD is responsible for translating requests from the gadget driver
> to appropriate actions on the DWC OTG controller.
> 
> Signed-off-by: Tirumala R Marri <tmarri at apm.com>
> Signed-off-by: Fushen Chen <fchen at apm.com>
> Signed-off-by: Mark Miesfeld <mmiesfeld at apm.com>
> ---
>  drivers/usb/dwc_otg/dwc_otg_pcd.c | 1752 +++++++++++++++++++++++++++++++++++++
>  drivers/usb/dwc_otg/dwc_otg_pcd.h |  139 +++
>  2 files changed, 1891 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/dwc_otg/dwc_otg_pcd.c b/drivers/usb/dwc_otg/dwc_otg_pcd.c
> new file mode 100644
> index 0000000..857dcee
> --- /dev/null
> +++ b/drivers/usb/dwc_otg/dwc_otg_pcd.c

...

> +static struct usb_ep_ops dwc_otg_pcd_ep_ops = {
> +	.enable = dwc_otg_pcd_ep_enable,
> +	.disable = dwc_otg_pcd_ep_disable,
> +	.alloc_request = dwc_otg_pcd_alloc_request,
> +	.free_request = dwc_otg_pcd_free_request,
> +	.queue = dwc_otg_pcd_ep_queue,
> +	.dequeue = dwc_otg_pcd_ep_dequeue,
> +	.set_halt = dwc_otg_pcd_ep_set_halt,
> +	.fifo_status = NULL,
> +	.fifo_flush = NULL,
> +};

This is missing a .set_wedge method.

Alan Stern



More information about the Linuxppc-dev mailing list