04 May, 2011
1 commit
-
stmmac.h uses struct platform_device and doesn't include
. Whereas drivers/net/stmmac/stmmac.h includes it, but
doesn't directly use it. And so we get following compilation warning while using
this file:
warning: ‘struct platform_device’ declared inside parameter listThis patch includes in linux/stmmac.h and removes it
from drivers/net/stmmac/stmmac.hSigned-off-by: Viresh Kumar
Acked-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller
25 Nov, 2010
4 commits
-
Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
This patch updates the PM support using the dev_pm_ops
and reviews the hibernation support.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
This patch adds in the plat_stmmacenet_data
the init and exit callbacks that can be used
for invoking specific platform functions.
For example, on ST targets, these call the
PAD manager functions to set PIO lines and
syscfg registers.
The patch removes the stmmac_claim_resource
only used on STM Kernels as well.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
This patch tidies-up the stmmac_priv structure
that had many fileds alredy defined in the
plat_stmmacenet_data structure.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller
17 Oct, 2010
1 commit
-
These tables only contain function pointers.
Signed-off-by: Stephen Hemminger
Acked-by: Gustavo F. Padovan
Signed-off-by: David S. Miller
18 Sep, 2010
2 commits
-
The first version of the driver had hard-coded the logic
for handling the checksum offloading.
This was designed according to the chips included in
the STM platforms where:
o MAC10/100 supports no COE at all.
o GMAC fully supports RX/TX COE.This is not good for other chip configurations where,
for example, the mac10/100 supports the tx csum in HW
or when the GMAC has no IPC.Thanks to Johannes Stezenbach; he provided me a first
draft of this patch that only reviewed the IPC for the
GMAC devices.This patch also helps on SPEAr platforms where the
MAC10/100 can perform the TX csum in HW.
Thanks to Deepak SIKRI for his support on this.In the end, GMAC devices for STM platforms have
a bugged Jumbo frame support that needs to have
the Tx COE disabled for oversized frames (due to
limited buffer sizes). This information is also
passed through the driver's platform structure.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: Johannes Stezenbach
Signed-off-by: Deepak SIKRI
Signed-off-by: David S. Miller -
This patch adds the CSR Clock range selection.
Original patch from Johannes Stezenbach fixed the CSR
in the stmmac_mdio. We agreed to provide this through
the platform instead of.
Also thanks to Johannes for having tested it on ARM.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: Johannes Stezenbach
Signed-off-by: David S. Miller
31 Aug, 2010
1 commit
-
In file included from drivers/net/stmmac/stmmac_ethtool.c:30:
drivers/net/stmmac/stmmac.h:111: warning: 'struct platform_device' declared inside parameter list
drivers/net/stmmac/stmmac.h:111: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/net/stmmac/stmmac_main.c: In function 'stmmac_dvr_probe':
drivers/net/stmmac/stmmac_main.c:1744: warning: cast from pointer to integer of different size
In file included from drivers/net/stmmac/stmmac_mdio.c:31:
drivers/net/stmmac/stmmac.h:111: warning: 'struct platform_device' declared inside parameter list
drivers/net/stmmac/stmmac.h:111: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/net/stmmac/dwmac1000_core.c: In function 'dwmac1000_dump_regs':
drivers/net/stmmac/dwmac1000_core.c:56: warning: cast from pointer to integer of different sizeReported-by: Stephen Rothwell
Signed-off-by: David S. Miller
26 Aug, 2010
1 commit
-
This avoids unnecessary casting and adds the ioaddr in the
private structure.
This patch also removes many warning when compile the driver.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller
14 Apr, 2010
4 commits
-
Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Moved STMMAC_VLAN_TAG_USED from stmmac.h to common.h header
because it is used within the device and descriptor cores.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Output for chip that uses the Enhanced descriptors:
[snip]
STMMAC driver:
platform registration... done!
DWMAC1000 - user ID: 0x10, Synopsys ID: 0x33
Enhanced descriptor structure
no valid MAC address;please, use ifconfig or nwhwconfig!
eth0 - (dev. name: stmmaceth - id: 0, IRQ #134
IO base addr: 0xfd110000)
STMMAC MII Bus: probed
[snip]Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Currently the driver assumes that the mac10/100 can only use the
normal descriptor structure and the gmac can only use the
enhanced structures.
This patch removes the descriptor's code from the dma files
and adds two new files just for handling the normal and enhanced
descriptors.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller
08 Jan, 2010
3 commits
-
Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
This patch reorganises the internal stmmac ops structure.
The stmmac_ops has been splitted into other three structures named:
stmmac_ops
stmmac_dma_ops
stmmac_desc_opsThis makes the code more clear and also helps the next work to
make the driver more generic.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
This patch rewiews and reorganises all the data
come from the platform removing any dependency
from the stm code.Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller
15 Oct, 2009
1 commit
-
This is the driver for the ST MAC 10/100/1000 on-chip Ethernet
controllers (Synopsys IP blocks).Driver documentation:
o http://stlinux.com/drupal/kernel/network/stmmac
Revisions:
o http://stlinux.com/drupal/kernel/network/stmmac-driver-revisions
Performances:
o http://stlinux.com/drupal/benchmarks/networking/stmmacSigned-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller