25 Jan, 2011

1 commit


24 Jan, 2011

1 commit

  • Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in
    "AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the contents of mailbox
    0 may be send under certain conditions (even if disabled or in rx mode).

    The workaround in the errata suggests not to use the mailbox and load it
    with an unused identifier.

    This patch implements the second part of the workaround. A sysfs entry
    "mb0_id" is introduced. While the interface is down it can be used to
    configure the can_id of mailbox 0. The default value id 0x7ff.

    In order to use an extended can_id add the CAN_EFF_FLAG (0x80000000U)
    to the can_id. Example:

    - standard id 0x7ff:
    echo 0x7ff > /sys/class/net/can0/mb0_id

    - extended id 0x1fffffff:
    echo 0x9fffffff > /sys/class/net/can0/mb0_id

    Signed-off-by: Marc Kleine-Budde
    Acked-by: Wolfgang Grandegger
    Acked-by: Kurt Van Dijck
    For the Documentation-part:
    Acked-by: Wolfram Sang

    Marc Kleine-Budde
     

14 Jan, 2011

2 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (59 commits)
    ACPI / PM: Fix build problems for !CONFIG_ACPI related to NVS rework
    ACPI: fix resource check message
    ACPI / Battery: Update information on info notification and resume
    ACPI: Drop device flag wake_capable
    ACPI: Always check if _PRW is present before trying to evaluate it
    ACPI / PM: Check status of power resources under mutexes
    ACPI / PM: Rename acpi_power_off_device()
    ACPI / PM: Drop acpi_power_nocheck
    ACPI / PM: Drop acpi_bus_get_power()
    Platform / x86: Make fujitsu_laptop use acpi_bus_update_power()
    ACPI / Fan: Rework the handling of power resources
    ACPI / PM: Register power resource devices as soon as they are needed
    ACPI / PM: Register acpi_power_driver early
    ACPI / PM: Add function for updating device power state consistently
    ACPI / PM: Add function for device power state initialization
    ACPI / PM: Introduce __acpi_bus_get_power()
    ACPI / PM: Introduce function for refcounting device power resources
    ACPI / PM: Add functions for manipulating lists of power resources
    ACPI / PM: Prevent acpi_power_get_inferred_state() from making changes
    ACPICA: Update version to 20101209
    ...

    Linus Torvalds
     
  • Extend the LED backlight tirgger driver with an option that allows for
    inverting the trigger output polarity.

    With the invertion option provided, I (ab)use the backlight trigger for
    driving a LED that indicates LCD display blank condtition on my Amstrad
    Delta videophone. Since the machine has no dedicated power LED, it was
    not possible to distinguish if the display was blanked, or the machine was
    turned off, without touching it.

    The invert sysfs control is patterned after a similiar function of the GPIO
    trigger driver.

    [akpm@linux-foundation.org: make output match input, tighten input checking]
    [akpm@linux-foundation.org: make output match input, tighten input checking]
    Signed-off-by: Janusz Krzysztofik
    Cc: Paul Mundt
    Acked-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Janusz Krzysztofik
     

12 Jan, 2011

2 commits


11 Jan, 2011

