1. 08 Jan, 2007 2 commits
    • Wim Van Sebroeck's avatar
      [WATCHDOG] pcwd_usb.c - get heartbeat from dip switches · 2ef473de
      Wim Van Sebroeck authored
      The PCWD cards normally use the heartbeat that is set via
      the dip-switches of the card. There are only 3 switches,
      thus 8 combinations that each have a certain heartbeat.
      The card can however be programmed with a heartbeat from
      1 till 65535 seconds. This is what our driver does: it
      programs the heartbeat on the card.
      
      There are however a lot of people that don't know that
      we set the heartbeat of the watchdog card to the value
      provided by the heartbeat module parameter. Instead they
      think that the heartbeat value is the same as set by the
      dip-switches.
      
      This patch changes the driver so that at startup you can
      take the heartbeat from the dip-switches. You do this
      by setting the heartbeat module parameter to 0. This
      patch also makes this the default behaviour.
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      2ef473de
    • Wim Van Sebroeck's avatar
      [WATCHDOG] pcwd_usb.c - document includes · d26d9096
      Wim Van Sebroeck authored
      document and review the include files.
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      d26d9096
  2. 07 Jan, 2007 2 commits
    • Wim Van Sebroeck's avatar
      [WATCHDOG] pcwd_pci.c - spinlock fixes · 045798b5
      Wim Van Sebroeck authored
      the keepalive and get_temperature functions should
      use spinlocks also.
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      045798b5
    • Wim Van Sebroeck's avatar
      [WATCHDOG] pcwd_pci.c - get heartbeat from dip switches · 39e3a055
      Wim Van Sebroeck authored
      The PCWD cards normally use the heartbeat that is set via
      the dip-switches of the card. There are only 3 switches,
      thus 8 combinations that each have a certain heartbeat.
      The card can however be programmed with a heartbeat from
      1 till 65535 seconds. This is what our driver does: it
      programs the heartbeat on the card.
      
      There are however a lot of people that don't know that
      we set the heartbeat of the watchdog card to the value
      provided by the heartbeat module parameter. Instead they
      think that the heartbeat value is the same as set by the
      dip-switches.
      
      This patch changes the driver so that at startup you can
      take the heartbeat from the dip-switches. You do this
      by setting the heartbeat module parameter to 0. This
      patch also makes this the default behaviour.
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      39e3a055
  3. 19 Dec, 2006 1 commit
  4. 18 Dec, 2006 6 commits
  5. 17 Dec, 2006 10 commits
  6. 16 Dec, 2006 16 commits
  7. 15 Dec, 2006 3 commits
    • Linus Torvalds's avatar
      Fix "delayed_work_pending()" macro expansion · 0221872a
      Linus Torvalds authored
      Nobody uses it, but it was still wrong.  Using the macro argument name
      'work' meant that when we used 'work' as a member name, that would also
      get replaced by the macro argument.
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0221872a
    • Roland Dreier's avatar
      IB/srp: Fix FMR mapping for 32-bit kernels and addresses above 4G · bf628dc2
      Roland Dreier authored
      struct srp_device.fmr_page_mask was unsigned long, which means that
      the top part of addresses above 4G was being chopped off on 32-bit
      architectures.  Of course nothing good happens when data from SRP
      targets is DMAed to the wrong place.
      
      Fix this by changing fmr_page_mask to u64, to match the addresses
      actually used by IB devices.
      
      Thanks to Brian Cain <Brian.Cain@ge.com> and David McMillen
      <davem@systemfabricworks.com> for help diagnosing the bug and testing
      the fix.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      bf628dc2
    • Roland Dreier's avatar
      IB: Fix ib_dma_alloc_coherent() wrapper · c59a3da1
      Roland Dreier authored
      The ib_dma_alloc_coherent() wrapper uses a u64* for the dma_handle
      parameter, unlike dma_alloc_coherent, which uses dma_addr_t*.  This
      means that we need a temporary variable to handle the case when
      ib_dma_alloc_coherent() just falls through directly to
      dma_alloc_coherent() on architectures where sizeof u64 != sizeof
      dma_addr_t.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      c59a3da1