1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-06 03:34:39 +02:00
Commit Graph

299 Commits

Author SHA1 Message Date
juhosg
661316a678 ar71xx: ag71xx: fix mii_bus_dev sanity check
The mii_bus device is not required if phy_mask is zero.
The driver will use a fixed connection if it is not
specified.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34849 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-22 12:12:41 +00:00
juhosg
5e4cac78d5 ar71xx: ag71xx: don't start/stop built-in switch w/o mii_bus_dev
Trying to do that causes a NULL pointer dereference:

CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 801d170c, ra == 801d18d4
Oops[#1]:
Cpu 0
$ 0   : 00000000 00000000 00000000 00000001
$ 4   : 00000000 802e6390 ffff8f45 00000001
$ 8   : 804b5360 ffffff80 802f93bc 00000000
$12   : 802f93e8 00000000 00000000 00000000
$16   : 8381aba0 8381aba0 00000000 00000000
$20   : 8295eff0 00000032 80000000 004101b8
$24   : 00000000 777265b0
$28   : 82936000 82937cf0 00420000 801d18d4
Hi    : 00000000
Lo    : 00000001
epc   : 801d170c ar7240sw_reset+0x1c/0x19c
    Tainted: G           O
ra    : 801d18d4 ag71xx_ar7240_start+0x28/0xc0
Status: 1100fc03    KERNEL EXL IE
Cause : 00800008
BadVA : 00000000
PrId  : 00019750 (MIPS 74Kc)
Modules linked in: ath79_wdt ohci_hcd ledtrig_usbdev ledtrig_netdev
nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp
 ipt_MASQUERADE iptable_nat nf_nat pppoe xt_conntrack xt_CT xt_NOTRACK
iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack
ehci_hcd pppox ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport
xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tab
les ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) ath9k_hw(O)
ath(O) mac80211(O) usbcore usb_common nls_base crc_ccitt cfg80211(O) c
ompat(O) arc4 aes_generic crypto_blkcipher cryptomgr aead crypto_hash
crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button
_hotplug(O)
Process netifd (pid: 677, threadinfo=82936000, task=82cbe140, tls=77803750)
Stack : ffffffff 80087900 00000001 82937d74 8381aba0 8381aba0 00000000 00000000
        8295eff0 801d18d4 8295eff0 801fa4a4 00420000 80092158 00000002 8381aba0
        8381a800 00000000 00000080 801cf900 8027e720 00000000 00000000 8009223c
        8381a800 8381a82c 8027e720 00000000 00000000 7f9d14f0 00420000 801ec08c
        8381a800 801ebfb0 33000000 82937e30 00000001 8381a800 00001003 801ec348
        ...
