- 论坛徽章:
- 0
|
最近移植一款无线网卡,公司之前的无线网卡型号是AR9287,只支持2.4G。公司想支持5G,所以选择了一个款支持5G的无线网卡AR9280,直接替换以后发现有如此打印,pci驱动和设备已经匹配成功,并调用了相应的probe函数,在函数__ath_attach错误退出,直接原因在写rtc reset寄存器(7040)后未生效,导致读rtc状态寄存器(7044)时退出,打印ath_dev_attach: unable to attach hardware; HAL status 3。有哪位仁兄遇到过类似的问题?
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
Failed to open XML configurationWARNING: using default (module_tpmSetup:417) cfg file path:
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
= TPM Module Init ended successfully =
ath_pci: 9.2.0.312 (Atheros/multi-bss)
bus: 'pci': add driver ath_pci
pci_dev->vendor = 0x168c pci_dev->device = 0x2a pci_dev->subsystem_vendor = 0x10cf pci_dev->subsystem_device= 0x147c
bus: 'pci': driver_probe_device: matched device 0000:00:01.0 with driver ath_pci
bus: 'pci': really_probe: probing driver ath_pci with device 0000:00:01.0
id->vendor = 0x168c id->device = 0x2a id->subvendor = 0xffffffff id->subdevice= 0xffffffff
tangyupu pci phymem start f3000000 len 10000 (获取的实际物理地址f3000000 )
pci_resource_len 10000
jx pci virmem start d0d60000(ioremap虚拟地址d0d60000)
WRITE 0x704c <= 0x3
func:ar5416SetResetPowerOn line:1632+++++++++++++++++++++++++++
WRITE 0x704c <= 0x3
WRITE 0x4000 <= 0x1
WRITE 0x7040 <= 0x0
WRITE 0x4000 <= 0x0
sucess ar5416SetResetPowerOn: 0x00000011(设置reset前读7044寄存器)
func:ar5416SetResetPowerOn line:1667 ah->sh = 0xd0d60000AR_RTC_RESET = 0x7040+++++++++++++++++++++++++++
WRITE 0x7040 <= 0x1()
func:ar5416SetResetPowerOn line:1669+++++++++++++++++++++++++++
ath_hal_wait: timeout (100000 us) on reg 0x7044: 0x00000011 & 0x0000000f != 0x00000002(设置reset后读7044寄存器)
ar5416SetResetPowerOn: RTC not waking up
WRITE 0x8004 <= 0xdeadbeef
WRITE 0x704c <= 0x2
WRITE 0x4000 <= 0x101
WRITE 0x7040 <= 0x0
ath_dev_attach: unable to attach hardware; HAL status 3(错误码为3代表Hardware didn't respond as expected) |
|