16 Aug, 2010

4 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    gcc-4.6: ACPI: fix unused but set variables in ACPI
    ACPI thermal: make procfs I/F depend on CONFIG_ACPI_PROCFS
    ACPI video: make procfs I/F depend on CONFIG_ACPI_PROCFS
    ACPI processor: remove deprecated ACPI procfs I/F
    ACPI power_resource: remove unused procfs I/F
    ACPI: remove deprecated ACPI procfs I/F
    ACPI: introduce drivers/acpi/sysfs.c
    ACPI: introduce module parameter acpi.aml_debug_output
    ACPI: introduce drivers/acpi/debugfs.c
    ACPI, APEI, ERST debug support
    ACPI, APEI, Manage GHES as platform devices
    ACPI, APEI, Rename CPER and GHES severity constants
    ACPI, APEI, Fix a typo of error path of apei_resources_request
    ACPI / ACPICA: Fix reference counting problems with GPE handlers
    ACPI: Add the check of ADR flag in course of finding ACPI handle for PCI device
    ACPI / Sleep: Drop acpi_suspend_finish()
    ACPI / Sleep: Consolidate suspend and hibernation routines
    ACPI / Wakeup: Simplify enabling of wakeup devices
    ACPI / Sleep: Rework enabling wakeup devices
    ACPI / Sleep: Free NVS copy if suspending of devices fails

    Fixed up totally buggered "ACPI: fix unused but set variables in ACPI"
    patch that doesn't even compile in the merge.

    Thanks to Sedat Dilek for noticing the
    breakage before I even pulled. And a big "Grrr.." at Len for not even
    bothering to compile the tree before asking me to pull.

    Linus Torvalds
     
  • * git://git.infradead.org/iommu-2.6:
    intel-iommu: Fix 32-bit build warning with __cmpxchg()
    intr-remap: allow disabling source id checking

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6:
    mtd/nand_ids: Fix buswidth
    mtd/m25p80: fix test for end of loop
    mtd/m25p80: retlen is never NULL
    MIPS: Fix gen_nand probe structures contents
    gen_nand: Test if nr_chips field is valid
    BFIN: Fix gen_nand probe structures contents
    nand/denali: move all hardware initialization work to denali_hw_init
    nand/denali: Add a page check in denali_read_page & denali_read_page_raw
    nand/denali: use cpu_relax() while waiting for hardware interrupt
    nand/denali: change read_status function method
    nand/denali: Fixed check patch warnings
    ARM: Fix gen_nand probe structures contents
    mtd/nand_base: fix kernel-doc warnings & typos
    nand/denali: use dev_xx debug function to replace nand_dbg_print and some printk
    nand/denali: Fixed handle ECC error bugs
    nand/denali: use iowrite32() to replace denali_write32()
    nand/denali: Fixed probe function bugs

    Linus Torvalds
     
  • * 'idle-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-idle-2.6:
    intel_idle: recognize Lincroft Atom Processor
    intel_idle: no longer EXPERIMENTAL
    intel_idle: disable module support
    intel_idle: add support for Westmere-EX
    intel_idle: delete power_policy modparam, and choose substate functions
    intel_idle: delete substates DEBUG modparam

    Linus Torvalds
     

15 Aug, 2010

