Return-path: Received: from mail-ve0-f177.google.com ([209.85.128.177]:54316 "EHLO mail-ve0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554AbaGDNcX (ORCPT ); Fri, 4 Jul 2014 09:32:23 -0400 MIME-Version: 1.0 Date: Fri, 4 Jul 2014 15:32:22 +0200 Message-ID: (sfid-20140704_153230_248961_6B4ED73E) Subject: ath9k -> bogus usb xfer on at91 From: Anders Darander To: linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, While porting an internal BSP (a design based on a at91sam9g20 SoC) from 3.10 to 3.14, I got flooded with messages like: ~# usb 1-1: new full-speed USB device number 3 using at91_ohci usb 1-1: ath9k_htc: Firmware htc_9271.fw requested usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272 -----------[ cut here ]----------- WARNING: CPU: 0 PID: 93 at /mnt/cs-builds/anders/oe-build/build-ccu/tmp-eglibc/work/ccu-oe-linux-gnueabi/linux-yocto-ccu/3.14+gitAUTOINC+7b03bd3dfd-r0/linux/drivers/usb/core/urb.c:450 usb_submit_urb+0x2ac/0x460() usb 1-1: BOGUS urb xfer, pipe 1 != type 3 Modules linked in: ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211 ccudrv(O) at91_disable_wdt(O) at91_bootcount(O) at91_adc(O) CPU: 0 PID: 93 Comm: kworker/0:3 Tainted: G W O 3.14.10-ccu #2 Workqueue: events request_firmware_work_func [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (warn_slowpath_common+0x60/0x80) [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x2c/0x3c) [] (warn_slowpath_fmt) from [] (usb_submit_urb+0x2ac/0x460) [] (usb_submit_urb) from [] (hif_usb_send+0x268/0x2c8 [ath9k_htc]) [] (hif_usb_send [ath9k_htc]) from [] (htc_issue_send.constprop.4+0x64/0x68 [ath9k_htc]) [] (htc_issue_send.constprop.4 [ath9k_htc]) from [] (htc_connect_service+0x170/0x1c8 [ath9k_htc]) [] (htc_connect_service [ath9k_htc]) from [] (ath9k_wmi_connect+0x50/0x6c [ath9k_htc]) [] (ath9k_wmi_connect [ath9k_htc]) from [] (ath9k_init_htc_services.isra.10+0x20/0x280 [ath9k_htc]) [] (ath9k_init_htc_services.isra.10 [ath9k_htc]) from [] (ath9k_htc_probe_device+0xe4/0x928 [ath9k_htc]) [] (ath9k_htc_probe_device [ath9k_htc]) from [] (ath9k_htc_hw_init+0x10/0x30 [ath9k_htc]) [] (ath9k_htc_hw_init [ath9k_htc]) from [] (ath9k_hif_usb_firmware_cb+0x4cc/0x5c8 [ath9k_htc]) [] (ath9k_hif_usb_firmware_cb [ath9k_htc]) from [] (request_firmware_work_func+0x2c/0x4c) [] (request_firmware_work_func) from [] (process_one_work+0x20c/0x33c) [] (process_one_work) from [] (worker_thread+0x234/0x384) [] (worker_thread) from [] (kthread+0xc0/0xd4) [] (kthread) from [] (ret_from_fork+0x14/0x24) --[ end trace b92d2c3cd165cd68 ]-- -----------[ cut here ]----------- After temporarily reverting commit 3482528e9aced9234d4e2a4a9538c882a9aa5aa2, which enables debug checks on all USB urb's (previously is was only enabled for a CONFIG_USB_DEBUG enabled kernel), the WiFi chip starts to work correctly. The chip in question is a ar9721. The same USB stick works without these messages on my laptop; while another USB stick, based on an rtl8187 chip, works without these messages on the target system (at91sam9g20) Any pointers to what it could be? Or suggestions on how to attack the issue? Thanks in advance! Cheers, Anders -- Anders Darander EPO guidelines 1978: "If the contribution to the known art resides solely in a computer program then the subject matter is not patentable in whatever manner it may be presented in the claims."