1. 30 May, 2019 1 commit
  2. 03 Jan, 2013 1 commit
    • Greg Kroah-Hartman's avatar
      Drivers: macintosh: remove __dev* attributes. · 1da42fb6
      Greg Kroah-Hartman authored
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitconst,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1da42fb6
  3. 11 Sep, 2012 2 commits
  4. 27 Feb, 2012 1 commit
  5. 03 Feb, 2012 1 commit
  6. 02 Jun, 2010 1 commit
  7. 18 May, 2010 1 commit
  8. 09 Dec, 2009 1 commit
    • Benjamin Herrenschmidt's avatar
      powerpc/macio: Rework hotplug media bay support · d58b0c39
      Benjamin Herrenschmidt authored
      The hotplug mediabay has tendrils deep into drivers/ide code
      which makes a libata port reather difficult. In addition it's
      ugly and could be done better.
      
      This reworks the interface between the mediabay and the rest
      of the world so that:
      
         - Any macio_driver can now have a mediabay_event callback
      which will be called when that driver sits on a mediabay and
      it's been either plugged or unplugged. The device type is
      passed as an argument. We can now move all the IDE cruft
      into the IDE driver itself
      
         - A check_media_bay() function can be used to take a peek
      at the type of device currently in the bay if any, a cleaner
      variant of the previous function with the same name.
      
         - A pair of lock/unlock functions are exposed to allow the
      IDE driver to block the hotplug callbacks during the initial
      setup and probing of the bay in order to avoid nasty race
      conditions.
      
         - The mediabay code no longer needs to spin on the status
      register of the IDE interface when it detects an IDE device,
      this is done just fine by the IDE code itself
      
      Overall, less code, simpler, and allows for another driver
      than our old drivers/ide based one.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d58b0c39
  9. 22 Apr, 2009 2 commits
    • Bartlomiej Zolnierkiewicz's avatar
      mediabay: fix build for CONFIG_BLOCK=n · 83cff839
      Bartlomiej Zolnierkiewicz authored
      On Tuesday 14 April 2009 20:31:21 Subrata Modak wrote:
      > Observed the following build error:
      > ---
      > CC      drivers/macintosh/mediabay.o
      > In file included from drivers/macintosh/mediabay.c:21:
      > include/linux/ide.h:605: error: field ‘request_sense_rq’ has incomplete
      > type
      > make[2]: *** [drivers/macintosh/mediabay.o] Error 1
      > make[1]: *** [drivers/macintosh] Error 2
      > make: *** [drivers] Error 2
      > ---
      
      mediabay shouldn't include <linux/ide.h> unconditionally so
      remove the superfluous include from mediabay.c (<asm/mediabay.h>
      will pull <linux/ide.h> in for CONFIG_BLK_DEV_IDE_PMAC=y).
      Reported-by: default avatarSubrata Modak <subrata@linux.vnet.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      83cff839
    • Bartlomiej Zolnierkiewicz's avatar
      powerpc: Fix modular build of ide-pmac when mediabay is built in · 6329db8b
      Bartlomiej Zolnierkiewicz authored
      Now that the powermac IDE host driver can be modular, we need to
      export check_media_bay_by_base() and media_bay_set_ide_infos()
      from drivers/macintosh/mediabay.c for it.
      
      This fixes the following build error:
      
      > CC [M]  drivers/ide/pmac.o
      > drivers/ide/pmac.c: In function ‘pmac_ide_init_dev’:
      > drivers/ide/pmac.c:955: error: implicit declaration of function
      > ‘check_media_bay_by_base’
      > drivers/ide/pmac.c: In function ‘pmac_ide_setup_device’:
      > drivers/ide/pmac.c:1090: error: implicit declaration of function
      > ‘media_bay_set_ide_infos’
      > make[2]: *** [drivers/ide/pmac.o] Error 1
      > make[1]: *** [drivers/ide] Error 2
      > make: *** [drivers] Error 2
      Reported-by: default avatarSubrata Modak <subrata@linux.vnet.ibm.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      6329db8b
  10. 05 Aug, 2008 1 commit
  11. 30 Jun, 2008 1 commit
  12. 16 Jun, 2008 1 commit
  13. 15 Jun, 2008 1 commit
  14. 17 Apr, 2008 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ide: rework PowerMac media-bay support (take 2) · 2dde7861
      Bartlomiej Zolnierkiewicz authored
      Rework PowerMac media-bay support in such way that instead of
      un/registering the IDE interface we un/register IDE devices:
      
      * Add ide_port_scan() helper for probing+registerering devices on a port.
      
      * Rename ide_port_unregister_devices() to __ide_port_unregister_devices().
      
      * Add ide_port_unregister_devices() helper for unregistering devices on a port.
      
      * Add 'ide_hwif_t *cd_port' to 'struct media_bay_info', pass 'hwif' instead
        of hwif->index to media_bay_set_ide_infos() and use it to setup 'cd_port'.
      
      * Use ide_port_unregister_devices() instead of ide_unregister()
        and ide_port_scan() instead of ide_register_hw() in media_bay_step().
      
      * Unexport ide_register_hw() and make it static.
      
      v2:
      * Fix build by adding <linux/ide.h> include to <asm-powerpc/mediabay.h>.
        (Reported by Michael/Kamalesh/Andrew).
      
      Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
      Cc: Michael Ellerman <michael@ellerman.id.au>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      2dde7861
  15. 23 Feb, 2008 1 commit
    • Rafael J. Wysocki's avatar
      PM: Introduce PM_EVENT_HIBERNATE callback state · 3a2d5b70
      Rafael J. Wysocki authored
      During the last step of hibernation in the "platform" mode (with the
      help of ACPI) we use the suspend code, including the devices'
      ->suspend() methods, to prepare the system for entering the ACPI S4
      system sleep state.
      
      But at least for some devices the operations performed by the
      ->suspend() callback in that case must be different from its operations
      during regular suspend.
      
      For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
      pass it to the device drivers' ->suspend() methods during the last phase
      of hibernation, so that they can distinguish this case and handle it as
      appropriate.  Modify the drivers that handle PM_EVENT_SUSPEND in a
      special way and need to handle PM_EVENT_HIBERNATE in the same way.
      
      These changes are necessary to fix a hibernation regression related
      to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: Pavel Machek's avatarPavel Machek <pavel@ucw.cz>
      Tested-by: default avatarJeff Chua <jeff.chua.linux@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3a2d5b70
  16. 15 Feb, 2008 1 commit
  17. 06 Feb, 2008 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ppc: fix #ifdef-s in mediabay driver (take 2) · 34394e45
      Bartlomiej Zolnierkiewicz authored
      * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef in
        check_media_bay() by CONFIG_MAC_FLOPPY one.
      
      * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef-s by
        CONFIG_BLK_DEV_IDE_PMAC ones.
      
      * check_media_bay() is used only by drivers/block/swim3.c
        so make this function available only if CONFIG_MAC_FLOPPY
        is defined.
      
      * check_media_bay_by_base() and media_bay_set_ide_infos()
        are used only by drivers/ide/ppc/pmac.c so so make these
        functions available only if CONFIG_MAC_FLOPPY is defined.
      
      v2:
      * Remove ifdefs from function prototypes. (Andrew Morton)
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      34394e45
  18. 02 Feb, 2008 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add 'init_default' and 'restore' arguments to ide_unregister() · f82c2b17
      Bartlomiej Zolnierkiewicz authored
      * Add 'init_default' (flag for calling init_hwif_default()) and 'restore'
        (flag for calling ide_hwif_restore()) arguments to ide_unregister().
      
      * Update ide_unregister() users to set 'init_default' and 'restore' flags.
      
      * No need to set 'init_default' flag in ide_register_hw() if the setup done
        by init_hwif_default() is going to be overridden by ide_init_port_hw().
      
      * No need to set 'init_default' and 'restore' flags in cleanup_module().
      
      There should be no functionality changes caused by this patch.
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f82c2b17
  19. 26 Jan, 2008 1 commit
  20. 19 Dec, 2007 1 commit
  21. 19 Oct, 2007 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add ->fixup method to ide_hwif_t · fd9bb539
      Bartlomiej Zolnierkiewicz authored
      * Add ->fixup method to ide_hwif_t.
      
      * Set hwif->fixup in ide_pci_setup_ports() to d->fixup.
      
      * Use hwif->fixup in probe_hwif().
      
      * Use probe_hwif_init() instead of probe_hwif_init_with_fixup() in
        ide_setup_pci_device().
      
      * Add 'fixup' argument to ide_register_hw() and use it to set hwif->fixup,
        update all ide_register_hw() users accordingly.
      
      * Convert ide-cs/delkin_cb host drivers to use ide_register_hw().
      
      * Restore hwif->fixup in ide_hwif_restore().
      
      * Remove ide_register_hw_with_fixup(), probe_hwif_init_with_fixup()
        and 'fixup' argument from probe_hwif().
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      fd9bb539
  22. 09 May, 2007 1 commit
  23. 30 Jun, 2006 1 commit
  24. 28 Mar, 2006 1 commit
  25. 09 Jan, 2006 1 commit
  26. 18 Sep, 2005 1 commit
  27. 05 Sep, 2005 2 commits
  28. 06 Jul, 2005 1 commit
  29. 16 Apr, 2005 2 commits