Commit 822e14ac authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: resolve ethernet gadget build glitch on pxa

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: default avatarIan Campbell <icampbell@arcom.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e3bc8b4e
...@@ -2428,6 +2428,7 @@ autoconf_fail: ...@@ -2428,6 +2428,7 @@ autoconf_fail:
dev->req->complete = eth_setup_complete; dev->req->complete = eth_setup_complete;
/* ... and maybe likewise for status transfer */ /* ... and maybe likewise for status transfer */
#ifdef DEV_CONFIG_CDC
if (dev->status_ep) { if (dev->status_ep) {
dev->stat_req = eth_req_alloc (dev->status_ep, dev->stat_req = eth_req_alloc (dev->status_ep,
STATUS_BYTECOUNT, GFP_KERNEL); STATUS_BYTECOUNT, GFP_KERNEL);
...@@ -2437,6 +2438,7 @@ autoconf_fail: ...@@ -2437,6 +2438,7 @@ autoconf_fail:
} }
dev->stat_req->context = NULL; dev->stat_req->context = NULL;
} }
#endif
/* finish hookup to lower layer ... */ /* finish hookup to lower layer ... */
dev->gadget = gadget; dev->gadget = gadget;
......
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