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
2012-10-15 21:03:57 +00:00
Florian Fainelli
d504b6251c
more convertions to {read,write}_relaxed I/O accessors
...
SVN-Revision: 33604
2012-10-03 16:10:47 +00:00
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
2012-09-08 09:51:05 +00:00
Florian Fainelli
e88e20d975
nuport-mac: disable MAC RX and TX during interface close
...
Fixes sporadic crashes while reconfiguring the network interface.
SVN-Revision: 33312
2012-09-03 10:26:01 +00:00
Florian Fainelli
a183ced08e
MCS8140 actually selects CPU_ARM926T
...
Should make inclusion for other MCS814x SoCs easier
SVN-Revision: 33188
2012-08-14 16:19:30 +00:00
Florian Fainelli
43ddb1d7af
change partition names to be more in line with other OpenWrt devices
...
SVN-Revision: 33127
2012-08-11 12:55:30 +00:00
Florian Fainelli
c16bf519f1
nuport-mac: delay call to napi_start() until fully able to process RX
...
SVN-Revision: 33079
2012-08-10 07:04:21 +00:00
Florian Fainelli
0028429dfa
set a compatible command-line to boot from flash
...
SVN-Revision: 33078
2012-08-10 07:04:16 +00:00
Florian Fainelli
47380a4388
nuport-mac: use dma_mapping_error() instead of checking pointers
...
Thanks Gabor for spotting this
SVN-Revision: 33071
2012-08-09 09:06:35 +00:00
Florian Fainelli
7f9bfa3fcd
nuport-mac: rework PHY interrupt configuration to avoid races
...
SVN-Revision: 33070
2012-08-08 21:51:18 +00:00
Florian Fainelli
5e877f02b4
nuport-mac: close possible race condition during start
...
SVN-Revision: 33069
2012-08-08 21:51:13 +00:00
Florian Fainelli
35351a28b9
nuport-mac: unmap the DMA buffer when closing device
...
SVN-Revision: 33068
2012-08-08 21:51:09 +00:00
Florian Fainelli
b77494fa2f
nuport-mac: check dma_map_single address return values
...
SVN-Revision: 33067
2012-08-08 21:51:04 +00:00
Florian Fainelli
162e272b4b
nuport-mac: properly protect the phy interrupt handler
...
SVN-Revision: 32951
2012-08-02 18:13:17 +00:00
Florian Fainelli
5133a44785
assume the link is up and full-duplex by default
...
SVN-Revision: 32940
2012-08-01 21:56:54 +00:00
Florian Fainelli
a5d72815b5
add compatible property to pci node
...
SVN-Revision: 32730
2012-07-15 14:09:40 +00:00
Florian Fainelli
b5578d83d5
use ohci_err() instead of err()
...
SVN-Revision: 32729
2012-07-15 14:09:32 +00:00
Florian Fainelli
0e0b396663
make sure we properly unmap DMA mappings we created
...
SVN-Revision: 32728
2012-07-15 14:09:24 +00:00
Florian Fainelli
0f0e42f28e
nuport-mac: add definitions of the various bits/masks used
...
SVN-Revision: 32727
2012-07-15 14:09:18 +00:00
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
2012-07-11 08:29:01 +00:00
Florian Fainelli
93bf00ff36
fix typo on of_node_put()
...
SVN-Revision: 32653
2012-07-09 14:44:15 +00:00
Florian Fainelli
110fd3525a
call of_node_put() on ethernet node
...
SVN-Revision: 32628
2012-07-05 18:46:55 +00:00
Florian Fainelli
a8fab2cb78
fix EPHY clock bit definition after r32489
...
SVN-Revision: 32627
2012-07-05 18:46:52 +00:00
Florian Fainelli
81681d7367
give an unique partition identifier for dLAN USB Extender Combined partition
...
SVN-Revision: 32626
2012-07-05 18:46:48 +00:00
Florian Fainelli
0fdac1102d
add missing interrupts properties to some device nodes
...
SVN-Revision: 32603
2012-07-04 19:37:11 +00:00
Florian Fainelli
81e8757da4
provide an early ioremap cookie of the system configuration register
...
SVN-Revision: 32489
2012-06-23 11:03:50 +00:00
Florian Fainelli
98b2bc9189
group SYSDBG register defines in mcs814x.h
...
SVN-Revision: 32488
2012-06-23 11:03:45 +00:00
Florian Fainelli
a8965f0005
make hardware.h a forward inclusion of mcs814x.h
...
mach/hardware.h is soon to be removed by upstream kernel
SVN-Revision: 32487
2012-06-23 11:03:40 +00:00
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
2012-06-23 11:03:35 +00:00
Florian Fainelli
2c47bbc199
regroup interrupt controller register definitions in hardware.h
...
SVN-Revision: 32485
2012-06-23 11:03:29 +00:00
Florian Fainelli
481c9faf20
remove handle_irq callback in board-mcs8140-dt.c
...
This should have been removed in r32470.
SVN-Revision: 32481
2012-06-21 12:20:47 +00:00
Florian Fainelli
007fa4d638
remove uselss cache invalidations
...
SVN-Revision: 32472
2012-06-20 21:57:53 +00:00
Florian Fainelli
9a2367aa6d
improve ethernet driver debugging
...
SVN-Revision: 32471
2012-06-20 21:57:49 +00:00
Florian Fainelli
3b0dba382b
do not use MULTI_IRQ_HANDLER it is bogus on our platform
...
This caused stalls in the Ethernet DMA block, so until properly
written and sorted out, fallback to the assembly version instead.
SVN-Revision: 32470
2012-06-20 21:57:45 +00:00
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
2012-06-19 14:48:56 +00:00