• Jesper Nilsson's avatar
    cris build fixes: update eth_v10.c ethernet driver · bafef0ae
    Jesper Nilsson authored
    New (updated) version of ethernet driver for cris v10.
    
    - First steps to simplify and make the MII code more similar
      between the etrax100 and etraxfs ports.
    
    - Start the transmit queue before enabling tx interrupts
      to avoid race with the first frame.
    
    - Flip the comparition statement to stick to physical addresses
      to avoid phys_to_virt mapping a potential null pointer.
      This was not an error but the change simplifies debugging
      of address-space mappings.
    
    - Made myPrevRxDesc local to e100_rx since it was only used there.
      Fixed out of memory handling in e100_rx.  If dev_alloc_skb() fails
      persistently the system is hosed anyway but at least it won't
      loop in an interrupt handler.
    
    - Correct some code formatting issues.
    
    - Add defines SET_ETH_ENABLE_LEDS, SET_ETH_DISABLE_LEDS
      and SET_ETH_AUTONEG used in new cris v10 ethernet driver.
    Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
    Acked-by: default avatarMikael Starvik <starvik@axis.com>
    Cc: Jeff Garzik <jeff@garzik.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    bafef0ae
eth_v10.c 54.5 KB