summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers
Commit message (Collapse)AuthorAgeFilesLines
* ag71xx: Fix rx ring buffer stall on small packets flood on qca956x and qca953x.Vittorio Gambaletta2018-01-091-0/+16
| | | | | | Backported from Code Aurora QSDK Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
* ar71xx: convert mikrotik routerboard support to UBIFelix Fietkau2017-02-013-3/+3
| | | | | | | | | | Remove the wget2nand script, drop the need for manual installation, use sysupgrade instead. There are now two different NAND images, one for 64 MiB flashes, the other for >= 128 MiB Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: disable sub-page writes on routerboard nand driversFelix Fietkau2017-01-113-0/+3
| | | | | | They seem to fail in tests using UBI, and are not used by yaffs2 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix RB4xx CPLD SPI device mode setupFelix Fietkau2017-01-111-1/+1
| | | | | | | | Commit af79fdbe4af3 changed the code to use tx_nbits for dual SPI tx transfers, however the SPI stack only allows this when the device mode includes the relevant bit as well Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix RB4xx SPI driver mode bitsFelix Fietkau2017-01-111-1/+1
| | | | | | Accept SPI_TX_DUAL in device mode to fix the CPLD driver Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove a non-upstream spi core patchFelix Fietkau2017-01-053-184/+8
| | | | | | | - use standard flags instead - remove dead code from the rb4xx spi drivers Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove AP83 reference design board supportFelix Fietkau2016-12-121-283/+0
| | | | | | | | This board is very old and unlikely to still be relevant today. Support for it contains a significant amount of device specific baggage which is worth getting rid of. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix drivers/mtd/nand/ar934x_nfc.cPaul Wassi2016-11-181-8/+2
| | | | | | | Fix the incorrect usage of ar934x_nfc_write_page and ar934x_nfc_write_page_raw. Add *page* in the argument list and remove the local variable. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ar71xx: fix ethernet driver fast reset issue causing tx timeoutsFelix Fietkau2016-09-031-1/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: add software transmit timestamp supportStephen Walker2016-07-152-0/+3
| | | | | | Add software transmit timestamp and ethtool (-T) timestamp support Signed-off-by: Stephen Walker <stephendwalker+github@gmail.com>
* ar71xx: spi-rb4xx fix.Sergey Sergeev2016-07-021-1/+1
| | | | | | | | In new kernels we should use clk_prepare_enable instead of clk_enable since clk_enable does not make proper initialization that leads to rise WARN_ON messages and not working spi bus on the device. Signed-off-by: Sergey Sergeev <adron@yapic.net>
* ar71xx: prevent spurious ethernet resets from dma hang check false positivesFelix Fietkau2016-07-022-6/+12
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: rename ethernet pdata->builtin_switch to use_flow_controlFelix Fietkau2016-06-271-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "ar71xx: prevent spurious ethernet resets from dma hang check false ↵Felix Fietkau2016-06-262-6/+5
| | | | | | positives" This reverts commit 3d58d7f053eae83b59baf5c8b8a58da78653f605.
* ar71xx: prevent spurious ethernet resets from dma hang check false positivesFelix Fietkau2016-06-262-5/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: enable flow control for ethernet MACs with built-in switchFelix Fietkau2016-06-261-1/+4
| | | | | | | | Should fix LAN speed issues on some devices. This is an updated version of the previously reverted commit with the same name. It improves the check for MACs connected to a built-in switch Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "ar71xx: enable flow control for ethernet MACs with built-in switch"Felix Fietkau2016-06-141-9/+1
| | | | | | | | This reverts commit 1beb5bec6453abb220c5be4ddb9e6dc02d08d735. It was found to cause the WAN port to fail on some AR934x devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: enable flow control for ethernet MACs with built-in switchFelix Fietkau2016-06-131-1/+9
| | | | | | Should fix LAN speed issues on some devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-072-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issuesFelix Fietkau2016-02-221-3/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48753
* ag71xx: fix build error with debugfs codeFelix Fietkau2016-02-111-5/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48695
* ag71xx: increase rx ring size to improve performanceFelix Fietkau2016-02-111-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48694
* ag71xx: store ring size order instead of ring size to avoid div/modFelix Fietkau2016-02-113-41/+58
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48693
* ag71xx: increase tx ring size to improve performanceFelix Fietkau2016-02-111-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48692
* ag71xx: optimize icache footprint of the receive poll functionFelix Fietkau2016-02-111-3/+10
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48691
* ar71xx: use page fragment API in the ethernet driverFelix Fietkau2016-01-311-10/+24
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48578
* ar71xx: fix a few include errorsFelix Fietkau2016-01-301-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48562
* ar71xx: fix ethernet MAC reset on DMA hangFelix Fietkau2016-01-131-38/+55
| | | | | | | | | Fully reset the chip like on a full up/down, but without the PHY statemachine restart. Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48228
* ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chipsFelix Fietkau2016-01-131-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48227
* ar71xx: clean up ethernet tx queue after reset, wake queues when done - ↵Felix Fietkau2015-12-141-3/+8
| | | | | | | | fixes hangs reported in #18922 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47892
* ar71xx: add LED driver NU801John Crispin2015-12-111-0/+396
| | | | | | | | | The MR18 uses a 3-channel 16-bit PWM Constant Current Driver for its status LED. Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> SVN-Revision: 47848
* ar71xx: add 64kb bootloader mtd parser for tplinkpartJohn Crispin2015-08-171-6/+29
| | | | | | | | | | | Signed-off-by: Weijie Gao <hackpascal@gmail.com> This patch adds flash layout parser for TP-Link firmwares which have a 64kb bootloader. This is used for TP-Link TL-WDR6500 v2. SVN-Revision: 46662
* ar71xx: remove the use of the obsolete IRQF_DISABLED flag in the NAND flash ↵Felix Fietkau2015-07-201-1/+1
| | | | | | | | driver (fixes #20125) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46433
* ar71xx: ag71xx remove IRQF_DISABLEDJohn Crispin2015-07-091-1/+1
| | | | | | | | | | no-op since 2.6.35 removed in Kernel 4.1 see https://lwn.net/Articles/380931/ Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46280
* ar71xx: ar934x-nfc: allow ECC to be configured in software BCH modeFelix Fietkau2015-06-181-0/+4
| | | | | | | | | Some devices ship with NAND images that use BCH ECC. Let the driver know about that ECC mode so that it can be selected by machine files. Signed-off-by: Thomas Hebb <tommyhebb@gmail.com> SVN-Revision: 46022
* ar71xx: return limit as number of processed frames when re-scheduling NAPI pollFelix Fietkau2015-06-141-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45971
* ar71xx: generalize cybertan partition parserJohn Crispin2015-03-111-6/+0
| | | | | | | | | | By removing the NL16 signature check, the parser can be utilized by other devices like the WD My Net Wi-fi Range Extender. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> SVN-Revision: 44664
* ar71xx: rename wrt160nl's trx partition parserJohn Crispin2015-03-111-18/+18
| | | | | | | | | This patch renames the partition parser from wrt160nl to more generic cybertan. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> SVN-Revision: 44663
* ar71xx: fix gpio-latch driverJohn Crispin2015-03-101-1/+2
| | | | | | | | gpio api has changed. the remove call no longer returns a value. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44650
* ar71xx: fix mv88e6063 compile for 3.14John Crispin2015-02-151-1/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44459
* ar71xx: add v3.18 supportJohn Crispin2015-02-152-1/+21
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44456
* ar71xx: improve ethernet driver cache footprint by removing an unnecessary ↵Felix Fietkau2014-12-093-27/+36
| | | | | | | | pointer Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43588
* ag71xx: replace delay with sleep callsJohn Crispin2014-12-072-6/+6
| | | | | | | | | | | | I don't see that we're in an atomic context so there's no need to busy-wait. Therefore replace the delay with sleep calls. See also Documentation/timers/timers-howto.txt. It states: "In general, use of mdelay is discouraged and code should be refactored to allow for the use of msleep." Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43539
* ag71xx: replace fixed PHY reset wait time in ar7240sw_setupJohn Crispin2014-12-071-1/+28
| | | | | | | | | Replace the fixed wait time of 1s with polling for BMCR_RESET to be cleared on all PHYs. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43538
* ar71xx: ack completed tx descriptors only after the full frame has been ↵Felix Fietkau2014-09-101-10/+16
| | | | | | | | completed Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42457
* ar71xx: re-enable descriptor splitting on ar716x after the previous bugfixes ↵Felix Fietkau2014-09-061-2/+0
| | | | | | | | (#13072) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42429
* ar71xx: fix off-by-one error in packet descriptor splitting (patch from #13072)Felix Fietkau2014-09-061-1/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42428
* ar71xx: on ar716x, split ethernet packets in 512 byte chunks instead of 256 ↵Felix Fietkau2014-09-061-1/+1
| | | | | | | | (improves performance) (patch from #13072) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42427
* ar71xx: disable ethernet descriptor splitting for now, as it seems to cause ↵Felix Fietkau2014-08-301-0/+2
| | | | | | | | tx hangs in some setups Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42333
* ar71xx: split packets into multiple descriptors on ar716xFelix Fietkau2014-08-293-28/+105
| | | | | | | | | | | This improves performance when doing concurrent rx/tx on a single ethernet MAC, e.g. when routing between VLANs. Fixes #13072 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42328