aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
Commit message (Collapse)AuthorAgeFilesLines
* AA: generic: ar8216: introduce ar8216_mib_op helperGabor Juhos2012-11-251-26/+9
| | | | | | | | | | | | | | | Backport of r34297. The ar8216_mib_{capture,flush} functions are similar. Move the common code into a helper and use that from the original functions. This change also fixes a lockdep warning in ar8216_mib_flush. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34372 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: fix port number check in 'ar8xxx_mib_work_func'Gabor Juhos2012-11-251-1/+3
| | | | | | | | | | Backport of r34283. Also add a WARN_ON to 'ar8216_mib_fetch_port_stat' Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34371 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: remove an unblanced mutex_unlock callGabor Juhos2012-11-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport of r34282. Fixes the following warning: [ 94.080000] [ 94.080000] ===================================== [ 94.080000] [ BUG: bad unlock balance detected! ] [ 94.080000] 3.3.8 #2 Tainted: G O [ 94.080000] ------------------------------------- [ 94.080000] swconfig/1220 is trying to release lock (&priv->mib_lock) at: [ 94.080000] [<801df8f4>] ar8216_sw_get_port_mib+0x138/0x16c [ 94.080000] but there are no more locks to release! [ 94.080000] [ 94.080000] other info that might help us debug this: [ 94.080000] 2 locks held by swconfig/1220: [ 94.080000] #0: (genl_mutex){+.+...}, at: [<80222430>] genl_rcv+0x14/0x34 [ 94.080000] #1: (&dev->sw_mutex){+.+...}, at: [<801da018>] swconfig_get_dev+0x88/0xb4 [ 94.080000] [ 94.080000] stack backtrace: [ 94.080000] Call Trace: [ 94.080000] [<8028dc58>] dump_stack+0x8/0x34 [ 94.080000] [<800a5128>] print_unlock_inbalance_bug+0xe0/0xfc [ 94.080000] [<800a82c0>] lock_release+0x18c/0x1c8 [ 94.080000] [<80292074>] __mutex_unlock_slowpath+0xd8/0x17c [ 94.080000] [<801df8f4>] ar8216_sw_get_port_mib+0x138/0x16c [ 94.080000] [<801db688>] swconfig_get_attr+0xbc/0x394 [ 94.080000] [<8022261c>] genl_rcv_msg+0x1cc/0x214 [ 94.080000] [<80221a18>] netlink_rcv_skb+0x6c/0xe8 [ 94.080000] [<80222440>] genl_rcv+0x24/0x34 [ 94.080000] [<80221370>] netlink_unicast+0x15c/0x22c [ 94.080000] [<8022175c>] netlink_sendmsg+0x240/0x2d0 [ 94.080000] [<801ef544>] sock_sendmsg+0x84/0x9c [ 94.080000] [<801f0648>] __sys_sendmsg+0x1cc/0x270 [ 94.080000] [<801f207c>] sys_sendmsg+0x48/0x7c [ 94.080000] [<8006ad78>] stack_done+0x20/0x40 [ 94.080000] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34370 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: add missing locking callsGabor Juhos2012-11-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport of r34281. Fixes the following lockdep warning: [ 19.160000] ------------[ cut here ]------------ [ 19.160000] WARNING: at drivers/net/phy/ar8216.c:322 ar8216_rmw+0x54/0xa4() [ 19.170000] Modules linked in: nf_defrag_ipv4 nf_conntrack ehci_hcd sd_mod pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multip ort xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) at h9k_hw(O) ath(O) mac80211(O) usbcore usb_common scsi_mod nls_base crc7 crc_itu_t crc_ccitt cfg80211(O) compat(O) arc4 aes_generic cry pto_blkcipher cryptomgr aead crypto_hash crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button_hotplug(O) [ 19.210000] Call Trace: [ 19.220000] [<8028dc38>] dump_stack+0x8/0x34 [ 19.220000] [<80072da0>] warn_slowpath_common+0x78/0xa4 [ 19.230000] [<80072de4>] warn_slowpath_null+0x18/0x24 [ 19.230000] [<801de820>] ar8216_rmw+0x54/0xa4 [ 19.240000] [<801df460>] ar8216_mib_capture+0x70/0xd0 [ 19.240000] [<801df944>] ar8xxx_mib_work_func+0x34/0x98 [ 19.250000] [<80089a7c>] process_one_work+0x28c/0x460 [ 19.250000] [<8008a630>] worker_thread+0x22c/0x334 [ 19.260000] [<8008e544>] kthread+0x88/0x90 [ 19.260000] [<80065020>] kernel_thread_helper+0x10/0x18 [ 19.270000] [ 19.270000] ---[ end trace 22e9d696adfa6a08 ]--- Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34369 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: mac80211/rt2x00: add rf_vals for Rt3352 with Xtal=20MHzGabor Juhos2012-11-251-0/+1
| | | | | | | | | | | Backport of r34269. [juhosg: move ramips specific stuff into a followup patch] Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: add MIB counter support for the AR8216 switch as wellGabor Juhos2012-11-252-1/+89
| | | | | | | | | | Backport of r34245. Thanks to Jonas Gorski for the reference URL. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34359 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: rename AR8216_*_STATS_* definesGabor Juhos2012-11-252-82/+82
| | | | | | | | | | | | | Backport of r34244. The names are misleading, those are only valid from AR8236. The AR8216 chip uses different offsets. Thanks to Jonas Gorski for the report. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34358 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic ar8216: allow to read/reset MIB counters via swconfigGabor Juhos2012-11-252-7/+492
| | | | | | | | Backport of r34243. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34357 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: ar8216: use dynamically allocated private data in ar8216_probeGabor Juhos2012-11-251-3/+12
| | | | | | | | Backport of r34242. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: linux/3.3: backport an upstream GPIO patchGabor Juhos2012-11-051-0/+68
| | | | | | | | | | | | | | | Backport of r34081. The backported patch introduces new flags to automatically export GPIOs when using the convenience unctions gpio_request_one() or gpio_request_array(). This will be used by ar71xx/ramips platforms. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34084 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: fold yaffs_git_2010_10_20 patch to generic/filesGabor Juhos2012-10-3052-35983/+11464
| | | | | | | | Backport of r34013. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34018 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: fold yaffs_cvs_2009_04_24 patch to generic/filesGabor Juhos2012-10-3034-15168/+3152
| | | | | | | | Backport of r34012. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34017 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: allow to disable [25]GHz support in ath9k via platform dataGabor Juhos2012-10-281-0/+3
| | | | | | | | Backport of r33954. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33975 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: use mtd_read in myloader parserGabor Juhos2012-10-281-2/+2
| | | | | | | | Bacport of 33952. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33974 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add a few missing config symbols for x86. added to generic config ↵Felix Fietkau2012-10-251-0/+4
| | | | | | | | because of dependencies, so that kernel_menuconfig does not remove them again Backport of r33923 git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33928 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: refresh config files using kconfig.plFelix Fietkau2012-10-251-57/+55
| | | | | | Backport of r33922 git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33927 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: generic: add driver for the the RTL8367R{B,-VB} switchesGabor Juhos2012-10-194-0/+1571
| | | | | | | | Backport of r33839. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33868 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ixp4xx, cns3xx: backport the latest round of fixes (as of r33684)Felix Fietkau2012-10-101-0/+18
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33685 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] refresh patchesHauke Mehrtens2012-09-301-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33602 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: enable CONFIG_USB_EHCI_TT_NEWSCHEDGabor Juhos2012-09-271-1/+1
| | | | | | | | | | This feature was experimental in old kernels but that flag has been removed in 2.6.36. Additionally, the option is enabled by default since then. See: http://www.spinics.net/lists/linux-usb/msg31993.html git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33574 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add upstream commit id to codel patches and refresh thoseGabor Juhos2012-09-268-34/+37
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33560 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] backport the upstream entropy changes (#11951)Florian Fainelli2012-09-263-8/+1334
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33559 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: increase log buffer sizeFelix Fietkau2012-09-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33515 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic/3.3]: refresh patchesImre Kaloz2012-09-212-9/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33501 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: enable perf events when enabling profiling, fixes oprofile on armFelix Fietkau2012-09-201-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33497 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add MTD_NAND_AR934X symbolGabor Juhos2012-09-131-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: move GENERIC_PWM symbol into the generic configGabor Juhos2012-09-131-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33383 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] fix ixp4xx_hss build failure (#12162)Florian Fainelli2012-09-101-0/+44
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic add WLAN calibration data ID to routerboot.hGabor Juhos2012-09-091-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adm5120: move common routerboot definitions into a separate header fileGabor Juhos2012-09-091-0/+104
| | | | | | Those will be used on the ar71xx platform as well. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33341 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add support for the EON EN25Q64 SPI flash chipGabor Juhos2012-08-261-0/+10
| | | | | | It is used in some TL-WDR4310 devices. Closes #12077. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33275 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: extend pci_isable_usb_common_quirks patchGabor Juhos2012-08-151-0/+20
| | | | | | | | | | | | | Fixes the following build error: SYSMAP System.map Building modules, stage 2. MODPOST 48 modules ERROR: "usb_enable_xhci_ports" [drivers/usb/host/ehci-hcd.ko] undefined! ERROR: "usb_is_intel_switchable_xhci" [drivers/usb/host/ehci-hcd.ko] undefined! make[6]: *** [__modpost] Error 1 make[5]: *** [modules] Error 2 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33193 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] fixes gpio_dev un/reload balancingJohn Crispin2012-08-141-0/+2
| | | | | | Signed-off-by: SHI Bin <shibin@ctsing.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33183 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: use __meminit annotation for crashlog_init_memblockGabor Juhos2012-08-121-3/+3
| | | | | | | | | | | | | | | Fixes this section mismatch warning: WARNING: vmlinux.o(.meminit.text+0xb14): Section mismatch in reference from the function memblock_insert_region() to the function .init.text:crashlog_init_memblock() The function __meminit memblock_insert_region() references a function __init crashlog_init_memblock(). If crashlog_init_memblock is only used by memblock_insert_region then annotate crashlog_init_memblock with a matching annotation. Also, remove the __init annotations from 'include/linux/crashlog.h' git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33137 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366_smi: increase delay after switch hw resetGabor Juhos2012-08-101-3/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33077 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [bufferbloat] Codel: avoid a nul rec_inv_sqrtJohn Crispin2012-08-021-0/+68
| | | | | | | | | | | | | | | One condition before codel_Newton_step() was not good if we never left the dropping state for a flow. As a result rec_inv_sqrt was 0, instead of the ~0 initial value. codel control law was then set to a very aggressive mode, dropping many packets before reaching 'target' and recovering from this problem. Brought over from 3.5-stable Signed-off-by: Dave Taht <dave.taht@bufferbloat.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32950 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl836x: add hw_reset field to struct rtl8366_smiGabor Juhos2012-08-027-2/+35
| | | | | | | It will be used to start/stop the switch if that is supported by the given board. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32943 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366_smi: use __rtl8366_smi_cleanup instead of gpio_free callsGabor Juhos2012-08-021-2/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32942 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] disable crashlog on ARM platforms for the momentFlorian Fainelli2012-07-311-1/+1
| | | | | | It is currently badly broken on ARM, until fixed, disable it git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32926 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] refresh pwm patchJohn Crispin2012-07-291-9/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] clean up pwm patches and driversJohn Crispin2012-07-284-604/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32901 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] add config option CONFIG_I2C_MV64XXX to fix kirkwood buildHauke Mehrtens2012-07-281-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32898 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] add more USB-related config symbolsFlorian Fainelli2012-07-261-0/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32883 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] bcma: update to version from wireless-testing tag master-2012-07-16Hauke Mehrtens2012-07-264-26/+394
| | | | | | | | | I did not add the last patch, because it add some stubs for the flash drivers and our patches have to be changed for that, if the flash support in bcma is able to do something I will integrate it. This also contains 3 additional patches fixing some bugs in bcma. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32880 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] add yet another framebuffer symbolFlorian Fainelli2012-07-251-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32844 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] add unset CONFIG_FB_XGI to fix fullbuildsJohn Crispin2012-07-251-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] add missing framebuffer related symbolsFlorian Fainelli2012-07-241-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32804 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] fix tantos patch properlyJohn Crispin2012-07-241-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32796 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] make tantos switch select ETHERNET_PACKET_MANGLEJohn Crispin2012-07-241-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32795 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] crashlog: fix dependency, add memblock supportFelix Fietkau2012-07-221-7/+50
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32787 3c298f89-4303-0410-b956-a3cf2f4a3e73