1. 23 2月, 2010 35 次提交
  2. 22 2月, 2010 2 次提交
  3. 20 2月, 2010 3 次提交
    • S
      Input: polldev can cause crash in case when polling disabled · d9c4f846
      Samu Onkalo 提交于
      When polled input device is opened and closed and there are no other
      users of polled device, the workqueue is created and destroyed in
      every open / close operation. It is probable that at some point
      dynamic allocation of internal parts of the workqueue cause changes to the
      workqueue.
      
      When a work is queued to the workqueue the work struct contains pointers
      to the workqueue data. If the workqueue has been changed and the work
      has never been queued to the new workqueue, work-struct contains pointers
      to the non-existing workqueue. This will cause crash at the work
      cancellation during device close since cancellation of a work assumes
      that the workqueue exists.
      
      To prevent that, work struct is cleaned up at device close. This keeps
      work struct clean for the next use.
      Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      d9c4f846
    • B
      sfc: SFE4002/SFN4112F: Widen temperature and voltage tolerances · 242cc054
      Ben Hutchings 提交于
      The temperature and voltage limits currently set on these boards are
      too conservative and will cause the driver to stop the net device
      erroneously in some systems.
      
      Based on a review of the chip datasheets and advice from the designer
      of these boards:
      
      - Raise the maximum board temperatures to the specified maximum ambient
        temperatures for their PHYs plus the expected temperature bias of the
        board
      - Raise the maximum controller temperature to 90 degrees
      - Lower the minimum temperatures to 0 degrees
      - Widen the voltage tolerances to at least +/- 10%
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      242cc054
    • B
      sfc: Fix sign of efx_mcdi_poll_reboot() error in efx_mcdi_poll() · e0bf54c9
      Ben Hutchings 提交于
      efx_mcdi_poll() uses positive error numbers, matching the MCDI
      protocol.  It must negate the result of efx_mcdi_poll_reboot() which
      returns the usual negative error numbers.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0bf54c9