2 commits

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (36 commits)
    sony-laptop: support new hotkeys on the P, Z and EC series
    platform/x86: Consistently select LEDS Kconfig options
    sony-laptop: fix sparse non-ANSI function warning
    intel_ips: fix sparse non-ANSI function warning
    Support KHLB2 in the compal laptop driver
    acer-wmi: Enabled Acer Launch Manager mode
    [PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem
    ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
    acer-wmi: Initialize wlan/bluetooth/wwan rfkill software block state
    acer-wmi: Detect the WiFi/Bluetooth/3G devices available
    acer-wmi: Add 3G rfkill sysfs file
    acer-wmi: Add acer wmi hotkey events support
    platform/x86: Kconfig: Replace select by depends on ACPI_WMI
    ideapad: pass ideapad_priv as argument (part 2)
    ideapad: pass ideapad_priv as argument (part 1)
    ideapad: add markups, unify comments and return result when init
    ideapad: add hotkey support
    ideapad: let camera power control entry under platform driver
    ideapad: add platform driver for ideapad
    fujitsu-laptop: fix compiler warning on pnp_ids
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (34 commits)
    HID: roccat: Update sysfs attribute doc
    HID: roccat: don't use #pragma pack
    HID: roccat: Add support for Roccat Kone[+] v2
    HID: roccat: reduce number of functions in kone and pyra drivers
    HID: roccat: declare meaning of pack pragma usage in driver headers
    HID: roccat: use class for char device for sysfs attribute creation
    sysfs: Introducing binary attributes for struct class
    HID: hidraw: add compatibility ioctl() for 32-bit applications.
    HID: hid-picolcd: Fix memory leak in picolcd_debug_out_report()
    HID: picolcd: fix misuse of logical operation in place of bitop
    HID: usbhid: base runtime PM on modern API
    HID: replace offsets values with their corresponding BTN_* defines
    HID: hid-mosart: support suspend/resume
    HID: hid-mosart: ignore buttons report
    HID: hid-picolcd: don't use flush_scheduled_work()
    HID: simplify an index check in hid_lookup_collection
    HID: Hoist assigns from ifs
    HID: Remove superfluous __inline__
    HID: Use vzalloc for vmalloc/memset(,0...)
    HID: Add and use hid_: dev_ equivalents
    ...

    Linus Torvalds
     

08 Jan, 2011

4 commits

  • Updated sysfs attribute documentation to reflect recent changes
    in driver design. The device specific attributes moved from the
    driver to the respective roccat char device.

    Signed-off-by: Stefan Achatz
    Signed-off-by: Jiri Kosina

    Stefan Achatz
     
  • This patch adds support for Roccat Kone[+] gaming mouse. Kone[+] is an enhanced version
    of the old Kone with more memory for macros, a better sensor and more functionality.
    This driver is conceptual similar to the existing Kone and Pyra drivers.
    Userland tools can soon be found at http://sourceforge.net/projects/roccat

    Signed-off-by: Stefan Achatz
    Signed-off-by: Jiri Kosina

    Stefan Achatz
     
  • * 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (36 commits)
    serial: apbuart: Fixup apbuart_console_init()
    TTY: Add tty ioctl to figure device node of the system console.
    tty: add 'active' sysfs attribute to tty0 and console device
    drivers: serial: apbuart: Handle OF failures gracefully
    Serial: Avoid unbalanced IRQ wake disable during resume
    tty: fix typos/errors in tty_driver.h comments
    pch_uart : fix warnings for 64bit compile
    8250: fix uninitialized FIFOs
    ip2: fix compiler warning on ip2main_pci_tbl
    specialix: fix compiler warning on specialix_pci_tbl
    rocket: fix compiler warning on rocket_pci_ids
    8250: add a UPIO_DWAPB32 for 32 bit accesses
    8250: use container_of() instead of casting
    serial: omap-serial: Add support for kernel debugger
    serial: fix pch_uart kconfig & build
    drivers: char: hvc: add arm JTAG DCC console support
    RS485 documentation: add 16C950 UART description
    serial: ifx6x60: fix memory leak
    serial: ifx6x60: free IRQ on error
    Serial: EG20T: add PCH_UART driver
    ...

    Fixed up conflicts in drivers/serial/apbuart.c with evil merge that
    makes the code look fairly sane (unlike either side).

    Linus Torvalds
     
  • The entry was at /sys/devices/LNXSYSTM:00/../VPC2004:00/camera_power
    move to /sys/devices/platform/ideapad/camera_power

    Add document about usage of ideapad node in sysfs.

    Signed-off-by: Ike Panhc
    Signed-off-by: Matthew Garrett

    Ike Panhc
     

27 Dec, 2010

1 commit


17 Dec, 2010

2 commits

  • tty: add 'active' sysfs attribute to tty0 and console device

    Userspace can query the actual virtual console, and the configured
    console devices behind /dev/tt0 and /dev/console.

    The last entry in the list of devices is the active device, analog
    to the console= kernel command line option.

    The attribute supports poll(), which is raised when the virtual
    console is changed or /dev/console is reconfigured.

    Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    index 0000000..b138b66

    Kay Sievers
     
  • B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing
    protocol for multi-hop ad-hoc mesh networks. The networks may be wired or
    wireless. See http://www.open-mesh.org/ for more information and user space
    tools.

    Signed-off-by: Sven Eckelmann
    Signed-off-by: David S. Miller

    Sven Eckelmann
     

08 Dec, 2010

1 commit

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86:
    wmi: use memcmp instead of strncmp to compare GUIDs
    ACPI, hp-wmi: Fix memory leak in acpi query
    msi-wmi: fix semantically incorrect use of keycode instead of scancode
    msi-wmi: Add mute key support
    asus-laptop: add wimax and wwan support
    eeepc-wmi: fix compiler warning
    ibm_rtl: _RTL_ is not available in UEFI mode
    ibm_rtl: Loosen the DMI criteria to all IBM machines
    drivers/platform/x86/thinkpad_acpi.c: delete double assignment
    eeepc-wmi: add cpufv sysfs documentation
    toshiba_acpi.c: Add key_entry for a lone FN keypress
    ibm_rtl: fix printk format warning

    Linus Torvalds
     

02 Dec, 2010

1 commit

  • The new interface creates directories per mapped image
    and under each it creates a subdir per available snapshot.
    This allows keeping a cleaner interface within the sysfs
    guidelines. The ABI documentation was updated too.

    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Yehuda Sadeh
    Signed-off-by: Sage Weil

    Yehuda Sadeh
     

25 Nov, 2010

2 commits

  • Asus UL30A has a 3G chip, but the radio is disabled by default.
    The DSDT also reference a WIMAX device, which is not present on this model.

    This patch adds two new files: wwan and wimax to control WWAN and
    WIMAX devices. It does not use rfkill, because like WLED and BLED,
    we don't know yet that the two ACPI functions will always control the
    radio, they may control only the leds on some hardware.

    We may add rfkill switchs later.

    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Based on cpufv text from sysfs-platform-eeepc-laptop that
    has almost same behavior.

    Signed-off-by: Chris Bagwell
    Signed-off-by: Matthew Garrett
    Acked-by: Corentin Chary

    Chris Bagwell
     

12 Nov, 2010

1 commit

  • /proc/pid/oom_adj was deprecated in August 2010 with the introduction of
    the new oom killer heuristic.

    This patch copies the Documentation/feature-removal-schedule.txt entry for
    this tunable to the Documentation/ABI/obsolete directory so nobody misses
    it.

    Signed-off-by: David Rientjes
    Reported-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     

29 Oct, 2010

1 commit


25 Oct, 2010

2 commits

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (44 commits)
    eeepc-wmi: Add cpufv sysfs interface
    eeepc-wmi: add additional hotkeys
    panasonic-laptop: Simplify calls to acpi_pcc_retrieve_biosdata
    panasonic-laptop: Handle errors properly if they happen
    intel_pmic_gpio: fix off-by-one value range checking
    IBM Real-Time "SMI Free" mode driver -v7
    Add OLPC XO-1 rfkill driver
    Move hdaps driver to platform/x86
    ideapad-laptop: Fix Makefile
    intel_pmic_gpio: swap the bits and mask args for intel_scu_ipc_update_register
    ideapad: Add param: no_bt_rfkill
    ideapad: Change the driver name to ideapad-laptop
    ideapad: rewrite the sw rfkill set
    ideapad: rewrite the hw rfkill notify
    ideapad: use EC command to control camera
    ideapad: use return value of _CFG to tell if device exist or not
    ideapad: make sure we bind on the correct device
    ideapad: check VPC bit before sync rfkill hw status
    ideapad: add ACPI helpers
    dell-laptop: Add debugfs support
    ...

    Linus Torvalds
     
  • …/ieee1394/linux1394-2.6

    * 'ieee1394-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    ieee1394: remove the old IEEE 1394 driver stack
    ieee1394: move init_ohci1394_dma to drivers/firewire/

    Fix trivial change/delete conflict: drivers/ieee1394/eth1394.c is
    getting removed, but was modified by the networking merge.

    Linus Torvalds
     

24 Oct, 2010

1 commit


23 Oct, 2010

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (31 commits)
    driver core: Display error codes when class suspend fails
    Driver core: Add section count to memory_block struct
    Driver core: Add mutex for adding/removing memory blocks
    Driver core: Move find_memory_block routine
    hpilo: Despecificate driver from iLO generation
    driver core: Convert link_mem_sections to use find_memory_block_hinted.
    driver core: Introduce find_memory_block_hinted which utilizes kset_find_obj_hinted.
    kobject: Introduce kset_find_obj_hinted.
    driver core: fix build for CONFIG_BLOCK not enabled
    driver-core: base: change to new flag variable
    sysfs: only access bin file vm_ops with the active lock
    sysfs: Fail bin file mmap if vma close is implemented.
    FW_LOADER: fix kconfig dependency warning on HOTPLUG
    uio: Statically allocate uio_class and use class .dev_attrs.
    uio: Support 2^MINOR_BITS minors
    uio: Cleanup irq handling.
    uio: Don't clear driver data
    uio: Fix lack of locking in init_uio_class
    SYSFS: Allow boot time switching between deprecated and modern sysfs layout
    driver core: remove CONFIG_SYSFS_DEPRECATED_V2 but keep it for block devices
    ...

    Linus Torvalds
     
  • Packet hub driver of Topcliff PCH

    Topcliff PCH is the platform controller hub that is going to be used in
    Intel's upcoming general embedded platform. All IO peripherals in
    Topcliff PCH are actually devices sitting on AMBA bus. Packet hub is
    a special converter device in Topcliff PCH that translate AMBA transactions
    to PCI Express transactions and vice versa. Thus packet hub helps present
    all IO peripherals in Topcliff PCH as PCIE devices to IA system.
    Topcliff PCH has MAC address and Option ROM data.
    These data are in SROM which is connected to PCIE bus.
    Packet hub driver of Topcliff PCH can access MAC address and Option ROM data in
    SROM via sysfs interface.

    Signed-off-by: Greg Kroah-Hartman

    Masayuki Ohtak
     

22 Oct, 2010

2 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (26 commits)
    include/linux/libata.h: fix typo
    pata_bf54x: fix return type of bfin_set_devctl
    Drivers: ata: Makefile: replace the use of -objs with -y
    libahci: fix result_tf handling after an ATA PIO data-in command
    pata_sl82c105: implement sff_irq_check() method
    pata_sil680: implement sff_irq_check() method
    pata_pdc202xx_old: implement sff_irq_check() method
    pata_cmd640: implement sff_irq_check() method
    ata_piix: Add device ID for ICH4-L
    pata_sil680: make sil680_sff_exec_command() 'static'
    ata: Intel IDE-R support
    libata: reorder ata_queued_cmd to remove alignment padding on 64 bit builds
    libata: Signal that our SATL supports WRITE SAME(16) with UNMAP
    ata_piix: remove SIDPR locking
    libata: implement cross-port EH exclusion
    libata: add @ap to ata_wait_register() and introduce ata_msleep()
    ata_piix: implement LPM support
    libata: implement LPM support for port multipliers
    libata: reimplement link power management
    libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global
    ...

    Linus Torvalds
     
  • This is a scheleton for libata transport class.
    All information is read only, exporting information from libata:
    - ata_port class: one per ATA port
    - ata_link class: one per ATA port or 15 for SATA Port Multiplier
    - ata_device class: up to 2 for PATA link, usually one for SATA.

    Signed-off-by: Gwendal Grignou
    Reviewed-by: Grant Grundler
    Signed-off-by: Jeff Garzik

    Gwendal Grignou
     

21 Oct, 2010

1 commit

  • After a period of RFC for this driver, I think it is ready
    for inclusion in the platform-driver-x86 tree, hopefully to
    be staged in the next merge window into Linus's tree.

    --Vernon

    ------------------------------------------------------------

    IBM Real-Time "SMI Free" mode driver

    This driver supports the Real-Time Linux (RTL) BIOS feature.
    The RTL feature allows non-fatal System Management Interrupts
    (SMIs) to be disabled on supported IBM platforms and is
    intended to be coupled with a user-space daemon to monitor
    the hardware in a way that can be prioritized and scheduled
    to better suit the requirements for the system.

    The Device is presented as a special "_RTL_" table to the OS
    in the Extended BIOS Data Area. There is a simple protocol
    for entering and exiting the mode at runtime. This driver
    creates a simple sysfs interface to allow a simple entry and
    exit from RTL mode in the UFI/BIOS.

    Since the driver is specific to IBM SystemX hardware (x86-
    based servers) it only builds on x86 builds. To reduce the
    risk of loading on the wrong hardware, the module uses DMI
    information and checks a list of servers that are known to
    work.

    Signed-off-by: Vernon Mauery
    Signed-off-by: Matthew Garrett

    Vernon Mauery
     

17 Oct, 2010

3 commits

  • If the device which fails to resume is part of a loadable kernel module
    it won't be checked at startup against the magic number stored in the
    RTC.

    Add a read-only sysfs attribute /sys/power/pm_trace_dev_match which
    contains a list of newline separated devices (usually just the one)
    which currently match the last magic number. This allows the device
    which is failing to resume to be found after the modules are loaded
    again.

    Signed-off-by: James Hogan
    Signed-off-by: Rafael J. Wysocki

    James Hogan
     
  • This patch (as1427) implements the "autosuspend" facility for runtime
    PM. A few new fields are added to the dev_pm_info structure and
    several new PM helper functions are defined, for telling the PM core
    whether or not a device uses autosuspend, for setting the autosuspend
    delay, and for marking periods of device activity.

    Drivers that do not want to use autosuspend can continue using the
    same helper functions as before; their behavior will not change. In
    addition, drivers supporting autosuspend can also call the old helper
    functions to get the old behavior.

    The details are all explained in Documentation/power/runtime_pm.txt
    and Documentation/ABI/testing/sysfs-devices-power.

    Signed-off-by: Alan Stern
    Signed-off-by: Rafael J. Wysocki

    Alan Stern
     
  • Introduce struct wakeup_source for representing system wakeup sources
    within the kernel and for collecting statistics related to them.
    Make the recently introduced helper functions pm_wakeup_event(),
    pm_stay_awake() and pm_relax() use struct wakeup_source objects
    internally, so that wakeup statistics associated with wakeup devices
    can be collected and reported in a consistent way (the definition of
    pm_relax() is changed, which is harmless, because this function is
    not called directly by anyone yet). Introduce new wakeup-related
    sysfs device attributes in /sys/devices/.../power for reporting the
    device wakeup statistics.

    Change the global wakeup events counters event_count and
    events_in_progress into atomic variables, so that it is not necessary
    to acquire a global spinlock in pm_wakeup_event(), pm_stay_awake()
    and pm_relax(), which should allow us to avoid lock contention in
    these functions on SMP systems with many wakeup devices.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Greg Kroah-Hartman

    Rafael J. Wysocki
     

11 Oct, 2010

1 commit

  • The drivers
    - ohci1394 (controller driver)
    - ieee1394 (core)
    - dv1394, raw1394, video1394 (userspace ABI)
    - eth1394, sbp2 (protocol drivers)
    are replaced by
    - firewire-ohci (controller driver)
    - firewire-core (core and userspace ABI)
    - firewire-net, firewire-sbp2 (protocol drivers)
    which are more featureful, better performing, and more secure than the older
    drivers; all with a smaller and more modern code base.

    The driver firedtv in drivers/media/dvb/firewire/ contains backends to both
    ieee1394 and firewire-core. Its ieee1394 backend code can be removed in an
    independent commit; firedtv as-is builds and works fine without ieee1394.

    The driver pcilynx (an incomplete controller driver) is deleted without
    replacement since PCILynx cards are extremely rare. Owners of these cards
    use them with the stand-alone bus sniffer driver nosy instead.

    The drivers nosy and init_ohci1394_dma which do not interact with either of
    the two IEEE 1394 stacks are not affected by the ieee1394 subsystem removal.

    There are still some issues with the newer firewire subsystem compared to
    the older one:
    - The rare and quirky controllers ALi M52xx, Apple UniNorth v1, NVIDIA
    NForce2 are even less well supported by firewire-ohci than by ohci1394.
    I am looking into the M52xx issue.
    - The experimental firewire-net is reportedly less stable than its
    experimental cousin eth1394.
    - Audio playback of a certain group of audio devices (ones based on DICE
    chipset with EAP; supported by prerelease FFADO code) does not work yet.
    This issue is still under investigation.
    - There were some ieee1394 based out-of-the-mainline drivers. Of them,
    only lisight, an audio driver for iSight webcams, seems still useful.
    Work is underway to reimplement it on top of firewire-core.

    All these remainig issues are minor; they should not stand in the way of
    overall better user experience of IEEE 1394 on Linux, together with a
    reduction in support efforts and maintenance burden. The coexistence of two
    IEEE 1394 kernel driver stacks in the mainline since 2.6.22 shall end now,
    as announced earlier this year.

    Signed-off-by: Stefan Richter

    Stefan Richter
     

01 Sep, 2010

2 commits


11 Aug, 2010

1 commit

  • MS Windows mounts removable storage in "Removal optimized mode" by
    default. All the writes to the media are synchronous which is achieved
    by setting FUA (Force Unit Access) bit in SCSI WRITE(10,12) commands.
    This prevents I/O requests aggregation in block layer dramatically
    decreasing performance.

    This patch brings an option to accept or ignore mentioned bit
    a) via specifying module parameter "nofua", or
    b) through sysfs entry
    /sys/devices/platform/_UDC_/gadget/gadget-lunX/nofua
    (_UDC_ is the name of the USB Device Controller driver)

    Patch is based on the work that was done by Denis Karpov for Maemo 5
    platform.

    Signed-off-by: Andy Shevchenko
    Acked-by: Alan Stern
    Cc: Denis Karpov
    Cc: Adrian Hunter
    Cc: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Andy Shevchenko
     

