Commit Graph

21 Commits (2ab0dae9915d5c7c1c06c26ce1956bf0badd7a5b)

Author SHA1 Message Date
Florian Fainelli 8ed2299646 mcs814x: use devm_request_and_ioremap helper for nuport_mac driver
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36062
11 years ago
Florian Fainelli 18908139f3 mcs814x: use the standard device tree binding to represent a PHY node
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36059
11 years ago
Florian Fainelli 254d851d8a nuport-mac: various fixes
- properly check for the link up condition in the phylib adjust callback
- do not assign skb->dev, eth_type_trans() already does it
- handle skb allocation failures in the refill path

SVN-Revision: 33780
12 years ago
Florian Fainelli d504b6251c more convertions to {read,write}_relaxed I/O accessors
SVN-Revision: 33604
12 years ago
Florian Fainelli 6771d63284 use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants.

SVN-Revision: 33330
12 years ago
Florian Fainelli e88e20d975 nuport-mac: disable MAC RX and TX during interface close
Fixes sporadic crashes while reconfiguring the network interface.

SVN-Revision: 33312
12 years ago
Florian Fainelli c16bf519f1 nuport-mac: delay call to napi_start() until fully able to process RX
SVN-Revision: 33079
12 years ago
Florian Fainelli 47380a4388 nuport-mac: use dma_mapping_error() instead of checking pointers
Thanks Gabor for spotting this

SVN-Revision: 33071
12 years ago
Florian Fainelli 7f9bfa3fcd nuport-mac: rework PHY interrupt configuration to avoid races
SVN-Revision: 33070
12 years ago
Florian Fainelli 5e877f02b4 nuport-mac: close possible race condition during start
SVN-Revision: 33069
12 years ago
Florian Fainelli 35351a28b9 nuport-mac: unmap the DMA buffer when closing device
SVN-Revision: 33068
12 years ago
Florian Fainelli b77494fa2f nuport-mac: check dma_map_single address return values
SVN-Revision: 33067
12 years ago
Florian Fainelli 162e272b4b nuport-mac: properly protect the phy interrupt handler
SVN-Revision: 32951
12 years ago
Florian Fainelli 5133a44785 assume the link is up and full-duplex by default
SVN-Revision: 32940
12 years ago
Florian Fainelli 0e0b396663 make sure we properly unmap DMA mappings we created
SVN-Revision: 32728
12 years ago
Florian Fainelli 0f0e42f28e nuport-mac: add definitions of the various bits/masks used
SVN-Revision: 32727
12 years ago
Florian Fainelli 8765e49fbe nuport-mac: check netif_receive_skb() return value
We did not reassign status to netif_receive_skb() return value, we thus
almost always incremented the dropped counter because the descriptor status
value never matches the NET_RX_DROP.

SVN-Revision: 32659
12 years ago
Florian Fainelli 7c984552ed remove platform specific initialization from ethernet driver
Hardware filtering must always be enabled as long as there is an Ethernet
device registered, and use device tree for setting the link activity and
buffer shifting enable/disable bit.

SVN-Revision: 32486
12 years ago
Florian Fainelli 007fa4d638 remove uselss cache invalidations
SVN-Revision: 32472
12 years ago
Florian Fainelli 9a2367aa6d improve ethernet driver debugging
SVN-Revision: 32471
12 years ago
Florian Fainelli f4afa00862 add Moschip MSC814x support
This target currently only supports Moschip's MCS8140 SoC, but support
for other chips in the same family (MCS8142, MCS8144) will be easy to add.

Target support is entirely using Device Tree for probing peripherals.
Drivers support include:
- PCI
- USB 1 & 2
- watchdog
- random number generator
- UART
- timer
- internal Ethernet PHY
- Ethernet MAC core

Support for the following boards is included using Device Tree
- Devolo dLAN USB Extender
- Tigal RBT-832

SVN-Revision: 32462
12 years ago