1. 15 Mar, 2013 1 commit
  2. 14 Mar, 2013 2 commits
    • H Hartley Sweeten's avatar
      staging: comedi_pci: pass comedi_device to comedi_pci_enable() · 818f569f
      H Hartley Sweeten authored
      
      
      Make comedi_pci_enable() use the same parameter type as
      comedi_pci_disable(). This also allows comedi_pci_enable
      to automatically determine the resource name passed to
      pci_request_regions().
      
      Make sure the errno value returned is passed on instead of
      assuming an errno. Also, remove any kernel noise that is
      generated when the call fails.
      
      The National Instruments drivers that use the mite module
      currently enable the PCI device in the mite module. For
      those drivers move the call to comedi_pci_enable into the
      driver.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      818f569f
    • H Hartley Sweeten's avatar
      staging: comedi_pci: make comedi_pci_disable() safe to call · 7f072f54
      H Hartley Sweeten authored
      
      
      Currently all the comedi PCI drivers need to do some checking in
      their (*detach) before calling comedi_pci_disable() in order to
      make sure the PCI device has actually be enabled.
      
      Change the parameter passed to comedi_pci_disable() from a struct
      pci_dev pointer to a comedi_device pointer and have comedi_pci_disable()
      handle all the checking.
      
      For most comedi PCI drivers this also allows removing the local
      variable holding the pointer to the pci_dev. For some of the drivers
      comedi_pci_disable can now be used directly as the (*detach) function.
      
      The National Instruments drivers that use the mite module currently
      enable/disable the PCI device in the mite module. For those drivers
      move the call to comedi_pci_disable into the driver and make sure
      dev->iobase is set to a non-zero value.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7f072f54
  3. 11 Mar, 2013 1 commit
    • H Hartley Sweeten's avatar
      staging: comedi: comedi_pci: change the comedi_pci_auto_config() 'context' · b8f4ac23
      H Hartley Sweeten authored
      
      
      The comedi_pci_auto_config() function is used to allow the PCI driver
      (*probe) function to automatically call the comedi driver (*auto_attach).
      This allows the comedi driver to be part of the PnP process when the
      PCI device is detected.
      
      Currently the comedi_pci_auto_config() always passes a 'context' of '0'
      to comedi_auto_config(). This makes the 'context' a bit useless.
      
      Modify comedi_pci_auto_config() to allow the comedi pci drivers to pass
      a 'context' from the PCI driver.
      
      Make all the comedi pci drivers pass the pci_device_id 'driver_data' as
      the 'context'. Since none of the comedi pci drivers currently set the
      'driver_data' the 'context' will still be '0'.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b8f4ac23
  4. 31 Jan, 2013 1 commit
    • H Hartley Sweeten's avatar
      staging: comedi: conditionally build in PCI driver support · 33782dd5
      H Hartley Sweeten authored
      
      
      Separate the comedi_pci_* functions out of drivers.c into a new
      source file, comedi_pci.c. This allows conditionally building
      support for comedi PCI drivers into the comedi core. Fix the
      Kconfig and Makefile appropriately.
      
      Group all the comedi_pci_* prototypes and related defines into one
      place in comedidev.h. Protect these prototypes with an #ifdef and
      provide some dummy functions so that the mixed ISA/PCI comedi
      drivers will still build correctly.
      
      Remove the #include <linux/pci.h> from comedidev.h and drivers.c. This
      include is only needed by the comedi PCI driver support code and the
      PCI drivers. The include should occur in those files.
      
      Also, remove the #include <linux/pci.h> from a couple non-PCI drivers
      since it's not needed.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      33782dd5
  5. 25 Jan, 2013 1 commit
  6. 21 Nov, 2012 3 commits
  7. 15 Nov, 2012 1 commit
  8. 30 Oct, 2012 1 commit
  9. 24 Oct, 2012 2 commits
  10. 22 Oct, 2012 1 commit
  11. 26 Sep, 2012 23 commits
  12. 06 Jul, 2012 1 commit
  13. 23 Jun, 2012 2 commits