1. 01 6月, 2012 23 次提交
    • M
      sony-laptop: use soft rfkill status stored in hw · d6f15ed8
      Marco Chiappero 提交于
      The SNC device on recent Vaio laptops also stores the soft status and
      leaves it available after reboot. Use it and always set the last soft
      and hard status on module load.
      
      [malattia@linux.it: patch taken from a largely modified sony-laptop.c,
      smaller modifications to the original code to simplify it]
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      d6f15ed8
    • D
      hp-wmi: check for allocation failures · dd258c00
      Dan Carpenter 提交于
      rfkill_alloc() returns NULL on failure.  Check for it, to make the
      static checkers happy.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      dd258c00
    • A
      toshiba_acpi: Add support for transflective LCD · 121b7b0d
      Akio Idehara 提交于
      Some Toshiba laptops have the transflective LCD and toshset
      can control its backlight state.  I brought this feature to the
      mainline.  To support transflective LCD, it's implemented by
      adding an extra level to the backlight and having 0 change to
      transflective mode.  It was tested on a Toshiba Portege R500.
      Signed-off-by: NAkio Idehara <zbe64533@gmail.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      121b7b0d
    • S
      toshiba_acpi: Only register backlight device when interface is read/write · 62cce752
      Seth Forshee 提交于
      Currently the backlight device is registered unconditionally, but many
      (probably most) Toshibas either don't support HCI_LCD_BRIGHTNESS or only
      support reading from it. This patch adds a test of HCI_LCD_BRIGHTNESS
      during initialization and only registers the backlight device if this
      interface supports both reads and writes.
      
      Cc: Akio Idehara <zbe64533@gmail.com>
      Signed-off-by: NSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      62cce752
    • I
      ideapad: generate valid key event only · 20a769c1
      Ike Panhc 提交于
      Otherwise will generate KEY_UNKNOWN on un-listed vpc event,
      which means nothing and is hard for user to report the detail
      of the event.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      20a769c1
    • I
      ideapad: remove unused define and fix a typo · a5c3892f
      Ike Panhc 提交于
      After review the current ideapad-laptop, found an unused define and
      a typo.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      a5c3892f
    • J
      hdaps: Jesper Juhl: Fix outdated email address · e4332e8e
      Jesper Juhl 提交于
      I haven't had a working gmail address for many years - update to my
      actual working address.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      e4332e8e
    • A
      thinkpad-acpi: fix issuing duplicated key events for brightness up/down · ff413195
      Alex Hung 提交于
      The tp_features.bright_acpimode will not be set correctly for brightness
      control because ACPI_VIDEO_HID will not be located in ACPI. As a result,
      a duplicated key event will always be sent. acpi_video_backlight_support()
      is sufficient to detect standard ACPI brightness control.
      Signed-off-by: NAlex Hung <alex.hung@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      ff413195
    • S
      apple-gmux: Add suspend/resume support for the backlight · 96960880
      Seth Forshee 提交于
      After S3, the brightness might not be restored to the pre-suspend value.
      Request status update calls from the backlight core on suspend/resume to
      ensure the brightness value is restored.
      Reported-and-tested-by: NAustin Lund <austin.lund@gmail.com>
      Signed-off-by: NSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      96960880
    • D
      xo1-rfkill: only act when blocked state is changed · bc7ab495
      Daniel Drake 提交于
      The XO-1 rfkill driver should only send EC commands when changing
      between blocked/unblocked state.
      
      The rfkill switch is asked to be unblocked on every resume (even when
      the card was never blocked before) and sending a EC_WLAN_LEAVE_RESET
      command here upsets the resume sequence of the libertas driver. Adding
      the check to avoid the spurious EC_WLAN_LEAVE_RESET fixes the wifi resume
      behaviour.
      
      The rfkill state is maintained by the hardware over suspend/resume
      so no extra consideration is needed here.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      bc7ab495
    • R
      fujitsu-tablet: correct quirks for Lifebook and Stylistic tablets · 14b234b1
      Robert Gerlach 提交于
      This patch adds a quirk to fix the dock detection for Fujitsu Stylistic
      devices and fixes an bug in which tablet mode state was not correctly
      reported in Fujitsu Lifebook and Stylistic models.
      Signed-off-by: NRobert Gerlach <khnz@gmx.de>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      14b234b1
    • R
      fujitsu-tablet: convert printk to pr_* · 32be65be
      Robert Gerlach 提交于
      Signed-off-by: NRobert Gerlach <khnz@gmx.de>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      32be65be
    • R
      fujitsu-tablet: remove duplicated code · a5c02c2f
      Robert Gerlach 提交于
      Signed-off-by: NRobert Gerlach <khnz@gmx.de>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      a5c02c2f
    • U
      drivers/x86: mark const init data with __initconst instead of __initdata · 145047de
      Uwe Kleine-König 提交于
      As long as there is no other non-const variable marked __initdata in the
      same compilation unit it doesn't hurt. If there were one however
      compilation would fail with
      
      	error: $variablename causes a section type conflict
      
      because a section containing const variables is marked read only and so
      cannot contain non-const variables.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
      Cc: platform-driver-x86@vger.kernel.org
      Cc: ibm-acpi-devel@lists.sourceforge.net
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      145047de
    • A
      dell-laptop: add 3 quirks for supporting touchpad LED · 7f839228
      AceLan Kao 提交于
      Add "Vostro 3360", "Vostro 3460", and "Vostro 3560" into quirks,
      so that they could have touchpad LED function work.
      Signed-off-by: NAceLan Kao <acelan.kao@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      7f839228
    • A
      Dell Vostro 3350 touchpad LED · 57b31b2f
      Ang Way Chuang 提交于
      Add Vostro 3350 into quirks so that the touchpad LED works.
      Signed-off-by: NAng Way Chuang <wcang79@gmail.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      57b31b2f
    • L
      Merge tag 'please-pull-mce' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 2d117403
      Linus Torvalds 提交于
      Pull mce cleanup from Tony Luck:
       "One more mce cleanup before the 3.5 merge window closes"
      
      * tag 'please-pull-mce' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        x86/mce: Cleanup timer mess
      2d117403
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 8ee78c6f
      Linus Torvalds 提交于
      Pull s390 patches from Heiko Carstens:
       "A couple of s390 patches for the 3.5 merge window.  Just a collection
        of bug fixes and cleanups."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/uaccess: fix access_ok compile warnings
        s390/cmpxchg: select HAVE_CMPXCHG_LOCAL option
        s390/cmpxchg: fix sign extension bugs
        s390/cmpxchg: fix 1 and 2 byte memory accesses
        s390/cmpxchg: fix compile warnings specific to s390
        s390/cmpxchg: add missing memory barrier to cmpxchg64
        s390/cpu: remove cpu "capabilities" sysfs attribute
        s390/kernel: Fix smp_call_ipl_cpu() for offline CPUs
        s390/kernel: Introduce memcpy_absolute() function
        s390/headers: replace __s390x__ with CONFIG_64BIT where possible
        s390/headers: remove #ifdef __KERNEL__ from not exported headers
        s390/irq: split irq stats for cpu-measurement alert facilities
        s390/kexec: Move early_pgm_check_handler() to text section
        s390/kdump: Use real mode for PSW restart and kexec
        s390/kdump: Account /sys/kernel/kexec_crash_size changes in OS info
        s390/kernel: Remove OS info init function call and diag 308 for kdump
      8ee78c6f
    • L
      Merge tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 · aac422af
      Linus Torvalds 提交于
      Pull misc parisc updates from James Bottomley:
       "This is a couple of updates to complete our fixes and one to fix a
        compile failure caused during the merge window.  Additionally, we now
        switch to the generic strncopy_from_user."
      
      * tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
        [PARISC] update parisc to use generic strncpy_from_user()
        [PARISC] Fix parisc compile failure after smp: Add task_struct argument to __cpu_up()
        [PARISC] fix TLB fault path on PA2.0 narrow systems
        [PARISC] fix boot failure on 32-bit systems caused by branch stubs placed before .text
      aac422af
    • L
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0c6be871
      Linus Torvalds 提交于
      Pull additional x86 fixes from Peter Anvin.
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, amd, xen: Avoid NULL pointer paravirt references
        x86, mtrr: Fix a type overflow in range_to_mtrr func
        x86, realmode: Unbreak the ia64 build of drivers/acpi/sleep.c
        x86/mm/pat: Improve scaling of pat_pagerange_is_ram()
        x86: hpet: Fix copy-and-paste mistake in earlier change
        x86/mce: Fix 32-bit build
        x86/bitops: Move BIT_64() for a wider use
      0c6be871
    • L
      Merge tag 'devel-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 6a445c7f
      Linus Torvalds 提交于
      Pull late-merged development and first fixes for arm-soc from Olof Johansson:
       "This branch contains a few development patches for Samsung and
        Versatile Express that were submitted to arm-soc near the beginning of
        the merge window.  We picked them up with the agreement that they
        would need to sit in linux-next for a while, and now they have.
      
        There are also two fixes:
         - One long-standing build breakage on ixp4xx due to missing gpiolib
           dependencies.
         - The other is for some gpio device tree changes needed on lpc32xx."
      
      * tag 'devel-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: LPC32xx: Adjust dts files to gpio dt binding
        ixp4xx: fix compilation by adding gpiolib support
        ARM: vexpress: Remove twice included header files
        ARM: vexpress: Device Tree updates
        ARM: EXYNOS: Support suspend and resume for EXYNOS5250
        ARM: EXYNOS: Add Clock register list for save and restore
        ARM: EXYNOS: Add PMU table for EXYNOS5250
        ARM: EXYNOS: Rename of function for pm.c
        ARM: EXYNOS: Remove GIC save & restore function
        ARM: dts: Add node for interrupt combiner controller on EXYNOS5250
        ARM: S3C24XX: add support for second irq set of S3C2416
        ARM: S3C64XX: use timekeeping wrapper on cpuidle
        ARM: S3C64XX: declare the states with the new api on cpuidle
        ARM: S3C64XX: Hook up carrier class modules on Cragganmore
        ARM: S3C64XX: Initial hookup for Bells module on Cragganmore
      6a445c7f
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · f737c770
      Linus Torvalds 提交于
      Pull Sparc updates from David S. Miller:
      
       1) Remove the idiotic situation wherein Leon was a special case in all
          of the TLB/cache handling code.
      
          The worst side effect of this bogosity is that you couldn't build a
          kernel with Leon support enabled (to get better build coverage), and
          test boot it on a non-LEON cpu.
      
          Leon is, in all core respects, programatically identical to the
          32-bit SRMMU.  Except that they put the TLB registers in a different
          alternate address space location.
      
          Through code patching (for fast paths) and run time checks, this
          issue is now a thing of the past.
      
          From Sam Ravnborg.
      
       2) There was a mis-merge of arch/sparc/Kconfig for one of the
          clockevents changes that went in, causing 32-bit sparc to start
          failing to build.
      
          I merged in your tree to get those clockevents changes (and added a
          note to the merge commit) then added Stephen Rothwell's fix for the
          merge error.
      
       3) Software quad floating point emulation was not working properly on
          more recent Niagara chips, because the way the situation is reported
          by the cpu has changed.
      
          Nobody noticed because gcc emits calls to software emulation
          routines in glibc.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: (25 commits)
        sparc: fix sparc64 build due to leon.h inclusion
        sparc32: remove unused variable in head_32.S
        sparc32,leon: fix leon bootup
        sparc32: Export leon_dma_ops to modules.
        sparc32: support leon + sun in dma_make_coherent()
        sparc32,leon: always support leon in ioport
        sparc32,leon: always include leon_pmc in build
        sparc32: refactor cpu_idle()
        sparc32: srmmu_probe now knows about leon too
        sparc32: drop LEON hack for ASI_M_MMUREGS
        sparc32: introduce run-time patching of srmmu access functions
        sparc32: introduce support for run-time patching for all shared assembler code
        sparc32,leon: fix section mismatch warning
        sparc32,leon: always include leon_smp + leon_mm in build
        sparc32,leon: always include leon_kernel in build
        sparc32,leon: clean up leon.h
        sparc32: handle leon in cpu.c
        sparc32: handle leon in irq_32.c
        sparc32: add support for run-time patching of leon/sun single instructions
        sparc32: introduce sparc32_start_kernel called from head_32.S
        ...
      f737c770
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 13199a08
      Linus Torvalds 提交于
      Pull networking changes from David S. Miller:
      
       1) Fix IPSEC header length calculation for transport mode in ESP.  The
          issue is whether to do the calculation before or after alignment.
          Fix from Benjamin Poirier.
      
       2) Fix regression in IPV6 IPSEC fragment length calculations, from Gao
          Feng.  This is another transport vs tunnel mode issue.
      
       3) Handle AF_UNSPEC connect()s properly in L2TP to avoid OOPSes.  Fix
          from James Chapman.
      
       4) Fix USB ASIX driver's reception of full sized VLAN packets, from
          Eric Dumazet.
      
       5) Allow drop monitor (and, more generically, all generic netlink
          protocols) to be automatically loaded as a module.  From Neil
          Horman.
      
      Fix up trivial conflict in Documentation/feature-removal-schedule.txt
      due to new entries added next to each other at the end. As usual.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (38 commits)
        net/smsc911x: Repair broken failure paths
        virtio-net: remove useless disable on freeze
        netdevice: Update netif_dbg for CONFIG_DYNAMIC_DEBUG
        drop_monitor: Add module alias to enable automatic module loading
        genetlink: Build a generic netlink family module alias
        net: add MODULE_ALIAS_NET_PF_PROTO_NAME
        r6040: Do a Proper deinit at errorpath and also when driver unloads (calling r6040_remove_one)
        r6040: disable pci device if the subsequent calls (after pci_enable_device) fails
        skb: avoid unnecessary reallocations in __skb_cow
        net: sh_eth: fix the rxdesc pointer when rx descriptor empty happens
        asix: allow full size 8021Q frames to be received
        rds_rdma: don't assume infiniband device is PCI
        l2tp: fix oops in L2TP IP sockets for connect() AF_UNSPEC case
        mac80211: fix ADDBA declined after suspend with wowlan
        wlcore: fix undefined symbols when CONFIG_PM is not defined
        mac80211: fix flag check for QoS NOACK frames
        ath9k_hw: apply internal regulator settings on AR933x
        ath9k_hw: update AR933x initvals to fix issues with high power devices
        ath9k: fix a use-after-free-bug when ath_tx_setup_buffer() fails
        ath9k: stop rx dma before stopping tx
        ...
      13199a08
  2. 31 5月, 2012 17 次提交