31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
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
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 sizeSigned-off-by: 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
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
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 functionJust 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
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
09 Jul, 2010
2 commits
-
This patch removes an unnecessary bank select before resetting the
controller.Signed-off-by: Richard Röjfors
Signed-off-by: David S. Miller -
Currently all code that needs to be run at TX timeout is done in the
calling context, where bottom halves are disabled. Some of the code
blocks, so it needs to be done in a different context. This patch
adds in a work struct which is scheduled at TX timeout. Then the
timeout code is executed within work queue context.Signed-off-by: Richard Röjfors
Signed-off-by: David S. Miller
06 Jul, 2010
1 commit
-
This patch replaces all usage of dev_dbg with netdev_dbg.
A side effect is that the pointer to the platform device in the adapter
struct can be removed.Signed-off-by: Richard Röjfors
Signed-off-by: David S. Miller
22 Apr, 2010
1 commit
-
This patch adds platform data to the ks8842 driver.
Via the platform data a MAC address, to be used by the controller,
can be passed.To ensure this MAC address is used, the MAC address is written
after each hardware reset.Signed-off-by: Richard Röjfors
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
14 Oct, 2009
1 commit
-
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller
02 Sep, 2009
1 commit
-
No need to put ethtool_ops in data, they should be const.
Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
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
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