07 Jun, 2011

1 commit


31 Mar, 2011

1 commit


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 Interface

    Signed-off-by: Abraham Arce
    Signed-off-by: David S. Miller

    Arce, Abraham
     

09 Sep, 2010

1 commit


06 May, 2010

3 commits


28 Apr, 2010

1 commit


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 FIFO

    Unable 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/0x90

    Signed-off-by: Abraham Arce
    Signed-off-by: David S. Miller

    Abraham Arce
     

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

    Jiri Pirko
     

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/0x2c

    Backtrace:
    [] ? (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 interrupt

    Signed-off-by: Abraham Arce
    Signed-off-by: David S. Miller

    Abraham Arce
     

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_state

    Signed-off-by: David S. Miller

    Joe Perches
     

08 Mar, 2010

1 commit


26 Feb, 2010

1 commit


13 Feb, 2010

1 commit


05 Feb, 2010

1 commit


04 Dec, 2009

1 commit


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

    Ben Dooks
     
  • 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

    Ben Dooks
     
  • 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

    Ben Dooks
     

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

    Anton Vorontsov
     

01 Sep, 2009

1 commit


20 Jul, 2009

1 commit