summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/usb'Sascha Hauer2014-08-072-12/+7
|\
| * USB: Use descriptors from ch9.hSascha Hauer2014-07-181-5/+0
| | | | | | | | | | | | | | Use the descriptors from ch9.h instead of duplicating them in usb.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB: introduce usb_interface/usb_configuration structsSascha Hauer2014-07-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | Currently we have two conflicting definitions of struct usb_config_descriptor and struct usb_interface_descriptor in the tree. This is because the USB code uses additional fields in the structs for internal housekeeping. Add struct usb_interface and struct struct usb_configuration with the housekeeping data and embed the corresponding hardware structs into them. This frees the way to use the definitions from ch9.h in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB: Kconfig: introduce USB_HOST symbolSascha Hauer2014-07-181-1/+1
| | | | | | | | | | | | | | | | | | This renames USB to USB_HOST since this is what the symbol really means. Introduce a USB symbol which is selected by both USB_GADGET and USB_HOST. This gives us a symbol to let common USB code depend on. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net'Sascha Hauer2014-08-072-4/+8
|\ \
| * | net: phy: mdio-mvebu: Make the clock property requiredEzequiel Garcia2014-07-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property is wrongly documented as 'optional', although all the ethernet units need a clock to be enabled in order to access the MDIO interface. For that reason, this commit makes the property a required one and fails to probe the device, when a clock is not properly provided. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Add fallbacks for the obsoletes phy DT propertiesEzequiel Garcia2014-07-311-0/+4
| |/ | | | | | | | | | | | | | | | | In addition to the standard 'phy-handle' devicetree property, the binding specifies two properties, which are considered obsolete: 'phy' and 'phy-device'. This commit adds support for them in of_mdio_find_phy(). Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-08-073-43/+47
|\ \ | | | | | | | | | | | | Conflicts: lib/Makefile
| * | gianfar: descriptors access with I/O accessorsRenaud Barbier2014-07-232-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | As in U-Boot git-9c9141f, make read/write access to the TX/RX descriptors CPU agnostic. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: allow "make ARCH=sandbox allyesconfig"Holger Schurig2014-07-221-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Compiling the tree with allyesconfig is helpful because different compilers (gcc, clang) or static checkers (e.g. clang's scan-build) can then process and check more code. This patch introduces two new configuration symbols that Kconfig files can depend on. That way, code that is only working where a cache or DMA implementation exists can be opted out. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / net: Add EFI Simple Network Protocol DriverSascha Hauer2014-07-163-0/+301
|/ | | | | | | This adds a network driver which uses the EFI Simple Network Protocol to implement networking for barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/net'Sascha Hauer2014-07-048-2/+1545
|\
| * net: add ENC28J60 supportAntony Pavlov2014-07-024-0/+1334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENC28J60 is a stand-alone Ethernet controller with SPI Interface and integrated 10BASE-T PHY. This driver was ported from linux-3.15. The most notable barebox driver version changes: * add device tree support; * drop netif_msg_*() debug level checking; * use IF_ENABLED for checking CONFIG_ENC28J60_WRITEVERIFY; * add mii_bus support. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: add support for Marvell PHY driversSebastian Hesselbarth2014-06-253-0/+205
| | | | | | | | | | | | | | | | This adds initial support for Marvell PHY specific drivers. As a first PHY, a driver for MV88E1121R is ported over from Linux. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion-gbe: extend RGMII detection to delayed modesSebastian Hesselbarth2014-06-251-1/+4
| | | | | | | | | | | | | | | | | | RGMII PHY modes include delayed interface modes RGMII_ID, RGMII_TXID, and RGMII_RXID. Also check for those modes when setup RGMII mode in port serial ctrl register. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion: generate unique port device namesSebastian Hesselbarth2014-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Marvell Orion ethernet IP originally is multi-port capable, but SoCs using the IP usually have multiple single-port controllers built in. Currently, orion-gbe driver registers each port device with a constant name, which causes a name conflict with multiple controller instances. This patch uniquifies port device name generation by prepending controller's base register address to resolve the name conflict. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: add RealTek RTL-8139 PCI Ethernet driverAntony Pavlov2014-07-043-0/+614
|/ | | | | | | | This driver is based on Linux 2.6.39 8139too driver. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-114-17/+0
| | | | | | | | | | | | | | | | | | The FSF address has changed; The FSF site says that address is Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (see http://www.fsf.org/about/contact/) Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/net-of-phy'Sascha Hauer2014-06-046-106/+331
|\
| * net: phy: micrel: Add support for specifying pad skew valuesSascha Hauer2014-05-231-1/+85
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: micrel: Add kwz9031 supportSascha Hauer2014-05-231-0/+9
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: fec_imx: Add devicetree support for mdio busSascha Hauer2014-05-231-0/+5
| | | | | | | | | | | | | | The fec has a mdio bus. This adds support for a subnode in which the phys on this bus can be specified. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: genphy: Make it work with of_set_phy_supportedSascha Hauer2014-05-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | phys start with features initialized from the phy driver and are eventually limited by of_set_phy_supported. This does not work with the genphy driver which starts with no features and overwrites phydev->supported with the values read from hardware in config_init. This overwrites the features adjusted by of_set_phy_supported. To fix this let the genphy driver start with full features which are then only limited in config_init, but never extended. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: genphy: always write MII_CTRL1000 when availableSascha Hauer2014-05-231-3/+6
| | | | | | | | | | | | | | | | | | the phydev->supported field does not necessarily match the hardware capabilities, it could be limited by the board to force the phy to a lower speed. In this case make sure the gigabit advertise bits are cleared on a gigabit phy. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: remove now unused of_phy_device_connectSascha Hauer2014-05-231-31/+0
| | | | | | | | | | | | | | Since barebox handles phys from devicetree transparently we no longer need of_phy_device_connect. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: orion-gbe: use transparent-to-driver of mdio functionsSascha Hauer2014-05-232-28/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | barebox can transparently handle phys specified in the devicetree. Use this functionality in the orion-gbe driver. This requires: - add a device to the orion-gbe ports. This has the port device_node attached and is set as the parent of the ethernet device so that the ethernet code finds the correct device_node - In the mdio-mvebu driver attach the device_node of the mdio device to the miibus device so that the phy code finds the correct node - call phy_device_connect instead of of_phy_device_connect. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * net: phy: Support limiting phy speed in the devicetreeSascha Hauer2014-05-211-1/+35
| | | | | | | | | | | | | | | | Even when both the ethernet controller and the phy support certain features a board may have additional limitations. Allow specifying it in the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: Support finding a phy in the devicetreeSascha Hauer2014-05-211-0/+30
| | | | | | | | | | | | | | | | | | | | When the ethernet device has a device_node then try finding the associated phy via the phy-handle property. This makes the phy handling via devicetree transparent to the ethernet drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: register phys specified in devicetreeSascha Hauer2014-05-211-0/+69
| | | | | | | | | | | | | | | | When a mdio bus has a device node attached then register the phys specified there. This makes it possible to lookup the phys using phandles later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: move setting of phy_map to phy_register_deviceSascha Hauer2014-05-212-2/+2
| | | | | | | | | | | | | | The phy_map should be valid once a phy_device is registered. This allows registering phys outside of mdiobus_scan. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: phy: factor out phy_device_attach functionSascha Hauer2014-05-211-43/+56
| | | | | | | | | | | | | | | | | | phy_device_connect combines searching for a phy with actually attaching it to the ethernet device. Factor out a phy_device_attach function to have a function for each purpose. This makes the logic of phy_device_connect simpler. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net'Sascha Hauer2014-06-0427-82/+131
|\ \ | | | | | | | | | | | | Conflicts: drivers/net/dm9k.c
| * | net: arc_emac: disable interruptsBeniamino Galvani2014-05-201-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | The driver doesn't use interrupts and Linux driver crashes when emac interrupts are enabled at boot: keep them disabled. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: arc_emac: remove delay from mdio polling loopBeniamino Galvani2014-05-201-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | Avoid unneeded delay when waiting for the completion of a mdio operation and return as soon as possible. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers/net/ethoc: add mdio bus supportFranck Jullien2014-05-162-0/+58
| | | | | | | | | | | | | | | Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: Allow multiple slavesSascha Hauer2014-05-151-10/+6
| | | | | | | | | | | | | | | | | | | | | The driver is ready now for handling both slaved, so add support for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: Always write mac_control registerSascha Hauer2014-05-151-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of keeping track of the mac_control register value and only writing to it when it changed just always write it. This is more safe anyway since the mac_control register content is altered in the soft_reset functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: use slave device for dev_dbgSascha Hauer2014-05-151-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | Since the cpsw has two slaves which handle one network interface each the slave number is interesting during debugging. use the slave device for dev_dbg. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: register slaves as devicesSascha Hauer2014-05-151-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to directly call dev_dbg and friends on the slave. Also the ethernet aliases in the devicetree now match the devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: cpsw: Pass correct slaveSascha Hauer2014-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | Pass the current slave to cpsw_slave_init/cpsw_update_link, not the first one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Print ethernet device in the link informationSascha Hauer2014-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | When multiple ethernet devices are in use it's interesting to know which one has link. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: Pass eth_device to net_receiveSascha Hauer2014-05-1525-27/+27
| | | | | | | | | | | | | | | | | | | | | So that barebox has the information which interface a packet came from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | net: fec_imx: check return value of registration functionsSascha Hauer2014-05-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | We do not care about releasing the resources in the error path, but at least check the return value of eth_register and mdiobus_register. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | net: fec_imx: mask mii register reads correctlySascha Hauer2014-05-211-1/+1
| |/ |/| | | | | | | | | | | mii registers are 16bit wide, so mask out the higher bits. The higher bits confuse mii-tool. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: dm9k: only read on packet for each call to dm9k_eth_rx()Michael Olbrich2014-05-191-2/+4
|/ | | | | | | | | Some users such as fs/nfs.c just save the pointer to the packet in the handler and process it after net_poll() returns. This break when more than one packet is received using the same buffer. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver/net: fix bus endianess access in ethoc.cFranck Jullien2014-05-141-2/+2
| | | | | Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/rockchip'Sascha Hauer2014-05-053-0/+477
|\
| * net: add ARC EMAC driverBeniamino Galvani2014-04-293-0/+477
| | | | | | | | | | | | | | | | This patch adds support for the Synopsys 10/100 Mbps Ethernet MAC used on some ARC devices and on Rockchip SoCs. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net cpsw: fix rx stability under heavy network loadChristoph Fritz2014-05-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | RX DMA Head Descriptor Pointer can get 0 when there is a lot of traffic, which results in a timeout error. A good way to provoke this error is by sending lots of ARP requests. This patch makes sure that the RX DMA Head Descriptor Pointer is set. The origin driver, from which this is derived, already contains this fix. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: usb: asix: fix formatingAntony Pavlov2014-04-231-9/+8
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>