Skip to content

Commit

Permalink
[PATCH] USB: resolve ethernet gadget build glitch on pxa
Browse files Browse the repository at this point in the history
This fixes a build error on pxa25x processes with pxa2xx_udc and

        CONFIG_USB_ETH=m
        # CONFIG_USB_ETH_RNDIS is not set

The error is because on that CPU there's no status transfer support
except with RNDIS.  Workaround, enable the RNDIS support too.

Signed-off-by: Ian Campbell <icampbell@arcom.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jun 27, 2005
1 parent e3bc8b4 commit 822e14a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/gadget/ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,7 @@ eth_bind (struct usb_gadget *gadget)
dev->req->complete = eth_setup_complete;

/* ... and maybe likewise for status transfer */
#ifdef DEV_CONFIG_CDC
if (dev->status_ep) {
dev->stat_req = eth_req_alloc (dev->status_ep,
STATUS_BYTECOUNT, GFP_KERNEL);
Expand All @@ -2437,6 +2438,7 @@ eth_bind (struct usb_gadget *gadget)
}
dev->stat_req->context = NULL;
}
#endif

/* finish hookup to lower layer ... */
dev->gadget = gadget;
Expand Down

0 comments on commit 822e14a

Please sign in to comment.