]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ath9k_htc: Fix probe failure if CONFIG_USB_DEBUG enabled
authorRajkumar Manoharan <rmanoharan@atheros.com>
Mon, 8 Nov 2010 07:19:12 +0000 (12:49 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Nov 2010 21:53:48 +0000 (16:53 -0500)
commit490b3f4eacab3220383d2db49255a73995ecdf25
tree4deac52ae40ae498ef38c9b8afca344071f152b5
parentac618d70aeb681df7b77c1107fdf26f3249f855f
ath9k_htc: Fix probe failure if CONFIG_USB_DEBUG enabled

Since the endpoint descriptors (EP3 & EP4) were changed from Interrupt
to Bulk type by firmware, the urb submission done on Bulk pipes.
And the recent commit "check the endpoint type against the pipe type"
added aditional error checking against pipe types under CONFIG_USB_DEBUG.

So bmAttribute has to be updated for both EP3 & EP4 before submitting
urbs on that pipe. This patch resolves the following failure.

[ 2215.710936] usb 1-1: usb_probe_device
[ 2215.710945] usb 1-1: configuration #1 chosen from 1 choice
[ 2215.711152] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 2215.711252] ath9k_hif_usb 1-1:1.0: usb_probe_interface
[ 2215.711255] ath9k_hif_usb 1-1:1.0: usb_probe_interface - got id
[ 2215.712780] usb 1-1: BOGUS urb xfer, pipe 3 != type 1
[ 2215.713782] usb 1-1: ath9k_htc: Unable to allocate URBs
[ 2215.713801] ath9k_hif_usb: probe of 1-1:1.0 failed with error -22

Reported-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hif_usb.c