Skip to content
Snippets Groups Projects
  1. Jan 28, 2013
  2. Sep 27, 2012
    • Marek Vasut's avatar
      FEC: Replace magic contants · c0b5a3bb
      Marek Vasut authored
      
      Replace the magic contant 1 << 24 with properly defined bits.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      c0b5a3bb
    • Marek Vasut's avatar
      FEC: Rework the TX wait mechanism · 67449098
      Marek Vasut authored
      
      The mechanism waiting for transmission to finish in fec_send() now
      relies on the E-bit being cleared in the TX buffer descriptor. In
      case of data cache being on, this means invalidation of data cache
      above this TX buffer descriptor on each test for the E-bit being
      cleared.
      
      Apparently, there is another way to check if the transmission did
      complete. This is by checking the TDAR bit in the X_DES_ACTIVE
      register. Reading a register does not need any data cache invalidation,
      which is beneficial.
      
      Rework the sequence that wait for completion of the transmission so that
      the TDAR bit is tested first and afterwards check the E-bit being clear.
      This cuts down the number of cache invalidation calls to one.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      67449098
    • Marek Vasut's avatar
      FEC: Remove endless loop in the FEC driver · bc1ce150
      Marek Vasut authored
      
      The FEC hardware sometimes errors out on data transfer and hangs in
      the tightloop adjusted by this patch. So add timeout into the tightloop
      to make such a hang recoverable.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      bc1ce150
    • Marek Vasut's avatar
      FEC: Properly align address over the buffers for cache ops · efe24d2e
      Marek Vasut authored
      
      Align the address that's to be invalidated/flushed properly.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Benoit Thebaudeau <benoit.thebaudeau@advans>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      efe24d2e
    • Marek Vasut's avatar
      FEC: Do not pass unaligned buffer to network stack · e2a66e60
      Marek Vasut authored
      
      Do not pass unaligned RX buffer to the upper layers. The upper layer,
      especially in the ARP case, recycles the buffer and passes it back into
      the FEC, into it's TX path. With caches enabled, the FEC hangs on this
      from time to time.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Benoit Thebaudeau <benoit.thebaudeau@advans>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      e2a66e60
  3. Jul 19, 2012
    • benoit.thebaudeau@advans's avatar
      net: fec_mxc: Fix MDC for xMII · f41471e6
      benoit.thebaudeau@advans authored
      
      The MDC signal is available on all xMII (i.e. 'not 7-wire') interfaces, so
      mii_speed has to be set for all these interfaces, and not only for MII.
      
      Signed-off-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Stefano Babic <sbabic@denx.de>
      f41471e6
    • benoit.thebaudeau@advans's avatar
      net: fec_mxc: Fix setting of RCR for xMII · 9d2d924a
      benoit.thebaudeau@advans authored
      
      At least on i.MX25, the RMII mode did not work, which is fixed by this patch.
      
      The MII_MODE bit of the FEC RCR register means xMII, i.e. 'not 7-wire', so set
      it accordingly.
      
      According to the xMII and 7-wire (aka GPSI) standards, full duplex should be
      available on xMII, but not on 7-wire, so set FCE accordingly. The FEC may
      support full duplex for 7-wire too, but the reference manual does not say that,
      so avoid an invalid assumption. Actually, the choice between half and full
      duplex also depends on the endpoint/switch/repeater configuration, so a config
      option could be added for that, but there has been no need for it so far.
      
      Signed-off-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Stefano Babic <sbabic@denx.de>
      9d2d924a
  4. Jul 11, 2012
    • Timur Tabi's avatar
      net: abort network initialization if the PHY driver fails · 11af8d65
      Timur Tabi authored
      
      Now that phy_startup() can return an actual error code, check for that error
      code and abort network initialization if the PHY fails.
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Acked-by: Nobuhiro Iwamamatsu <nobuhiro.iwamatsu.yj@renesas.com> (sh_eth part)
      Acked-by: Stephan Linz <linz@li-pro.net> (Xilinx part, xilinx_axi_emac and xilinx_ll_temac)
      Reviewed-by: Marek Vasut <marex@denx.de> (FEC part)
      11af8d65
  5. May 22, 2012
  6. May 15, 2012
  7. Mar 29, 2012
  8. Feb 27, 2012
  9. Jan 16, 2012
  10. Nov 11, 2011
  11. Oct 27, 2011
    • Marek Vasut's avatar
      GCC4.6: Squash warnings in fec_mxc.c · eda959f3
      Marek Vasut authored
      
      fec_mxc.c: In function 'fec_mii_setspeed':
      fec_mxc.c:112:2: warning: format '%#lx' expects type 'long unsigned int', but
      argument 2 has type 'u32'
      fec_mxc.c: In function 'fec_recv':
      fec_mxc.c:632:2: warning: format '%x' expects type 'unsigned int', but argument
      2 has type 'long unsigned int'
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Mike Frysinger <vapier@gentoo.org>
      eda959f3
  12. Sep 30, 2011
  13. Jul 16, 2011
  14. Feb 01, 2011
  15. Jan 09, 2011
  16. Nov 21, 2010
  17. Nov 14, 2010
  18. Oct 19, 2010
  19. Aug 09, 2010
  20. May 03, 2010
Loading