1. 18 3月, 2015 1 次提交
  2. 20 10月, 2014 1 次提交
  3. 04 10月, 2014 1 次提交
  4. 22 4月, 2014 1 次提交
  5. 28 3月, 2014 1 次提交
  6. 05 2月, 2014 2 次提交
    • M
      net: ethoc: set up MII management bus clock · a13aff06
      Max Filippov 提交于
      MII management bus clock is derived from the MAC clock by dividing it by
      MIIMODER register CLKDIV field value. This value may need to be set up
      in case it is undefined or its default value is too high (and
      communication with PHY is too slow) or too low (and communication with
      PHY is impossible). The value of CLKDIV is not specified directly, but
      is derived from the MAC clock for the default MII management bus frequency
      of 2.5MHz. The MAC clock may be specified in the platform data, or in
      the 'clocks' device tree attribute.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a13aff06
    • M
      net: ethoc: don't advertise gigabit speed on attached PHY · 445a48cc
      Max Filippov 提交于
      OpenCores 10/100 Mbps MAC does not support speeds above 100 Mbps, but does
      not disable advertisement when PHY supports them. This results in
      non-functioning network when the MAC is connected to a gigabit PHY connected
      to a gigabit switch.
      
      The fix is to disable gigabit speed advertisement on attached PHY
      unconditionally.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      445a48cc
  7. 02 2月, 2014 4 次提交
  8. 31 8月, 2013 1 次提交
  9. 28 5月, 2013 1 次提交
  10. 30 1月, 2013 1 次提交
  11. 15 1月, 2013 1 次提交
  12. 07 1月, 2013 1 次提交
  13. 04 1月, 2013 2 次提交
  14. 04 12月, 2012 1 次提交
  15. 17 7月, 2012 1 次提交
  16. 11 7月, 2012 1 次提交
  17. 18 2月, 2012 1 次提交
    • D
      ethoc: set addr_assign_type if random_ether_addr() used · 939d2254
      Danny Kukawka 提交于
      Set addr_assign_type correctly to NET_ADDR_RANDOM in case
      a random MAC address was generated and assigned to the netdevice.
      
      Fixed ethoc_set_mac_address() to check if the given mac
      address is valid and set also dev_addr of the net_device.
      Check also the return value of ethoc_set_mac_address() in
      ethoc_probe().
      
      Reset the state to NET_ADDR_PERM as soon as the MAC get
      changed via .ndo_set_mac_address.
      
      v2: set net_device->dev_addr in ethoc_set_mac_address(),
          check if given address is valid
      Signed-off-by: NDanny Kukawka <danny.kukawka@bisect.de>
      939d2254
  18. 01 2月, 2012 1 次提交
  19. 31 1月, 2012 1 次提交
  20. 29 11月, 2011 1 次提交
    • A
      net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver() · db62f684
      Axel Lin 提交于
      This patch converts the drivers in drivers/net/ethernet/* to use the
      module_platform_driver() macro which makes the code smaller and a bit
      simpler.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
      Cc: Vitaly Bordug <vbordug@ru.mvista.com>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Nicolas Pitre <nico@fluxnic.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Cc: Jiri Pirko <jpirko@redhat.com>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Tobias Klauser <tklauser@distanz.ch>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Richard Cochran <richard.cochran@omicron.at>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Sebastian Poehn <sebastian.poehn@belden.com>
      Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
      Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Acked-by: NWan ZongShun <mcuos.com@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db62f684
  21. 01 11月, 2011 1 次提交
  22. 18 8月, 2011 1 次提交
  23. 13 8月, 2011 1 次提交
  24. 22 6月, 2011 1 次提交
    • A
      net: remove mm.h inclusion from netdevice.h · b7f080cf
      Alexey Dobriyan 提交于
      Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).
      
      To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
      definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
      via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
      Removal of mm.h from scatterlist.h was tried and was found not feasible
      on most archs, so the link was cutoff earlier.
      
      Hope people are OK with tiny include file.
      
      Note, that mm_types.h is still dragged in, but it is a separate story.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b7f080cf
  25. 14 6月, 2011 1 次提交
  26. 10 6月, 2011 1 次提交
  27. 07 6月, 2011 1 次提交
  28. 31 3月, 2011 1 次提交
  29. 22 1月, 2011 1 次提交
  30. 29 11月, 2010 6 次提交
    • J
      ethoc: remove division from loops · 6a632625
      Jonas Bonn 提交于
      Calculating the BD entry using a modulus operation isn't optimal, especially
      inside the loop.  This patch removes the modulus operations in favour of:
      
      i)  simply checking for wrapping in the case of cur_rx
      ii) forcing num_tx to be a power of two and using it to mask out the
          entry from cur_tx
      
      The also prevents possible issues related overflow of the cur_rx and cur_tx
      counters.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6a632625
    • J
      ethoc: fix function return type · 4f64bcb2
      Jonas Bonn 提交于
      update_ethoc_tx_stats doesn't need to return anything so make its return
      type void in order to avoid an unnecessary cast when the function is called.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f64bcb2
    • J
      ethoc: rework mdio read/write · 8dac428a
      Jonas Bonn 提交于
      MDIO read and write were checking whether a timeout had expired to determine
      whether to recheck the result of the MDIO operation.  Under heavy CPU usage,
      however, it was possible for the timeout to expire before the routine got
      around to be able to check a second time even, thus erroneousy returning an
      -EBUSY.
      
      This patch changes the the MDIO IO routines to try up to five times to complete
      the operation before giving up, thus lessening the dependency on CPU load.
      
      This resolves a problem whereby a ping flood would keep the CPU so busy that
      the above problem would manifest itself; the MDIO command to check link status
      would fail and the interface would erroneously be shut down.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8dac428a
    • J
      ethoc: rework interrupt handling · fa98eb0e
      Jonas Bonn 提交于
      The old interrupt handling was incorrect in that it did not account for the
      fact that the interrupt source bits get set irregardless of whether or not
      their corresponding mask is set.  This patch fixes that by masking off the
      source bits for masked interrupts.
      
      Furthermore, the handling of transmission events is moved to the NAPI polling
      handler alongside the reception handler, thus preventing a whole bunch of
      interrupts during heavy traffic.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fa98eb0e
    • J
      ethoc: Double check pending RX packet · 20f70ddd
      Jonas Bonn 提交于
      An interrupt may occur between checking bd.stat and clearing the
      interrupt source register which would result in the packet going totally
      unnoticed as the interrupt will be missed.  Double check bd.stat after
      clearing the interrupt source register to guard against such an
      occurrence.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20f70ddd
    • A
      ethoc: enable interrupts after napi_complete · 7438a545
      Adam Edvardsson 提交于
      Occasionally, it seems that some race is causing the interrupts to not be
      reenabled otherwise with the end result that networking just stops working.
      Enabling interrupts after calling napi_complete is more in line with what
      other drivers do.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7438a545