Call Trace:
[<801d170c>] ar7240sw_reset+0x1c/0x19c
[<801d18d4>] ag71xx_ar7240_start+0x28/0xc0
[<801cf900>] ag71xx_open+0x1d0/0x258
[<801ec08c>] __dev_open+0xcc/0x130
[<801ec348>] __dev_change_flags+0xc0/0x160
[<801ec490>] dev_change_flags+0x20/0x6c
[<801ec5c8>] dev_ifsioc+0xec/0x348
[<801ecdb8>] dev_ioctl+0x594/0x67c
[<800ec00c>] do_vfs_ioctl+0x598/0x5ec
[<800ec0b0>] sys_ioctl+0x50/0x90
[<8006a3c4>] stack_done+0x20/0x40
Code: afbf0024  afb40020  afb10014 <8c910000> 00809021  24100104 24130704  8e440000  02002821

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34848 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-22 12:12:40 +00:00
juhosg
c586ec0f29 ar71xx: ar934x_nfc: allow to control DMA data swap via platform data
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-10 10:38:07 +00:00
juhosg
9364d77535 ar71xx: make rb750_nand driver compatible with 3.7
Also add compatibility patches for the currently
supported kernels.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-20 16:29:43 +00:00
juhosg
c7120182ad ar71xx: make ar934x_nfc driver compatible with 3.7
Also add compatibility patches for the currently
supported kernels.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-20 16:29:42 +00:00
juhosg
5edd92afcd ar71xx: remove buffer verification reference from rb4xx_nand.c
It is a dead code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34276 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-20 14:40:22 +00:00
juhosg
6b16d348f4 ar71xx: restore rb4xx kernel partition size to the original value
The new lzma compressed elf kernel image fits into
that, even on devices with large page NAND chips.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-20 12:17:45 +00:00
juhosg
ca706d1e01 ar71xx: remove NO_AUTOINCR flag from the NAND drivers
The flag is not present in 3.6.
Also add compatibility patches for 3.3.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33971 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-28 12:21:15 +00:00
juhosg
c0ed64d3dd ar71xx: ag71xx: fix build_skb arguments for 3.6
Also add a compatibility patch for 3.3

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33969 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-27 17:11:06 +00:00
juhosg
5751fd8e2a ar71xx: use mtd_read in wrt160nl_part
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-27 07:57:58 +00:00
juhosg
584868a74e ar71xx: use mtd_read in tplinkpart
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33950 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-27 07:57:57 +00:00
juhosg
88d42e3e5a ar71xx: ar934x_nfc: remove unused oob parameter of ar934x_nfc_send_read
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33454 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 20:30:55 +00:00
juhosg
52f5b88b84 ar71xx: ar934x_nfc: increase DMA retry count
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33453 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 20:30:54 +00:00
juhosg
5c9038f12e ar71xx: ar934x_nfc: optimize READOOB operation on large page devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33452 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 20:30:53 +00:00
juhosg
56caae5b72 ar71xx: ar934x_nfc: fix RNDOUT operation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33451 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 20:30:51 +00:00
juhosg
5cf642fa6f ar71xx: ar934x_nfc: fix READ{0,1} operation on large page devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 20:30:50 +00:00
juhosg
ce47c98d07 ar71xx: ar934x_nfc: experimental NAND Flash Controller driver for AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33385 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-13 07:26:22 +00:00
juhosg
c4b6e540e4 ar71xx: add dynamic MDIO clock calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-09 14:05:17 +00:00
juhosg
641595b79a ar71xx: improve MDIO busy wait code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 15:24:02 +00:00
nbd
8c1c75ba17 ar71xx: do not override the mdio clock for ar9330. the override value (obtained from an atheros driver) seems to break ethernet functionality
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31956 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 20:39:50 +00:00
nbd
0f299fab07 ar71xx: improve rx performance of the ethernet driver by using build_skb to deliver a cache-hot skb to the network stack
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31934 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 02:55:59 +00:00
nbd
dfea949949 ar71xx: fix MII clock settings for various chips, improves ethernet stability on AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31925 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-27 21:02:41 +00:00
nbd
82ff0a8569 ar71xx: remove AG71XX_RX_PKT_RESERVE, it is no longer necessary (found by Eric Dumazet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31736 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-15 10:36:39 +00:00
nbd
d4d537811b kernel: rewrite the phy packet hook, put it in the network stack to avoid having to keep non-upstream ethernet driver changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31637 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-06 21:19:14 +00:00
juhosg
f07500066e ar71xx: allow to disable link polling on unused PHYs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31533 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-29 18:29:24 +00:00
juhosg
1d61105c25 ar71xx: enable MIB counters in the built-in switch of the AR934x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31476 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-25 13:02:11 +00:00
juhosg
58ce76e6b5 ar71xx: add latch_change field to rb750_led_platform_data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-19 15:57:01 +00:00
juhosg
e929396e19 ar71xx: add platform data for the RB750 NAND driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-19 15:56:59 +00:00
juhosg
263a705cc6 ar71xx: move micrel PHY driver to the generic linux target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-15 09:25:53 +00:00
juhosg
1d9a77e99f ar71xx: ag71xx: fix ARP frame reception on AR934x switch ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30926 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-13 17:29:38 +00:00
juhosg
0fced5df74 ar71xx: ag71xx: start aneg on switch PHYs after reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30925 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-13 17:29:37 +00:00
juhosg
9d0c4ce009 ar71xx: ag71xx: poll PHY status of all available switch ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30924 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-13 17:29:36 +00:00
juhosg
d2b8246b44 ar71xx: ag71xx: allow to use port 5 of the AR934x built-in switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30923 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-13 17:29:34 +00:00
juhosg
d32129c110 ar71xx: ag71xx: fix get_port_link callback
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-07 16:32:35 +00:00
juhosg
4a420c6fa2 ar71xx: ag71xx: use the generic get_port_link implementation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30840 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-07 16:32:34 +00:00
juhosg
78859ab57d ar71xx: ag71xx: keep VLAN tags if VLAN is not enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30768 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-01 19:49:05 +00:00
juhosg
ee8624ffde ar71xx: ag71xx: add BQL support
It will be usable only from linux-3.3.

Based on a patch by Dave Taht <dave.taht@bufferbloat.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30417 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-10 14:56:47 +00:00
juhosg
33ec8951f8 ar71xx: add preliminary support for 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-10 11:53:56 +00:00
juhosg
8940cbc303 ar71xx: merge 3.2 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30406 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-10 08:19:33 +00:00
juhosg
d9077e15ae ar71xx: merge files-3.2 to files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-10 08:19:31 +00:00
juhosg
41e9c172ba ar71xx: use dynamically allocated partitions in wrt160nl_part
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29970 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-31 18:36:51 +00:00
juhosg
22b99f32a1 ar71xx: move arch specific files to files-2.6.39
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29867 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 22:38:11 +00:00
juhosg
acc9c3cbf5 ar71xx: wrt160nl_part: include module.h and fix compiler warnings
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 17:55:38 +00:00
juhosg
681c0cf274 ar71xx: tplinkpart: include module.h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 17:55:36 +00:00
juhosg
523cf1638c ar71xx: rename vsc7385 spi driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29853 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 13:51:57 +00:00
juhosg
e3c5dcc5ee ar71xx: rename ap81 spi driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29852 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 13:51:56 +00:00
juhosg
047bbb085a ar71xx: rename rb4xx spi drivers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29851 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 13:51:54 +00:00
juhosg
d73151f6d4 ar71xx: rename the nxp_74hc153 driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 13:51:52 +00:00
juhosg
fa5eb96b17 ar71xx: include linux/module.h in the micrel phy driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29848 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 13:51:49 +00:00
juhosg
6734a832bc ar71xx: pb44_spi: add shutdown handler
This allows to access the flash from a kexec'd kernel.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29710 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-11 09:14:18 +00:00