summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* drivers: treewide: Kill empty remove() implementationsAlexander Shiyan2014-04-023-16/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-03-072-3/+3
|\ | | | | | | | | Conflicts: common/environment.c
| * net: usb: asix: properly propagate error codeLucas Stach2014-02-101-2/+2
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: usb: smsc95xx: fix wrong phy reset conditionLucas Stach2014-02-101-1/+1
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: orion: add ethernet driverSebastian Hesselbarth2014-02-104-0/+784
| | | | | | | | | | | | | | | | | | | | This adds a driver for the Ethernet ip found on Marvell Orion SoCs, which is derived from Marvell Discovery System Controllers (MV643xx). It is partially based on the corresponding u-boot driver. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Michael Grzeschik <mgr@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: phy: add mvebu mdio bus driverSebastian Hesselbarth2014-02-103-0/+162
| | | | | | | | | | | | | | | | | | | | | | This adds a driver for the mdio bus found on Marvell Orion SoCs as part of the GBE device and Marvell Armada 370/XP as part of Neta eth device. Both drivers can share this code, so make it available independently. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Michael Grzeschik <mgr@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: phy: add of_phy_device_connectSebastian Hesselbarth2014-02-101-0/+31
| | | | | | | | | | | | | | | | | | | | This implements a of_phy_device_connect to allow DT enabled drivers to connect to a PHY device by using the PHY's DT node only. It currently assumes that each PHY node is a child of the corresponding mdio bus. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: reorder Kconfig and Makefile alphabeticallySebastian Hesselbarth2014-02-102-83/+83
|/ | | | | | | This reorders Kconfig and Makefile for drivers/net alphabetically. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: add AX88772B USB IDPhilipp Zabel2014-01-291-0/+14
| | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: read MAC from EEPROM on AX88772BPhilipp Zabel2014-01-291-3/+15
| | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: Use only 11 bits of header for data sizeMarek Vasut2014-01-231-2/+2
| | | | | | | | | | | | | | The AX88772B uses only 11 bits of the header for the actual size. The other bits are used for something else. This causes dmesg full of messages: asix_rx_fixup() Bad Header Length This patch trims the check to only 11 bits. I believe on older chips, the remaining 5 top bits are unused. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: Simplify condition in rx_fixup()Marek Vasut2014-01-231-1/+1
| | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/phy: add driver for National Semiconductor DP83865 PHYAntony Pavlov2014-01-203-0/+101
| | | | | | | Based on Linux kernel 3.12 driver. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: phy: Fix crash when no phy is foundSascha Hauer2014-01-201-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/openrisc'Sascha Hauer2014-01-073-0/+522
|\
| * net: add driver for OpenCores 10/100 Mbps ethernet MACBeniamino Galvani2013-12-173-0/+522
| | | | | | | | | | | | | | | | This patch introduces a driver for the OpenCores 10/100 Mbps ethernet MAC core, ported from Linux kernel with small changes. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/miiphy'Sascha Hauer2014-01-075-58/+128
|\ \
| * | net/phy/phy.c: fix whitespaceAntony Pavlov2014-01-061-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net/phy: add driver for LXT PHYsAntony Pavlov2014-01-063-0/+37
| | | | | | | | | | | | | | | | | | | | | Based on Linux kernel 3.12 driver. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | miitool: change behaviour closer to linux' mii-toolAntony Pavlov2014-01-061-9/+1
| | | | | | | | | | | | | | | | | | | | | miitool without arguments will try to show status for all phys. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: implement detect callback for miibus devicesSascha Hauer2013-12-112-1/+32
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: Track mii buses on a listSascha Hauer2013-12-111-0/+6
| | | | | | | | | | | | | | | | | | To be able to iterate over registered mii buses Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: move phy_init_hw to phy_device_connectSascha Hauer2013-12-112-8/+9
| | | | | | | | | | | | | | | | | | | | | This is needed when a phy gets registered outsize of phy_device_connect but has to be attached to an ethernet device later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: track registered state of a phy deviceSascha Hauer2013-12-111-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | With this phy_device_connect only registers a phy device if it wasn't registered already. This allows us to register phy devices outside of ethernet drivers. phy_device_connect will now pick up an already registered phy given that it's not attached to another ethernet device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: check if a phy already has an ethernet deviceSascha Hauer2013-12-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | If during a phy_device_connect a phy already has an ehternet device this can only mean it's already attached to another device. return -EBUSY in this case. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: move duplicated code out of if/elseSascha Hauer2013-12-111-18/+9
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: bail out early in phy_device_connectSascha Hauer2013-12-111-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | If an ethernet device already has a phy in phy_device_connect all we have to do is to start autonegotiation. Do this early and bail out so that for the rest of the code it's clear that we have to search for a phy device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: cleanup attached device handlingSascha Hauer2013-12-112-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | phy_register_device() currently requires an attached ethernet device. This is not needed, a phy device can equally well be registered as a standalone device without an ethernet device. Remove the need for an attached ethernet device in phy_register_device. Also, make the edev <-> phy connection on a registered device which simplifies the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | net: dm9k: bail out when resources can't be claimedSascha Hauer2013-12-181-0/+4
| |/ |/| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: cpsw: Fix gmii_sel configJan Weitzel2013-12-121-0/+1
|/ | | | | | | Prober slave_num is needed by cpsw_gmii_sel_am335x to calc reg value. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-061-63/+218
|\
| * net: cpsw: straighten error pathSascha Hauer2013-11-271-5/+13
| | | | | | | | | | | | This mainly has the effect of checking the return value of eth_register. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: cpsw: attach slave to edev->privSascha Hauer2013-11-271-14/+20
| | | | | | | | | | | | | | An ethernet device belongs to a slave, so set edev->priv to the slave and not to the cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: cpsw: drop for_each_slaveSascha Hauer2013-11-271-26/+14
| | | | | | | | | | | | | | | | We currently only use one slave, so drop for_each_slave and hardcode slave[0] until we pass the proper context to the functions that makes this hack unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: cpsw: move eth_device into slaveSascha Hauer2013-11-271-17/+16
| | | | | | | | | | | | An ethernet device is per slave, not per cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cpsw: Add devicetree probe supportSascha Hauer2013-11-271-7/+159
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: cpsw: inline slave_dataSascha Hauer2013-11-221-5/+7
| | | | | | | | | | | | | | Devicetree probed cpsw devices won't have platform_data, so inline the fields from slave_data instead of keeping a pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-12-065-8/+8
|\ \ | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | net: phy: Fix get_phy_device return valueSascha Hauer2013-11-252-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | A function should either return an ERR_PTR or NULL on failure, but not both. Let get_phy_device() return an ERR_PTR and fix the return checks in mdiobus_scan and phy_device_connect. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | barebox: remove double semicolonsAlexander Aring2013-11-181-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: netx: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net/Kconfig: Remove non-existent ARCH_DAVINCIAlexander Shiyan2013-11-111-1/+1
| |/ | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net/phy: add driver for atheros PHYsLucas Stach2013-12-033-0/+127
| | | | | | | | | | | | | | Based on Linux kernel 3.12 driver. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.mx53: Parse Reset GPIO pin in FEC driver from DevicetreeRostislav Lisovy2013-11-251-0/+17
|/ | | | | Signed-off-by: Rostislav Lisovy <lisovy@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: phy: Add micrel KSZ8031Markus Pargmann2013-10-261-0/+9
| | | | | | | KSZ8031 is similar to KSZ8021. It can use the same functions. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: add support to read the mac address from registerJean-Christophe PLAGNIOL-VILLARD2013-10-061-0/+22
| | | | | | | check the 4 mac address register and return at the first valid Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smc91111: add fixup for qemu phy supportJean-Christophe PLAGNIOL-VILLARD2013-09-221-1/+29
| | | | | | | | | | | | | as today qemu does not support phy, it will return always 0x0 to any read on the mii bus. So the phy_id is 0 and the link is donw. To have the norwork running on versatilpb & other qenu board for the link up at 100Mbps. Only enable if qemu_fixup is set. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: designware: remove backspaces from codeSascha Hauer2013-09-091-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: designware: Add decvicetree supportSascha Hauer2013-09-091-9/+45
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: designware: make alt/enhanced descriptor runtime configurableSascha Hauer2013-09-093-75/+56
| | | | | | | | | | Instead of hardcoding the alternate/enhanced descriptor layout make it configurable during runtime. This is based on the value of the enh_desc variable which is currently hardcoded to zero. This should be configurable via device_id in the future. Since currently we have no in tree user of this driver this currently doesn't hurt. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>