summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
...
* | net: cpsw: Allow gigabit connectionJan Weitzel2014-10-081-2/+1
|/ | | | | Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-err-ptr'Sascha Hauer2014-10-0213-10/+56
|\
| * resource: Let dev_request_mem_region return an error pointerSascha Hauer2014-09-1610-4/+41
| | | | | | | | | | | | For all users fix or add the error check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * resource: Let dev_get_mem_region return an error pointerSascha Hauer2014-09-163-6/+15
| | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
* | Merge branch 'for-next/phycore-imx6'Sascha Hauer2014-10-021-2/+2
|\ \
| * | phy/micrel: disable Asym_Pause supportJan Weitzel2014-09-171-2/+2
| |/ | | | | | | | | | | | | | | | | With SUPPORTED_Asym_Pause enabled we need to hotplug the ethernet cable. So disable it like done with PHY_ID_KSZ9021. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/openrisc'Sascha Hauer2014-10-021-0/+6
|\ \
| * | net: ethoc: add device tree supportAntony Pavlov2014-09-091-0/+6
| | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/net-phy'Sascha Hauer2014-10-021-56/+86
|\ \ \
| * | | net: phy: don't use 'dev' as name for variables of type struct phy_deviceSascha Hauer2014-09-181-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using 'dev' as name for variables which are not of type struct device(_d) is bad habit and leads to confusions. Use phydev instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: Use xzalloc for small allocationsSascha Hauer2014-09-181-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No need to call kzalloc for small allocations, xzalloc will do without the need for an additional check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: introduce phy_aneg_doneSascha Hauer2014-09-171-11/+46
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | phy_wait_aneg_done() is directly called by the network code, so it should not read phy registers directly. Introduce phy_aneg_done to give phy drivers the chance to do something different to poll for autonegotiation completion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-10-021-32/+91
|\ \ \
| * | | net: asix: handle packets crossing URB boundariesLucas Stach2014-09-221-32/+91
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ASIX AX88772B started to pack data even more tightly. Packets and the ASIX packet header may now cross URB boundaries. To handle this we have to introduce some state between individual calls to asix_rx_fixup(). Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: David S. Miller <davem@davemloft.net> [ Rolf: ported from kernel to barebox 2014.09.0 ] Signed-off-by: Rolf Evers-Fischer <embedded24@evers-fischer.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2014-10-021-16/+1
|\ \ \
| * | | phy: marvell: move IDs to own headerLucas Stach2014-09-171-16/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | So they can be used in board files to register fixups. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/at91'Sascha Hauer2014-10-021-2/+4
|\ \ \ | |/ / |/| |
| * | net: macb: enable GEM with only FE featureBo Shen2014-09-241-2/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | If the GEM is used, however only FE featuren enabled, then it can not support FBLDO configured as 16, and no RGMII/GMII configuratin bit. So, in order to support GEM only with FE feature enabled, we do: - using default value for FBLDO. - using same bit for RMII/MII configuration as GEM for RGMII/GMII. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / net: dm9k: fix copy-paste typoAntony Pavlov2014-09-111-1/+1
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>