Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1835 - USB adapter init bug #6798

Closed
openwrt-bot opened this issue Sep 7, 2018 · 1 comment
Closed

FS#1835 - USB adapter init bug #6798

openwrt-bot opened this issue Sep 7, 2018 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

psyborg:

Hi

running TL-WN722N adapter connected to USB port gives
device descriptor read/64, error -145
message once every time device is restarted.

it also takes ~3 seconds more to register than in normal state which you can see from logs.

verified with multiple reboots. only cold boot inits adapter properly

@openwrt-bot
Copy link
Author

psyborg:

after change in modified u-boot device initializes without -145 error. this bug was also present in stock u-boot that came with device and possibly in many other u-boot versions for other devices..

bootlog after reboot:

[ 0.000000] Linux version 4.9.111 (ubuntu@ubuntu) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7410-d3a7587) ) #0 Sat Jul 7 12:53:26 2018
[ 0.000000] MyLoader: sysp=16f4c842, boardp=1b71f661, parts=b11dd401
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 1 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat 80399dd4, node_mem_map 81000020
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=TL-MR22U console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 28252K/32768K available (2837K kernel code, 162K rwdata, 308K rodata, 268K init, 202K bss, 4516K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:1000.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[ 0.000006] sched_clock: 32 bits at 500MHz, resolution 2ns, wraps every 4294967295ns
[ 0.008845] Calibrating delay loop... 666.41 BogoMIPS (lpj=3332096)
[ 0.071876] pid_max: default: 32768 minimum: 301
[ 0.077186] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084689] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094527] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.105725] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.113071] NET: Registered protocol family 16
[ 0.119230] MIPS: machine is TP-LINK TL-MR22U v1
[ 0.228836] ar724x-pci ar724x-pci.0: PCIe link is down
[ 0.234666] registering PCI controller with io_map_base unset
[ 0.483047] Can't analyze schedule() prologue at 80321d90
[ 0.495779] PCI host bridge to bus 0000:00
[ 0.500436] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.508276] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.514593] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.522297] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.531291] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.531786] clocksource: Switched to clocksource MIPS
[ 0.538342] NET: Registered protocol family 2
[ 0.543880] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.551834] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.559048] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.566338] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.572995] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.580250] NET: Registered protocol family 1
[ 0.585232] PCI: CLS 0 bytes, default 32
[ 0.588333] Crashlog allocated RAM at address 0x1f00000
[ 0.595024] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.606898] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.613538] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.630547] io scheduler noop registered
[ 0.635036] io scheduler deadline registered (default)
[ 0.641068] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.648605] console [ttyS0] disabled
[ 0.672813] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.682608] console [ttyS0] enabled
[ 0.690149] bootconsole [early0] disabled
[ 0.701219] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.718737] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.723905] 5 tp-link partitions found on MTD device spi0.0
[ 0.729654] Creating 5 MTD partitions on "spi0.0":
[ 0.734625] 0x000000000000-0x000000020000 : "u-boot"
[ 0.740797] 0x000000020000-0x000000137454 : "kernel"
[ 0.747142] 0x000000137454-0x000000ff0000 : "rootfs"
[ 0.753444] mtd: device 2 (rootfs) set to be root filesystem
[ 0.759337] 1 squashfs-split partitions found on MTD device rootfs
[ 0.765771] 0x000000570000-0x000000ff0000 : "rootfs_data"
[ 0.772546] 0x000000ff0000-0x000001000000 : "art"
[ 0.778550] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.785754] libphy: Fixed MDIO Bus: probed
[ 0.809517] libphy: ag71xx_mdio: probed
[ 1.444691] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[ 1.454646] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 1.461367] NET: Registered protocol family 17
[ 1.466143] 8021q: 802.1Q VLAN Support v1.8
[ 1.476187] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.484786] Freeing unused kernel memory: 268K
[ 1.489373] This architecture does not have kernel memory protection.
[ 2.011232] init: Console is alive
[ 2.014978] init: - watchdog -
[ 2.471804] random: fast init done
[ 2.708362] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 2.765247] usbcore: registered new interface driver usbfs
[ 2.771005] usbcore: registered new interface driver hub
[ 2.776598] usbcore: registered new device driver usb
[ 2.785462] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.793341] ehci-platform: EHCI generic platform driver
[ 2.798811] ehci-platform ehci-platform: EHCI Host Controller
[ 2.804814] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 2.815094] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 2.841813] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 2.848887] hub 1-0:1.0: USB hub found
[ 2.853084] hub 1-0:1.0: 1 port detected
[ 2.857774] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.875657] init: - preinit -
[ 3.351897] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 3.401661] random: procd: uninitialized urandom read (4 bytes read)
[ 4.522301] jffs2: notice: (355) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 4.539444] mount_root: switching to jffs2 overlay
[ 4.564925] urandom-seed: Seeding with /etc/urandom.seed
[ 4.682775] procd: - early -
[ 4.685820] procd: - watchdog -
[ 5.226124] procd: - watchdog -
[ 5.229559] procd: - ubus -
[ 5.314255] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.346027] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.352983] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.360218] procd: - init -
[ 5.588122] kmodloader: loading kernel modules from /etc/modules.d/*
[ 5.598498] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 5.606817] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 5.618702] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 5.662069] xt_time: kernel timezone is -0000
[ 5.679609] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.737189] usbcore: registered new interface driver rt2800usb
[ 5.750166] usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[ 5.757755] usbcore: registered new interface driver ath9k_htc
[ 5.777955] ath: EEPROM regdomain: 0x0
[ 5.777964] ath: EEPROM indicates default country code should be used
[ 5.777966] ath: doing EEPROM country->regdmn map search
[ 5.777978] ath: country maps to regdmn code: 0x3a
[ 5.777982] ath: Country alpha2 being used: US
[ 5.777984] ath: Regpair used: 0x3a
[ 5.788142] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 5.791288] ieee80211 phy0: Atheros AR9531 Rev:1 mem=0xb8100000, irq=47
[ 5.865181] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 6.231659] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[ 6.483168] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[ 6.711907] urandom_read: 5 callbacks suppressed
[ 6.711913] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.938498] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
[ 6.944226] ath9k_htc 1-1:1.0: FW RMW support: On
[ 6.949082] ath: EEPROM regdomain: 0x833a
[ 6.949085] ath: EEPROM indicates we should expect a country code
[ 6.949098] ath: doing EEPROM country->regdmn map search
[ 6.949102] ath: country maps to regdmn code: 0x37
[ 6.949106] ath: Country alpha2 being used: GB
[ 6.949108] ath: Regpair used: 0x37
[ 6.966339] ieee80211 phy1: Atheros AR9271 Rev:1
[ 9.532749] br-lan: port 1(eth0) entered blocking state
[ 9.538155] br-lan: port 1(eth0) entered disabled state
[ 9.543851] device eth0 entered promiscuous mode
[ 11.645416] eth0: link up (100Mbps/Full duplex)
[ 11.751742] br-lan: port 1(eth0) entered blocking state
[ 11.757221] br-lan: port 1(eth0) entered forwarding state
[ 11.786057] br-lan: port 2(wlan1) entered blocking state
[ 11.791670] br-lan: port 2(wlan1) entered disabled state
[ 11.797463] device wlan1 entered promiscuous mode
[ 11.824431] br-lan: port 3(wlan0) entered blocking state
[ 11.829929] br-lan: port 3(wlan0) entered disabled state
[ 11.835746] device wlan0 entered promiscuous mode
[ 11.840657] br-lan: port 3(wlan0) entered blocking state
[ 11.846192] br-lan: port 3(wlan0) entered forwarding state
[ 12.761878] br-lan: port 3(wlan0) entered disabled state
[ 13.514613] br-lan: port 2(wlan1) entered blocking state
[ 13.520115] br-lan: port 2(wlan1) entered forwarding state
[ 13.525968] br-lan: port 3(wlan0) entered blocking state
[ 13.531454] br-lan: port 3(wlan0) entered forwarding state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant