07 Jun, 2011
1 commit
-
* remove interrupt.g inclusion from netdevice.h -- not needed
* fixup fallout, add interrupt.h and hardirq.h back where needed.Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
09 Nov, 2010
1 commit
-
Add suspend/resume support using default open/stop interface methods
to do hardware dependant operations.On suspend, same low power state (soft power mode) will be kept, the
following blocks will be disabled:- Internal PLL Clock
- Tx/Rx PHY
- MAC
- SPI InterfaceSigned-off-by: Abraham Arce
Signed-off-by: David S. Miller
09 Sep, 2010
1 commit
-
Use netdev_alloc_skb_ip_align() helper and do correct allocation
Tested-by: Abraham Arce
Signed-off-by: Abraham Arce
Signed-off-by: David S. Miller
06 May, 2010
3 commits
-
Accessing ks8851 companion eeprom permits modifying the ks8851 stored
MAC address.Example how to change the MAC address using ethtool, to set the
01:23:45:67:89:AB MAC address:
$ echo "0:AB8976452301" | xxd -r > mac.bin
$ sudo ethtool -E eth0 magic 0x8870 offset 2 < mac.binSigned-off-by: Sebastien Jan
Signed-off-by: David S. Miller -
Low-level functions provide 16bits words read and write capability
to ks8851 companion eeprom.Signed-off-by: Sebastien Jan
Signed-off-by: David S. Miller -
CCR register contains information on companion eeprom availability.
Signed-off-by: Sebastien Jan
Signed-off-by: David S. Miller
28 Apr, 2010
1 commit
-
Conflicts:
drivers/net/e100.c
drivers/net/e1000e/netdev.c
22 Apr, 2010
1 commit
-
Fix NULL pointer dereference in ks8851_tx_work by checking if dequeued
list is already empty before writing the packet to TX FIFOUnable to handle kernel NULL pointer dereference at virtual address 00000050
PC is at ks8851_tx_work+0xdc/0x1b0
LR is at wait_for_common+0x148/0x164
pc : [] lr : [] psr: 20000013
Backtrace:
ks8851_tx_work+0x0/0x1b0
worker_thread+0x0/0x190
kthread+0x0/0x90Signed-off-by: Abraham Arce
Signed-off-by: David S. Miller
04 Apr, 2010
1 commit
-
Converts the list and the core manipulating with it to be the same as uc_list.
+uses two functions for adding/removing mc address (normal and "global"
variant) instead of a function parameter.
+removes dev_mcast.c completely.
+exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
manipulation with lists on a sandbox (used in bonding and 80211 drivers)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller
21 Mar, 2010
1 commit
19 Mar, 2010
1 commit
-
Kernel NULL pointer dereference when setting mode for IFF_MULTICAST.
Tested on SDP OMAP4430 board.ks8851 spi1.0: message enable is 0
ks8851 spi1.0: revision 0, MAC f2:f4:2f:56:37:de, IRQ 194
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT SMP
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.34-rc1-01039-g38d7ed1-dirty #3)
PC is at ks8851_set_rx_mode+0x88/0x124
LR is at bitrev32+0x24/0x2cBacktrace:
[] ? (ks8851_set_rx_mode+0x0/0x124)
[] (__dev_set_rx_mode+0x0/0x90)
[] (dev_mc_add+0x0/0x78)
[] (igmp_group_added+0x0/0x64)
[] (ip_mc_inc_group+0x0/0x150)
[] (ip_mc_up+0x0/0x64)
[] (inetdev_event+0x0/0x3d4)
[] (notifier_call_chain+0x0/0x78)
[] (__raw_notifier_call_chain+0x0/0x24)
[] (raw_notifier_call_chain+0x0/0x28)
[] (call_netdevice_notifiers+0x0/0x24)
[] (__dev_notify_flags+0x0/0x68)
[] (dev_change_flags+0x0/0x4c)
[] (ip_auto_config+0x0/0xf1c)
[] (do_one_initcall+0x0/0x1bc)
[] (kernel_init+0x0/0x234)
Code: e15130bc e1833012 e14130bc e5943000 (e5934000)
---[ end trace ed0fb00a94142792 ]---
Kernel panic - not syncing: Fatal exception in interruptSigned-off-by: Abraham Arce
Signed-off-by: David S. Miller
17 Mar, 2010
1 commit
-
I'm not sure this is correct.
It changes logging macros from:
dev_(&ks->spidev->dev,
to
netdev_(ks->netdev,Comments?
Use netdev_
Use netif_
Use pr_
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Add missing line to message in ks8851_remove
Change kmalloc/memset(,0) to kzalloc
Remove ks_ macros
Consolidation code into set_media_stateSigned-off-by: David S. Miller
08 Mar, 2010
1 commit
-
Conflicts:
Documentation/filesystems/proc.txt
arch/arm/mach-u300/include/mach/debug-macro.S
drivers/net/qlge/qlge_ethtool.c
drivers/net/qlge/qlge_main.c
drivers/net/typhoon.c
26 Feb, 2010
1 commit
-
removed some needless checks and also corrected bug in lp486e (dmi was passed
instead of dmi->dmi_addr)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller
13 Feb, 2010
1 commit
-
This patch replaces dev->mc_count in all drivers (hopefully I didn't miss
anything). Used spatch and did small tweaks and conding style changes when
it was suitable.Jirka
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller
05 Feb, 2010
1 commit
-
Signed-off-by: Uwe Kleine-König
Signed-off-by: Jiri Kosina
04 Dec, 2009
1 commit
-
This fixes the NULL pointer dereference Oops in the ks8851 snl network
driver during transmission. All socket buffers from the queue are
processed inside the loop, but new workqueues have been scheduled to
run.Signed-off-by: Tristram Ha
Signed-off-by: David S. Miller
21 Oct, 2009
3 commits
-
In ks8851_set_rx_mode() the case handling IFF_MULTICAST was also setting
the RXCR1_AE bit by accident. This meant that all unicast frames where
being accepted by the device. Remove RXCR1_AE from this case.Note, RXCR1_AE was also masking a problem with setting the MAC address
properly, so needs to be applied after fixing the MAC write order.Fixes a bug reported by Doong, Ping of Micrel. This version of the
patch avoids setting RXCR1_ME for all cases.Signed-off-by: Ben Dooks
Signed-off-by: David S. Miller -
The MAC address register was being written in the wrong order, so add
a new address macro to convert mac-address byte to register address and
a ks8851_wrreg8() function to write each byte without having to worry
about any difficult byte swapping.Fixes a bug reported by Doong, Ping of Micrel.
Signed-off-by: Ben Dooks
Signed-off-by: David S. Miller -
Issue a full soft reset at probe time.
This was reported by Doong Ping of Micrel, but no explanation of why this
is necessary or what bug it is fixing. Add it as it does not seem to hurt
the current driver and ensures that the device is in a known state when we
start setting it up.Signed-off-by: Ben Dooks
Signed-off-by: David S. Miller
23 Sep, 2009
1 commit
-
This makes it consistent with other buses (platform, i2c, vio, ...). I'm
not sure why we use the prefixes, but there must be a reason.This was easy enough to do it, and I did it.
Signed-off-by: Anton Vorontsov
Cc: David Brownell
Cc: David Woodhouse
Cc: Grant Likely
Cc: Jean Delvare
Cc: Ben Dooks
Cc: Benjamin Herrenschmidt
Cc: Dmitry Torokhov
Cc: Samuel Ortiz
Cc: "John W. Linville"
Acked-by: Mike Frysinger
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
01 Sep, 2009
1 commit
-
In a couple of cases collapse some extra code like:
int retval = NETDEV_TX_OK;
...
return retval;
into
return NETDEV_TX_OK;Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
20 Jul, 2009
1 commit
-
Network driver for the SPI version of the Micrel KS8851
network chip.Signed-off-by: Ben Dooks
Signed-off-by: David S. Miller