summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/streaming-dma'Sascha Hauer2015-03-0914-78/+133
|\ | | | | | | | | Conflicts: drivers/mci/dw_mmc.c
| * net: xgmac: convert to streaming DMA opsLucas Stach2015-03-061-3/+8
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: rtl8169: convert to streaming DMA opsLucas Stach2015-03-062-17/+14
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion-gbe: convert to streaming DMA opsLucas Stach2015-03-061-5/+8
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: macb: convert to streaming DMA opsLucas Stach2015-03-061-2/+6
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: fec: convert to streaming DMA opsLucas Stach2015-03-061-4/+9
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: designware: convert to streaming DMA opsLucas Stach2015-03-061-8/+11
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: davinci_emac: convert to streaming DMA opsLucas Stach2015-03-061-4/+5
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: at91_ether: convert to streaming DMA opsLucas Stach2015-03-061-2/+8
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: cpsw: convert to streaming DMA opsLucas Stach2015-03-061-5/+7
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: arc-emac: convert to streaming DMA opsLucas Stach2015-03-061-6/+10
| | | | | | | | | | | | | | | | | | Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: move DMA alloc functions to dma.hLucas Stach2015-03-0611-0/+11
| | | | | | | | | | | | | | | | | | | | This better separates the DMA from the MMU functionality. Also move all drivers that only depends on asm/mmu.h for the alloc functions over to the common header. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: change dma_alloc/free_coherent to match other architecturesLucas Stach2015-03-069-21/+35
| | | | | | | | | | | | | | | | | | As a lot drivers currently rely on the 1:1 virt->phys mapping on ARM we define DMA_ADDRESS_BROKEN to mark them. In order to use them on other architectures with a different mapping they need proper fixing. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * NIOS2: use dma_addr_t in dma_alloc_coherentLucas Stach2015-03-061-1/+1
| | | | | | | | | | | | | | | | | | This allows to consolidate the prototype of this function across architectures. Also guard against calles that pass in NULL as the dma handle pointer. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rockchip'Sascha Hauer2015-03-091-7/+17
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/Kconfig
| * | NET: arc_emac: Update for newer DTS, support for Rockchip .compatibleAndrey Panov2015-03-051-7/+17
| |/ | | | | | | | | Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2015-03-091-0/+3
|\ \ | |/ |/|
| * net: designware: don't depend on CONFIG_OFTREELucas Stach2015-03-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This driver is written in a way that is should also work without DT, but it had a compile time dependency on CONFIG_OFTREE. Fixes: drivers/built-in.o: In function `dwc_probe_dt': drivers/net/designware.c:413: undefined reference to `of_get_phy_mode' Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: cpsw: prevent stray cache writebackLucas Stach2015-03-031-0/+1
| | | | | | | | | | | | | | | | | | | | The cache should be invalidated when transfering ownership of a buffer to the device. Otherwise the writeback of dirty cache lines can corrupt the hardware written data. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: rtl8169: silence compiler warningLucas Stach2015-02-251-2/+2
|/ | | | | | | | Silence warning about cast from volatile to normal pointer, as this is the intended bhavior here. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: smc1111: improve debug capabilityRobert Jarzmik2015-02-041-49/+69
| | | | | | | | Improve smc1111 driver debug messages by printing the register accessed, the current bank, and the values. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: smc1111: extend the driver for 91c94 and 91c96 supportRobert Jarzmik2015-02-041-5/+33
| | | | | | | | | | | | | | | | All the smcs family chips 91c94, 91c96, 91c100, 91c111 share almost the same behavior and register sets. The noticeable exceptions are coped with in this patch, ie : - 91c94 and 91c96 only have an internal 10 Mbps phy The registers used for phy discovery on later chips will corrupt the 91c96 state. - 91c94 and 91c96 have a control and config register quite different from their 91c1xx conterparts A platform data user defined couple of registers is introduced. If these values are 0, 91c1xx legacy behavior is assumed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: smc1111: add 16 bits accessors, allow address shiftRobert Jarzmik2015-02-041-42/+92
| | | | | | | | | | | | | | Smc network IPs can be wired up in different funny ways. For example the lubbock pxa25x development platform wires all address lines shifted by 2, ie. bus A2 is smc91c96 A0, bus A3 is smc91c96 A1 etc ... In order to cope with the different possible combination, add a shift parameter for addresses. By default, the old behaviour using the 32 bit accesses is kept. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-01-093-21/+7
|\
| * sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This file originates in Linux. Linux has it under include/linux/ directory since commit dccd2304cc90. Let's move it to the same place as well in barebox. This commit was generated by the following commands: find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:' git mv include/sizes.h include/linux/ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: rtl8169: remove unnecessary cache maintenanceLucas Stach2015-01-051-19/+5
| | | | | | | | | | | | | | | | | | The buffer descriptors are allocated from coherent memory, so there is no cache maintenance needed. Only tell the compiler that the descriptors can be modified by the hardware. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/arm'Sascha Hauer2015-01-092-15/+40
|\ \
| * | net: cpsw: ignore error on slave setupSascha Hauer2015-01-061-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CPSW has two slaves. When one of them fails to setup continue anyway with the other one. This fixes a crash in the beaglebone black which only has one slave connected. The code doesn't find a phy on the second slave and bails out, but the error path is broken: It frees the private data structures which contains used resources. Reported-by: Philippe Leduc <ledphilippe@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: smc1111: fix memory congestionsRobert Jarzmik2015-01-061-0/+26
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the SMC1111 has a shared pool of 2k memory buckets for both transmission and reception, and as there are variants which have as few as 4 buckets in total, the memory pool can be hogged by unclaimed receptions, and impeed any further transmission. This happens on the zylonite pxa board, where 4 packets, most probably icmp and arp, fill the 4 buckets, preventing any further ethernet transmission, and stalling the driver. The fix is rather rough : whenever all the buckets are filled by reception packets, and if a transmission is required, the transmission code path will empty up all received packets. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / net: smc1111: move print_packet functionRobert Jarzmik2015-01-051-38/+37
|/ | | | | | | | Fix for a compiler complaint, because print_packet is needed by a function before it is declared. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/randconfig'Sascha Hauer2014-12-081-6/+0
|\
| * net: fec_imx: remove unused includesSascha Hauer2014-11-271-6/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/marvell'Sascha Hauer2014-12-084-9/+849
|\ \
| * | net: Add driver for Armada 370/XP 10/100/1000 Mbps network controllerEzequiel Garcia2014-11-113-0/+773
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the mvneta driver to support the network controller found in Armada 370/XP SoCs. Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Support Marvell 88EE1543 PHYEzequiel Garcia2014-11-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for Marvell's 88E1543 PHY chip. This chip is almost identical to the 88EE1545, except the 88E1545 supports QSGMII and the 88EE1543 supports SGMII. Therefore, the same configuration function is used for both PHYs. For now, the only initialization provided for the 88EE1543 is the LED setup. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Support Marvell 88EE1545 PHYEzequiel Garcia2014-11-111-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for Marvell's 88E1545 PHY chip. In particular, this allows to support QSGMII interfaces. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: marvell: Fix array identationEzequiel Garcia2014-11-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Just a cosmetic clean-up to fix the indentation of the entries in the phys array. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2014-12-081-0/+3
|\ \ \ | |_|/ |/| |
| * | net: fec_imx: Add i.MX6sx compatible entrySascha Hauer2014-11-271-0/+3
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: rtl8139: depend on MIPSLucas Stach2014-11-271-0/+1
| | | | | | | | | | | | | | Until we sort out the dma-mapping mess. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: ethoc: depend on OPENRISCLucas Stach2014-11-261-0/+1
|/ | | | | | | | This driver currently only works on OpenRISC, as it uses the cache flush/invalidate functions of this arch. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2014-11-053-0/+587
|\
| * net: rtl8169: clean receive buffer after net handlerLucas Stach2014-11-031-0/+11
| | | | | | | | | | | | | | | | | | | | The processing of the buffer might change some data, which will eventually trigger a cache writeback later on, corrupting data written by the network chip. Clean the cache range to make sure there is no writeback pending. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: rtl8169: add support for RTL-8168/8111gLucas Stach2014-11-031-0/+1
| | | | | | | | | | | | | | This is the version of the chip found on Jetson-TK1. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: add rtl8169 driverLucas Stach2014-10-083-0/+575
| | | | | | | | | | | | | | | | This adds the driver for RealTek 8169 and compatible pci attached network chips. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-11-052-1/+98
|\ \
| * | net: cpsw: Set phy device_node pointer in probeWadim Egorov2014-11-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the phy device_node pointer to the equivalent cpsw slave node. We need this, because phy drivers using this pointer for their configuration. Create and register the phy device in cpsw_probe(), so that this phy device can be found later by phy_device_connect() in cpsw_open(). Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: micrel: Add OF conf. support for ksz9031Wadim Egorov2014-11-031-1/+85
| |/ | | | | | | | | | | | | | | | | | | | | Adds support for ksz9031 PAD skew configuration over devicetree. Based on a patch from the linux kernel. Author: Hubert Chaumette <hchaumette@adeneo-embedded.com> Original commit: 6e4b82730c7525504fc485b370c7f09e594e2e96 Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: cpsw: Fix probe for one port ethernetTeresa Gámez2014-10-141-2/+2
| | | | | | | | | | | | | | | | If only one port is pinned out, probe fails as the second port phy_id is not found. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: micrel: Add ksz8081 supportJan Weitzel2014-10-081-1/+9
| | | | | | | | | | Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>