19 Aug, 2012

1 commit


31 Jul, 2012

1 commit


30 Jul, 2012

1 commit


28 Jul, 2012

4 commits

  • The behavior of the SMC has changed several times over the years,
    causing read failures in the driver. It seems the problem can be
    explained by a shift in SMC speed combined with improper action on
    status codes.

    We should first wait for the SMC to settle, which was the most
    frequent response on the old slow machines. Then, if the SMC is busy,
    we need to try again later by resending the command. This was the most
    likely response until 2012. Now, with a shorter wait time, we are
    again most likely to poll while the SMC is settling, and as a result
    we see high failure rates on many old and new models.

    With the distinction between busy and failure, we can also wait longer
    before retrying, without sacrificing speed. This seems to bring
    failures down to virtually zero on all models.

    Tested on: MBA1,1 MBA3,1 MBA5,1 MBA5,2 MBP9,2

    Tested-by: Adam Somerville
    Tested-by: Hubert Eichner
    Signed-off-by: Henrik Rydberg
    Signed-off-by: Guenter Roeck

    Henrik Rydberg
     
  • Restoring the configuration register on device removal has the side
    effect of also resetting the hysteresis value. This is inconsistent as
    the other limits are not reset, only hysteresis. So, following the
    principle of least surprise, preserve the hysteresis value when
    restoring the configuration register.

    Signed-off-by: Jean Delvare
    Cc: Guenter Roeck
    Signed-off-by: Guenter Roeck

    Jean Delvare
     
  • Define JC42_CFG_HYST_MASK as the mask _before_ shifting instead of
    after shifting. This simplifies the current code slightly, and will
    simplify the code to come even more.

    Signed-off-by: Jean Delvare
    Cc: Guenter Roeck
    Signed-off-by: Guenter Roeck

    Jean Delvare
     
  • Commit c5dec0182256361a3f823316e8fb85263f76efe7 (acpi_power_meter: Use struct
    dev_pm_ops for power management) introduced the following build warning. It is
    seen if CONFIG_PM_SLEEP is not defined.

    acpi_power_meter.c:930:12: warning: acpi_power_meter_resume defined but not used

    Fix it.

    Cc: Rafael J. Wysocki
    Signed-off-by: Guenter Roeck
    Acked-by: Rafael J. Wysocki

    Guenter Roeck
     

25 Jul, 2012

2 commits

  • Pull trivial tree from Jiri Kosina:
    "Trivial updates all over the place as usual."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (29 commits)
    Fix typo in include/linux/clk.h .
    pci: hotplug: Fix typo in pci
    iommu: Fix typo in iommu
    video: Fix typo in drivers/video
    Documentation: Add newline at end-of-file to files lacking one
    arm,unicore32: Remove obsolete "select MISC_DEVICES"
    module.c: spelling s/postition/position/g
    cpufreq: Fix typo in cpufreq driver
    trivial: typo in comment in mksysmap
    mach-omap2: Fix typo in debug message and comment
    scsi: aha152x: Fix sparse warning and make printing pointer address more portable.
    Change email address for Steve Glendinning
    Btrfs: fix typo in convert_extent_bit
    via: Remove bogus if check
    netprio_cgroup.c: fix comment typo
    backlight: fix memory leak on obscure error path
    Documentation: asus-laptop.txt references an obsolete Kconfig item
    Documentation: ManagementStyle: fixed typo
    mm/vmscan: cleanup comment error in balance_pgdat
    mm: cleanup on the comments of zone_reclaim_stat
    ...

    Linus Torvalds
     
  • Pull hwmon updates from Guenter Roeck:
    "New drivers for DA9052/53 PMIC as well as HIH-6130/HIH-6131 humidity
    and temperature sensors.

    Convert drivers to use devm_ functions and to use dev_pm_ops. Address
    a couple of Coverity errors/warnings as well as compile warnings.
    Some functional improvements in applesmc driver."

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (72 commits)
    hwmon: (applesmc) Ignore some temperature registers
    hwmon: (applesmc) Allow negative temperature values
    hwmon: (s3c-hwmon) Use devm_kzalloc instead of kzalloc
    hwmon: (w83781d) Fix compile warning
    hwmon: (applesmc) Shorten minimum wait time
    hwmon: (exynos4_tmu) Use struct dev_pm_ops for power management
    hwmon: (gpio-fan) Use struct dev_pm_ops for power management
    hwmon: (abituguru3) Use struct dev_pm_ops for power management
    hwmon: (abituguru) Use struct dev_pm_ops for power management
    hwmon: (acpi_power_meter) Fix unintentional integer overflow
    hwmon: (acpi_power_meter) Cleanup and optimizations
    hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature sensor driver
    hwmon: (applesmc) Skip sensor mapping
    hwmon: (ntc_thermistor) Ensure that data->name string is terminated
    hwmon: (w83l785ts) Convert to use devm_ functions
    hwmon: (w83l785ts) Simplify code and improve readability
    hwmon: (smsc47m192) Convert to use devm_ functions
    hwmon: (smsc47m1) Convert to use devm_ functions
    hwmon: (smsc47b397) Convert to use devm_ functions
    hwmon: (k8temp) Convert to use devm_ functions
    ...

    Linus Torvalds
     

23 Jul, 2012

1 commit

  • Pull x86/mce changes from Ingo Molnar:
    "This tree improves the AMD thresholding bank code and includes a
    memory fault signal handling fixlet."

    * 'x86-mce-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/mce: Fix siginfo_t->si_addr value for non-recoverable memory faults
    x86, MCE, AMD: Update copyrights and boilerplate
    x86, MCE, AMD: Give proper names to the thresholding banks
    x86, MCE, AMD: Make error_count read only
    x86, MCE, AMD: Cleanup reading of error_count
    x86, MCE, AMD: Print decimal thresholding values
    x86, MCE, AMD: Move shared bank to node descriptor
    x86, MCE, AMD: Remove local_allocate_... wrapper
    x86, MCE, AMD: Remove shared banks sysfs linking
    x86, amd_nb: Export model 0x10 and later PCI id

    Linus Torvalds
     

22 Jul, 2012

30 commits