Skip to content
Snippets Groups Projects
  1. Aug 12, 2015
  2. Jul 21, 2015
    • Simon Glass's avatar
      net: Allow drivers to return -ENOSYS with the write_hwaddr() method · b86f795a
      Simon Glass authored
      
      Some drivers may want to implement this method for some of their devices but
      not for others. So it is not possible to just leave the operation out of
      the table. Drivers could get around this by masquerading as two separate
      drivers but that seems unpleasant.
      
      Allow the driver to return an error when it does not want to process the
      write_hwaddr() method.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      b86f795a
    • Simon Glass's avatar
      dm: eth: Avoid blocking on packet reception · a1ca92ea
      Simon Glass authored
      
      Some devices can take a long time to work out whether they have a new packet
      or now. For example the ASIX USB Ethernet dongle can take 5 seconds to do
      this, since it waits until it gets a new packet on the wire before allowing
      the USB bulk read packet to be submitted.
      
      At present with driver mode the Ethernet receive code reads 32 packets. This
      can take a very long time if we must wait for all 32 packets. The old code
      (before driver model) worked by reading a single set of packets from the USB
      device, then processing all the packets with in. It would be nice to use
      the same behaviour with driver model.
      
      Add a flag to the receive method which indicates that the driver should try
      to find a packet if available, by consulting the hardware. When the flag is
      not set, it should just return any packet data it has already received. If
      there is none, it should return -EAGAIN so that the loop will terminate.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      a1ca92ea
  3. Jul 08, 2015
  4. Jun 01, 2015
  5. May 21, 2015
  6. May 19, 2015
  7. May 06, 2015
  8. Apr 18, 2015
Loading