31 Mar, 2011

1 commit


23 Mar, 2011

1 commit

  • The cell's platform_data is now accessed with a helper function;
    change clients to use that, and remove the now-unused data_size.

    Note that the mfd's platform_data is marked __devinitdata. This
    is still correct in all cases except for the timbgpio driver, whose
    remove hook has been changed to no longer reference the pdata.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     

28 Jul, 2010

2 commits

  • drivers/net/ks8842.c:922:26: warning: cast from pointer to integer of different size
    drivers/net/ks8842.c:940:17: warning: cast to pointer from integer of different size
    drivers/net/ks8842.c:963:17: warning: cast to pointer from integer of different size

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch adds support for RX and TX DMA via the DMA API,
    this is only supported when the KS8842 is accessed via timberdale.

    There is no support for DMA on the generic bus interface it self,
    a state machine inside the FPGA is handling RX and TX transfers to/from
    buffers in the FPGA. The host CPU can do DMA to and from these buffers.

    The FPGA has to handle the RX interrupts, so these must be enabled in
    the ks8842 but not in the FPGA. The driver must not disable the RX interrupt
    that would mean that the data transfers into the FPGA buffers would stop.

    The host shall not enable TX interrupts since TX is handled by the FPGA,
    the host is notified by DMA callbacks when transfers are finished.

    Which DMA channels to use are added as parameters in the platform data struct.

    Signed-off-by: Richard Röjfors
    Signed-off-by: David S. Miller

    Richard Röjfors
     

27 Jul, 2010

1 commit

  • This patch removes the code which disables 100Mbps advertising when
    the ks8842 is accessed via timberdale.

    At higher speed it's good to be nice to the internal state machine
    of timberdale by acking interrupts. That is done by a write to the
    interrupt ack register (IAR).

    Signed-off-by: Richard Röjfors
    Signed-off-by: David S. Miller

    Richard Röjfors
     

20 Jul, 2010

1 commit

  • As reported by Andrew:

    drivers/net/ks8842.c: In function 'ks8842_handle_rx':
    drivers/net/ks8842.c:428: warning: 'status' may be used uninitialized in this function

    Just use the 32-bit status for all reads, and delete the useless
    cast to 'int' when reading a u16 into 'len'.

    Reported-by: Andrew Morton
    Signed-off-by: David S. Miller

    David S. Miller
     

14 Jul, 2010

1 commit

  • Body of the explanation:
    -support 16bit and 32bit bus width.
    -add device reset for ks8842/8841 Micrel device.
    -set 100Mbps as a default for Micrel device.
    -set MAC address in both MAC/Switch layer with different sequence for Micrel
    device, as mentioned in data sheet.
    -use private data to set options both 16/32bit bus width and Micrel device/
    Timberdale(FPGA).
    -update Kconfig in order to put more information about ks8842 device.

    Signed-off-by: David J. Choi
    Signed-off-by: David S. Miller

    David J. Choi
     

09 Jul, 2010

2 commits


06 Jul, 2010

1 commit


22 Apr, 2010

1 commit


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
     

14 Oct, 2009

1 commit


02 Sep, 2009

1 commit


01 Sep, 2009

1 commit


08 Jun, 2009

1 commit

  • This is a driver for the Micrel KS8842 ethernet switch.

    The supplied code is for driving the KS8842 through the Timberdale FPGA
    on the Russellville board, a development board for Intel Atom CPU
    in the automotive area.

    Signed-off-by: Richard Röjfors
    Signed-off-by: David S. Miller

    Richard Ršöjfors