10 Aug, 2010

2 commits

  • This driver will report the heading values in degrees to the sysfs
    interface. The values returned are headings . e.g. 245.6

    Alan: Cleanups requested now all folded in and a sysfs description to keep
    Andrew happy. The sysfs description now resembles hwmon.

    Signed-off-by: Kalhan Trisal
    Reviewed-by: Jean Delvare
    Signed-off-by: Alan Cox
    Cc: Jonathan Cameron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kalhan Trisal
     
  • This driver adds support for the BMP085 digital pressure sensor from Bosch
    Sensortec. It exposes a sysfs api to userspace where pressure and
    temperature measurement results can be read from the pressure0_input and
    temp0_input file. The chip is able to calculate the average of up to
    eight samples to increase the accuracy. This feature can be controlled by
    writing to the oversampling file.

    The BMP085 digital pressure sensor can measure ambient air pressure and
    temperature. Both values can be obtained from sysfs files. The pressure
    is measured by reading from pressure0_input. Valid values range from
    30000 to 110000 pascal with a resolution of 1 pascal (=0.01 millibar).

    temp0_input holds the current temperature in degree celsius, multiplied by
    10. This results in a resolution of a tenth degree celsius. Values range
    from -400 to 850.

    To increase the accuracy, this chip can calculate the average of 1, 2, 4
    or 8 samples. This behavior is controlled through the oversampling sysfs
    file. Two to the power of the value written to that file specifies how
    many samples will be used. Valid values: 0..3.

    [akpm@linux-foundation.org: fix typo]
    [shubhrajyoti@ti.com: optimize the wait time for the pressure sensor, definition of long is arch dependent so make it u32]
    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Christoph Mair
    Signed-off-by: Shubhrajyoti D
    Acked-by: Jonathan Cameron
    Cc: Stefan Schmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Mair
     