36 commits

  • Conflicts:
    drivers/acpi/debug.c

    Signed-off-by: Len Brown

    Len Brown
     
  • Some minor improvements in error handling, but overall it was mostly dead
    code.

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Andi Kleen
     
  • Mark the ACPI thermal procfs I/F deprecated, because /sys/class/thermal/
    is already available and has been working for years w/o any problem.

    The ACPI thermal procfs I/F will be removed in 2.6.37.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Mark ACPI video driver procfs I/F deprecated, including:
    /proc/acpi/video/*/info
    /proc/acpi/video/*/DOS
    /proc/acpi/video/*/ROM
    /proc/acpi/video/*/POST
    /proc/acpi/video/*/POST_info
    /proc/acpi/video/*/*/info
    /proc/acpi/video/*/*/state
    /proc/acpi/video/*/*/EDID
    and
    /proc/acpi/video/*/*/brightness, because
    1. we already have the sysfs I/F /sysclass/backlight/ as the replacement
    of /proc/acpi/video/*/*/brightness.
    2. the other procfs I/F is not useful for userspace.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Remove deprecated ACPI processor procfs I/F, including:
    /proc/acpi/processor/CPUX/power
    /proc/acpi/processor/CPUX/limit
    /proc/acpi/processor/CPUX/info

    /proc/acpi/processor/CPUX/throttling still exists,
    as we don't have sysfs I/F available for now.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Remove unused ACPI power procfs I/F.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Rmove deprecated ACPI procfs I/F, including
    /proc/acpi/debug_layer
    /proc/acpi/debug_level
    /proc/acpi/info
    /proc/acpi/dsdt
    /proc/acpi/fadt
    /proc/acpi/sleep

    because the sysfs I/F is already available
    and has been working well for years.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Introduce drivers/acpi/sysfs.c.

    code for ACPI sysfs I/F, including
    #ifdef ACPI_DEBUG
    /sys/module/acpi/parameters/debug_layer
    /sys/module/acpi/parameters/debug_level
    /sys/module/acpi/parameters/trace_method_name
    /sys/module/acpi/parameters/trace_debug_layer
    /sys/module/acpi/parameters/trace_debug_level
    /sys/module/acpi/parameters/trace_state
    #endif
    /sys/module/acpi/parameters/acpica_version
    /sys/firmware/acpi/tables/
    /sys/firmware/acpi/interrupts/
    is moved to this file.

    No function change in this patch.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Len Brown
     
  • Len Brown
     
  • Len Brown
     
  • Len Brown
     
  • Len Brown
     
  • Introduce module parameter acpi.aml_debug_output.

    With acpi.aml_debug_output set, we can get AML debug object output
    (Store (AAA, Debug)), even with CONFIG_ACPI_DEBUG cleared.

    Together with the runtime custom method mechanism,
    we can debug AML code problems without rebuilding the kernel.

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Introduce drivers/acpi/debugfs.c.

    Code for ACPI debugfs I/F,
    i.e. /sys/kernel/debug/acpi/custom_method,
    is moved to this file.

    And make ACPI debugfs always built in,
    even if CONFIG_ACPI_DEBUG is cleared.

    BTW:this adds about 400bytes code to ACPI, when
    CONFIG_ACPI_DEBUG is cleared.

    [uaccess.h build fix from Andrew Morton ]

    Signed-off-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhang Rui
     
  • Signed-off-by: Arjan van de Ven
    Signed-off-by: Len Brown

    Arjan van de Ven
     
  • This patch adds debugging/testing support to ERST. A misc device is
    implemented to export raw ERST read/write/clear etc operations to user
    space. With this patch, we can add ERST testing support to
    linuxfirmwarekit ISO (linuxfirmwarekit.org) to verify the kernel
    support and the firmware implementation.

    Signed-off-by: Huang Ying
    Acked-by: Randy Dunlap
    Signed-off-by: Andi Kleen
    Signed-off-by: Len Brown

    Huang Ying
     
  • Fix fusion missing kernel-doc:

    Warning(drivers/message/fusion/mptbase.c:649): No description found for parameter 'func_name'
    Warning(drivers/message/fusion/mptbase.c:8010): No description found for parameter 'cb_idx'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix comment begin notation not to look like kernel-doc
    since it's not. Removes kernel-doc warnings.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: (22 commits)
    hwmon: (via-cputemp) Remove bogus "SHOW" global variable
    hwmon: jc42 depends on I2C
    hwmon: (pc87427) Add a maintainer
    hwmon: (pc87427) Move sysfs file removal to a separate function
    hwmon: (pc87427) Add temperature monitoring support
    hwmon: (pc87427) Add support for the second logical device
    hwmon: (pc87427) Add support for manual fan speed control
    hwmon: (pc87427) Minor style cleanups
    hwmon: (pc87427) Handle disabled fan inputs properly
    hwmon: (w83627ehf) Add support for W83667HG-B
    hwmon: (w83627ehf) Driver cleanup
    hwmon: Add driver for SMSC EMC2103 temperature monitor and fan controller
    hwmon: Remove in[0-*]_fault from sysfs-interface
    hwmon: Add 4 current alarm/beep attributes to sysfs-interface
    hwmon: Add 3 critical limit attributes to sysfs-interface
    hwmon: (asc7621) Clean up and improve detect function
    hwmon: (it87) Export labels for internal sensors
    hwmon: (lm75) Add suspend/resume feature
    hwmon: (emc1403) Add power support
    hwmon: (ltc4245) Expose all GPIO pins as analog voltages
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (28 commits)
    [SCSI] qla4xxx: fix compilation warning
    [SCSI] make error handling more robust in the face of reservations
    [SCSI] tgt: fix warning
    [SCSI] drivers/message/fusion: Adjust confusing if indentation
    [SCSI] Return NEEDS_RETRY for eh commands with status BUSY
    [SCSI] ibmvfc: Driver version 1.0.9
    [SCSI] ibmvfc: Fix terminate_rport_io
    [SCSI] ibmvfc: Fix rport add/delete race resulting in oops
    [SCSI] lpfc 8.3.16: Change LPFC driver version to 8.3.16
    [SCSI] lpfc 8.3.16: FCoE Discovery and Failover Fixes
    [SCSI] lpfc 8.3.16: SLI Additions, updates, and code cleanup
    [SCSI] pm8001: introduce missing kfree
    [SCSI] qla4xxx: Update driver version to 5.02.00-k3
    [SCSI] qla4xxx: Added AER support for ISP82xx
    [SCSI] qla4xxx: Handle outstanding mbx cmds on hung f/w scenarios
    [SCSI] qla4xxx: updated mbx_sys_info struct to sync with FW 4.6.x
    [SCSI] qla4xxx: clear AF_DPC_SCHEDULED flage when exit from do_dpc
    [SCSI] qla4xxx: Stop firmware before doing init firmware.
    [SCSI] qla4xxx: Use the correct request queue.
    [SCSI] qla4xxx: set correct value in sess->recovery_tmo
    ...

    Linus Torvalds
     
  • The via-cputemp hwmon driver was probably intending "typedef enum {
    ... } SHOW;", but the "typedef" was missing creating a global variable
    named "SHOW". There is absolutely no reason to have this in the
    global namespace.

    Signed-off-by: H. Peter Anvin
    Acked-by: Harald Welte
    Cc: Juerg Haefliger
    Signed-off-by: Jean Delvare

    H. Peter Anvin
     
  • jc42 uses i2c interfaces, so it should depend on I2C.

    drivers/hwmon/jc42.c:426: error: implicit declaration of function 'i2c_check_functionality'
    drivers/hwmon/jc42.c:521: error: implicit declaration of function 'i2c_smbus_read_word_data'
    drivers/hwmon/jc42.c:529: error: implicit declaration of function 'i2c_smbus_write_word_data'
    drivers/hwmon/jc42.c:580: error: implicit declaration of function 'i2c_add_driver'
    drivers/hwmon/jc42.c:585: error: implicit declaration of function 'i2c_del_driver'

    Signed-off-by: Randy Dunlap
    Acked-by: Guenter Roeck
    Signed-off-by: Jean Delvare

    Randy Dunlap
     
  • The sysfs file removal code is the same in the probe error path and in
    the remove function, so move it to a separate function to avoid code
    duplication.

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

    Jean Delvare
     
  • Add support for the 6 temperature monitoring channels of the PC87427.
    Note that the sensors resolution can vary, and I couldn't find a way
    to figure it out, so we might have to compensate in user-space.

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

    Jean Delvare
     
  • The second logical device contains the voltage and temperature
    registers. We have to extend the driver to support a second logical
    device before we can add support for these features.

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

    Jean Delvare
     
  • Add initial support for PWM outputs of the PC87427 Super-I/O chip.
    Only mode change and manual fan speed control are supported. Automatic
    mode configuration isn't supported, and won't be until at least one
    board is known, which makes uses of the PWM outputs.

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

    Jean Delvare
     
  • Follow the best practice of the day.

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

    Jean Delvare
     
  • Most fan input pins of the PC87427 can have alternate functions.
    Update the driver to check the configuration register and only support
    fan inputs which are really used for fan monitoring.

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

    Jean Delvare
     
  • Add support for W83667HG-B (very similar to the W83667HG).

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

    Guenter Roeck
     
  • - Moved fan pwm register array pointers into per-instance data.
    - Only read fan pwm data for installed/supported fans.
    - Update fan max output and fan step output information from data in
    registers.
    - Create max_output and step_output attribute files only if respective
    fan pwm registers exist.

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

    Guenter Roeck
     
  • SMSC's EMC2103 family of temperature/fan controllers have 1
    onboard and up to 3 external temperature sensors, and allow
    closed-loop control of one fan. This patch adds support for
    them.

    Signed-off-by: Steve Glendinning
    Signed-off-by: Jean Delvare

    Steve Glendinning
     
  • * The dev variable is never used.
    * Detect functions only need to set info->type, not client->name.
    * Include the device address in the log message.

    Signed-off-by: Jean Delvare
    Cc: George Joseph
    Cc: Ken Milmore

    Jean Delvare
     
  • Some voltage sensors can be wired internally to the IT87xxF chip's own
    power supply channels. In that case, we can inform user-space that the
    wiring is known by exporting proper labels for these sensors.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • There is a shutdown feature at suspend it can be enabled to
    reduce current consumption and resume it can be switched off.

    Signed-off-by: Shubhrajyoti Datta
    Signed-off-by: Jean Delvare

    Shubhrajyoti Datta
     
  • Add back the power interface we lost due to a slight misunderstanding of
    the maintainers wishes.

    Signed-off-by: Alan Cox
    Signed-off-by: Jean Delvare

    Alan Cox