1. 26 1月, 2013 8 次提交
  2. 24 1月, 2013 2 次提交
    • M
      Revert "serial: fix retry logic" · b37a2e45
      Michael Tokarev 提交于
      This reverts commit 67c5322d:
      
          I'm not sure if the retry logic has ever worked when not using FIFO mode.  I
          found this while writing a test case although code inspection confirms it is
          definitely broken.
      
          The TSR retry logic will never actually happen because it is guarded by an
          'if (s->tsr_rety > 0)' but this is the only place that can ever make the
          variable greater than zero.  That effectively makes the retry logic an 'if (0)
      
          I believe this is a typo and the intention was >= 0.  Once this is fixed thoug
          I see double transmits with my test case.  This is because in the non FIFO
          case, serial_xmit may get invoked while LSR.THRE is still high because the
          character was processed but the retransmit timer was still active.
      
          We can handle this by simply checking for LSR.THRE and returning early.  It's
          possible that the FIFO paths also need some attention.
      
          Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      Even if the previous logic was never worked, new logic breaks stuff -
      namely,
      
       qemu -enable-kvm -nographic -kernel /boot/vmlinuz-$(uname -r) -append console=ttyS0 -serial pty
      
      the above command will cause the virtual machine to stuck at startup
      using 100% CPU till one connects to the pty and sends any char to it.
      
      Note this is rather typical invocation for various headless virtual
      machines by libvirt.
      
      So revert this change for now, till a better solution will be found.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b37a2e45
    • G
      trivial: etraxfs_eth: Eliminate checkpatch errors · 9fc7577a
      Grant Likely 提交于
      This is a trivial patch to harmonize the coding style on
      hw/etraxfs_eth.c. This is in preparation to split off the bitbang mdio
      code into a separate file.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Paul Brook <paul@codesourcery.com>
      Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Cc: Andreas Färber <afaerber@suse.de>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
      9fc7577a
  3. 22 1月, 2013 16 次提交
  4. 21 1月, 2013 3 次提交
  5. 19 1月, 2013 11 次提交