07 Aug, 2010

2 commits

  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (30 commits)
    PCI: update for owner removal from struct device_attribute
    PCI: Fix warnings when CONFIG_DMI unset
    PCI: Do not run NVidia quirks related to MSI with MSI disabled
    x86/PCI: use for_each_pci_dev()
    PCI: use for_each_pci_dev()
    PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc()
    PCI: export SMBIOS provided firmware instance and label to sysfs
    PCI: Allow read/write access to sysfs I/O port resources
    x86/PCI: use host bridge _CRS info on ASRock ALiveSATA2-GLAN
    PCI: remove unused HAVE_ARCH_PCI_SET_DMA_MAX_SEGMENT_{SIZE|BOUNDARY}
    PCI: disable mmio during bar sizing
    PCI: MSI: Remove unsafe and unnecessary hardware access
    PCI: Default PCIe ASPM control to on and require !EMBEDDED to disable
    PCI: kernel oops on access to pci proc file while hot-removal
    PCI: pci-sysfs: remove casts from void*
    ACPI: Disable ASPM if the platform won't provide _OSC control for PCIe
    PCI hotplug: make sure child bridges are enabled at hotplug time
    PCI hotplug: shpchp: Removed check for hotplug of display devices
    PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device
    PCI: Don't enable aspm before drivers have had a chance to veto it
    ...

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (162 commits)
    tracing/kprobes: unregister_trace_probe needs to be called under mutex
    perf: expose event__process function
    perf events: Fix mmap offset determination
    perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
    perf, powerpc: Convert the FSL driver to use local64_t
    perf tools: Don't keep unreferenced maps when unmaps are detected
    perf session: Invalidate last_match when removing threads from rb_tree
    perf session: Free the ref_reloc_sym memory at the right place
    x86,mmiotrace: Add support for tracing STOS instruction
    perf, sched migration: Librarize task states and event headers helpers
    perf, sched migration: Librarize the GUI class
    perf, sched migration: Make the GUI class client agnostic
    perf, sched migration: Make it vertically scrollable
    perf, sched migration: Parameterize cpu height and spacing
    perf, sched migration: Fix key bindings
    perf, sched migration: Ignore unhandled task states
    perf, sched migration: Handle ignored migrate out events
    perf: New migration tool overview
    tracing: Drop cpparg() macro
    perf: Use tracepoint_synchronize_unregister() to flush any pending tracepoint call
    ...

    Fix up trivial conflicts in Makefile and drivers/cpufreq/cpufreq.c

    Linus Torvalds