Skip to content
Snippets Groups Projects
  1. Feb 27, 2010
  2. Feb 09, 2010
  3. Feb 08, 2010
  4. Feb 02, 2010
    • Jean Delvare's avatar
      macintosh/therm_adt746x: Fix sysfs attributes lifetime · 33a470f6
      Jean Delvare authored
      
      Looking at drivers/macintosh/therm_adt746x.c, the sysfs files are
      created in thermostat_init() and removed in thermostat_exit(), which
      are the driver's init and exit functions. These files are backed-up by
      a per-device structure, so it looks like the wrong thing to do: the
      sysfs files have a lifetime longer than the data structure that is
      backing it up.
      
      I think that sysfs files creation should be moved to the end of
      probe_thermostat() and sysfs files removal should be moved to the
      beginning of remove_thermostat().
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Tested-by: default avatarChristian Kujau <lists@nerdbynature.de>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Colin Leroy <colin@colino.net>
      Cc: stable@kernel.org
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      33a470f6
  5. Jan 14, 2010
  6. Dec 08, 2009
    • Darrick J. Wong's avatar
      powerpc/therm_adt746x: Record pwm invert bit at module load time] · 1496e89a
      Darrick J. Wong authored
      
      In commit 0512a9a8, we unilaterally zero the
      "pwm invert" bit in the fan behavior configuration register.  On my PowerBook
      G4, this results in the fans going to full speed at low temperature and
      shutting off at high temperature because the pwm invert bit is supposed to be
      set.
      
      Therefore, record the pwm invert bit at driver load time, and write the bit
      into the fan behavior control register.  This restores correct behavior on my
      PBG4 and should work around the bit being set to the wrong value after
      suspend/resume (which is what the original patch was trying to fix).  It also
      fixes a minor omission where the pwm invert bit correction is NOT performed
      when switching into automatic mode.
      
      Signed-off-by: default avatarDarrick J. Wong <djwong@us.ibm.com>
      CC: <stable@kernel.org>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      1496e89a
    • 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
  7. Dec 07, 2009
  8. Dec 04, 2009
  9. Nov 23, 2009
  10. Nov 18, 2009
  11. Nov 12, 2009
    • Eric W. Biederman's avatar
      sysctl drivers: Remove dead binary sysctl support · 894d2491
      Eric W. Biederman authored
      
      Now that sys_sysctl is a wrapper around /proc/sys all of
      the binary sysctl support elsewhere in the tree is
      dead code.
      
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Neil Brown <neilb@suse.de>
      Cc: "James E.J. Bottomley" <James.Bottomley@suse.de>
      Acked-by: Clemens Ladisch <clemens@ladisch.de> for drivers/char/hpet.c
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      894d2491
  12. Oct 30, 2009
  13. Oct 14, 2009
  14. Oct 13, 2009
    • Benjamin Herrenschmidt's avatar
      powerpc/pmac: Fix issues with sleep on some powerbooks · 11a50873
      Benjamin Herrenschmidt authored
      
      Since the change of how interrupts are disabled during suspend,
      certain PowerBook models started exhibiting various issues during
      suspend or resume from sleep.
      
      I finally tracked it down to the code that runs various "platform"
      functions (kind of little scripts extracted from the device-tree),
      which uses our i2c and PMU drivers expecting interrutps to work,
      and at a time where with the new scheme, they have been disabled.
      
      This causes timeouts internally which for some reason results in
      the PMU being unable to see the trackpad, among other issues, really
      it depends on the machine. Most of the time, we fail to properly adjust
      some clocks for suspend/resume so the results are not always
      predictable.
      
      This patch fixes it by using IRQF_TIMER for both the PMU and the I2C
      interrupts. I prefer doing it this way than moving the call sites since
      I really want those platform functions to still be called after all
      drivers (and before sysdevs).
      
      We also do a slight cleanup to via-pmu.c driver to make sure the
      ADB autopoll mask is handled correctly when doing bus resets
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      11a50873
  15. Oct 04, 2009
  16. Sep 21, 2009
  17. Sep 07, 2009
  18. Sep 01, 2009
    • Lyonel Vincent's avatar
      powerpc/powermac: Thermal control turns system off too eagerly · b8e4a7da
      Lyonel Vincent authored
      
      On certain PowerMacs, a module (therm_windtunnel) controls various
      thermal settings (it can report CPU/case temperature, change speed
      of internal fans, etc.)
      
      By default, the hardware thermal control has a temperature limit to
      protect the computer from damages (the default limit seems to be 80°C)
      but therm_windtunnel.c reduces it to an anormaly low value (65°C),
      which means that he computer will shut down randomly when hit by direct
      sun light or during summer (summer in France can be quite hot), actually
      possibly losing data instead of protecting it.
      
      The overheat limit in therm_windtunnel.c:253-254 should be set to 75°C
      and 70°C instead of 65°C and 60°C respectively.
      
      From: Lyonel Vincent <lyonel@ezix.org>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      b8e4a7da
  19. Aug 26, 2009
  20. Aug 19, 2009
  21. Jun 25, 2009
  22. Jun 15, 2009
  23. Jun 01, 2009
  24. Apr 22, 2009
    • 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
  25. Apr 21, 2009
  26. Feb 10, 2009
  27. Jan 06, 2009
  28. Dec 28, 2008
  29. Dec 20, 2008
  30. Dec 03, 2008
Loading