1. 01 Jul, 2016 3 commits
    • João Paulo Rechi Vita's avatar
      asus-wmi: Add quirk_no_rfkill for the Asus N552VW · 2d735244
      João Paulo Rechi Vita authored
      The Asus N552VW has an airplane-mode indicator LED and the WMI WLAN user
      bit set, so asus-wmi uses ASUS_WMI_DEVID_WLAN_LED (0x00010002) to store
      the wlan state, which has a side-effect of driving the airplane mode
      indicator LED in an inverted fashion. quirk_no_rfkill prevents asus-wmi
      from registering RFKill switches at all for this laptop and allows
      asus-wireless to drive the LED through the ASHS ACPI device.
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Reviewed-by: default avatarCorentin Chary <corentin.chary@gmail.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      2d735244
    • João Paulo Rechi Vita's avatar
      asus-wmi: Create quirk for airplane_mode LED · a977e59c
      João Paulo Rechi Vita authored
      Some Asus laptops that have an airplane-mode indicator LED, also have
      the WMI WLAN user bit set, and the following bits in their DSDT:
      
      Scope (_SB)
      {
        (...)
        Device (ATKD)
        {
          (...)
          Method (WMNB, 3, Serialized)
          {
            (...)
            If (LEqual (IIA0, 0x00010002))
            {
              OWGD (IIA1)
              Return (One)
            }
          }
        }
      }
      
      So when asus-wmi uses ASUS_WMI_DEVID_WLAN_LED (0x00010002) to store the
      wlan state, it drives the airplane-mode indicator LED (through the call
      to OWGD) in an inverted fashion: the LED is ON when airplane mode is OFF
      (since wlan is ON), and vice-versa.
      
      This commit creates a quirk to not register a RFKill switch at all for
      these laptops, to allow the asus-wireless driver to drive the airplane
      mode LED correctly through the ASHS ACPI device. It also adds a match to
      that quirk for the Asus X555UB, which is affected by this problem.
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Reviewed-by: default avatarCorentin Chary <corentin.chary@gmail.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      a977e59c
    • João Paulo Rechi Vita's avatar
      asus-wireless: Toggle airplane mode LED · 2c1a49c9
      João Paulo Rechi Vita authored
      In the ASHS device we have the HSWC method, which calls either OWGD or
      OWGS, depending on its parameter:
      
      	Device (ASHS)
      	{
      		Name (_HID, "ATK4002")  // _HID: Hardware ID
      		Method (HSWC, 1, Serialized)
      		{
      			If ((Arg0 < 0x02))
      			{
      				OWGD (Arg0)
      				Return (One)
      			}
      			If ((Arg0 == 0x02))
      			{
      				Local0 = OWGS ()
      				If (Local0)
      				{
      					Return (0x05)
      				}
      				Else
      				{
      					Return (0x04)
      				}
      			}
      			If ((Arg0 == 0x03))
      			{
      				Return (0xFF)
      			}
      			If ((Arg0 == 0x04))
      			{
      				OWGD (Zero)
      				Return (One)
      			}
      			If ((Arg0 == 0x05))
      			{
      				OWGD (One)
      				Return (One)
      			}
      			If ((Arg0 == 0x80))
      			{
      				Return (One)
      			}
      		}
      		Method (_STA, 0, NotSerialized)  // _STA: Status
      		{
      			If ((MSOS () >= OSW8))
      			{
      				Return (0x0F)
      			}
      			Else
      			{
      				Return (Zero)
      			}
      		}
      	}
      
      On the Asus laptops that do not have an airplane mode LED, OWGD has an
      empty implementation and OWGS simply returns 0. On the ones that have an
      airplane mode LED these methods have the following implementation:
      
      	Method (OWGD, 1, Serialized)
      	{
      		SGPL (0x0203000F, Arg0)
      		SGPL (0x0203000F, Arg0)
      	}
      
      	Method (OWGS, 0, Serialized)
      	{
      		Store (RGPL (0x0203000F), Local0)
      		Return (Local0)
      	}
      
      Where OWGD(1) sets the airplane mode LED ON, OWGD(0) set it off, and
      OWGS() returns its state.
      
      This commit exposes the airplane mode indicator LED to userspace under
      the name asus-wireless::airplane, so it can be driven according to
      userspace's policy.
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Reviewed-by: default avatarCorentin Chary <corentin.chary@gmail.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      2c1a49c9
  2. 29 Jun, 2016 11 commits
  3. 21 Jun, 2016 1 commit
  4. 17 Jun, 2016 4 commits
  5. 12 Jun, 2016 4 commits
    • Linus Torvalds's avatar
      Linux 4.7-rc3 · 5edb5649
      Linus Torvalds authored
      5edb5649
    • Linus Torvalds's avatar
      Merge branch 'for-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux · 57120fac
      Linus Torvalds authored
      Pull thermal management fixes from Zhang Rui:
      
       - fix an ordering issue in cpu cooling that cooling device is
         registered before it's ready (freq_table being populated).
         (Lukasz Luba)
      
       - fix a missing comment update (Caesar Wang)
      
      * 'for-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
        thermal: add the note for set_trip_temp
        thermal: cpu_cooling: fix improper order during initialization
      57120fac
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 8714f8f5
      Linus Torvalds authored
      Pull block layer fixes from Jens Axboe:
       "A small collection of fixes for the current series.  This contains:
      
         - Two fixes for xen-blkfront, from Bob Liu.
      
         - A bug fix for NVMe, releasing only the specific resources we
           requested.
      
         - Fix for a debugfs flags entry for nbd, from Josef.
      
         - Plug fix from Omar, fixing up a case of code being switched between
           two functions.
      
         - A missing bio_put() for the new discard callers of
           submit_bio_wait(), fixing a regression causing a leak of the bio.
           From Shaun.
      
         - Improve dirty limit calculation precision in the writeback code,
           fixing a case where setting a limit lower than 1% of memory would
           end up being zero.  From Tejun"
      
      * 'for-linus' of git://git.kernel.dk/linux-block:
        NVMe: Only release requested regions
        xen-blkfront: fix resume issues after a migration
        xen-blkfront: don't call talk_to_blkback when already connected to blkback
        nbd: pass the nbd pointer for flags debugfs
        block: missing bio_put following submit_bio_wait
        blk-mq: really fix plug list flushing for nomerge queues
        writeback: use higher precision calculation in domain_dirty_limits()
      8714f8f5
    • Linus Torvalds's avatar
      Merge tag 'gpio-v4.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · 3a7c114d
      Linus Torvalds authored
      Pull GPIO fixes from Linus Walleij:
       "A new bunch of GPIO fixes for v4.7.
      
        This time I am very grateful that Ricardo Ribalda Delgado went in and
        fixed my stupid refcounting mistakes in the removal path for GPIO
        chips.  I had a feeling something was wrong here and so it was.  It
        exploded on OMAP and it fixes their problem.  Now it should be (more)
        solid.
      
        The rest i compilation, Kconfig and driver fixes.  Some tagged for
        stable.
      
        Summary:
      
         - Fix a NULL pointer dereference when we are searching the GPIO
           device list but one of the devices have been removed (struct
           gpio_chip pointer is NULL).
      
         - Fix unaligned reference counters: we were ending on +3 after all
           said and done.  It should be 0.  Remove an extraneous get_device(),
           and call cdev_del() followed by device_del() in gpiochip_remove()
           instead and the count goes to zero and calls the release() function
           properly.
      
         - Fix a compile warning due to a missing #include in the OF/device
           tree portions.
      
         - Select ANON_INODES for GPIOLIB, we're using that for our character
           device.  Some randconfig tests disclosed the problem.
      
         - Make sure the Zynq driver clock runs also without CONFIG_PM enabled
      
         - Fix an off-by-one error in the 104-DIO-48E driver
      
         - Fix warnings in bcm_kona_gpio_reset()"
      
      * tag 'gpio-v4.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio: bcm-kona: fix bcm_kona_gpio_reset() warnings
        gpio: select ANON_INODES
        gpio: include <linux/io-mapping.h> in gpiolib-of
        gpiolib: Fix unaligned used of reference counters
        gpiolib: Fix NULL pointer deference
        gpio: zynq: initialize clock even without CONFIG_PM
        gpio: 104-dio-48e: Fix control port offset computation off-by-one error
      3a7c114d
  6. 11 Jun, 2016 4 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 45b00c94
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two current fixes:
      
         - one affects Qemu CD ROM emulation, which stopped working after the
           updates in SCSI to require VPD pages from all conformant devices.
      
           Fix temporarily by blacklisting Qemu (we can relax later when they
           come into compliance).
      
         - The other is a fix to the optimal transfer size.  We set up a
           minefield for ourselves by being confused about whether the limits
           are in bytes or sectors (SCSI optimal is in blocks and the queue
           parameter is in bytes).
      
           This tries to fix the problem (wrong setting for queue limits
           max_sectors) and make the problem more obvious by introducing a
           wrapper function"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        sd: Fix rw_max for devices that report an optimal xfer size
        scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist
      45b00c94
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 5d1f7023
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
      
       - a bigger fix for i801 to finally be able to be loaded on some
         machines again
      
       - smaller driver fixes
      
       - documentation update because of a renamed file
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: mux: reg: Provide of_match_table
        i2c: mux: refer to i2c-mux.txt
        i2c: octeon: Avoid printk after too long SMBUS message
        i2c: octeon: Missing AAK flag in case of I2C_M_RECV_LEN
        i2c: i801: Allow ACPI SystemIO OpRegion to conflict with PCI BAR
      5d1f7023
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 90735c99
      Linus Torvalds authored
      Pull DeviceTree fixes from Rob Herring:
      
       - fix unflatten_dt_nodes when dad parameter is set.
      
       - add vendor prefixes for TechNexion and UniWest
      
       - documentation fix for Marvell BT
      
       - OF IRQ kerneldoc fixes
      
       - restrict CMA alignment adjustments to non dma-coherent
      
       - a couple of warning fixes in reserved-memory code
      
       - DT maintainers updates
      
      * tag 'devicetree-fixes-for-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        drivers: of: add definition of early_init_dt_alloc_reserved_memory_arch
        drivers/of: Fix depth for sub-tree blob in unflatten_dt_nodes()
        drivers: of: Fix of_pci.h header guard
        dt-bindings: Add vendor prefix for TechNexion
        of: add vendor prefix for UniWest
        dt: bindings: fix documentation for MARVELL's bt-sd8xxx wireless device
        of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF
        of: silence warnings due to max() usage
        drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent
        of: irq: fix of_irq_get[_byname]() kernel-doc
        MAINTAINERS: DeviceTree maintainer updates
      90735c99
    • Linus Torvalds's avatar
      Merge tag '20160610_uvc_compat_for_linus' of... · f1c32afd
      Linus Torvalds authored
      Merge tag '20160610_uvc_compat_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux
      
      Pull uvc compat XU ioctl fixes from Andy Lutomirski:
       "uvc's compat XU ioctls go through tons of potentially buggy
        indirection.  The first patch removes the indirection.  The second one
        cleans up the code.
      
        Compile-tested only.  I have the hardware, but I have absolutely no
        idea what XU does, how to use it, what software to recompile as
        32-bit, or what to test in that software"
      
      * tag '20160610_uvc_compat_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux:
        uvc_v4l2: Simplify compat ioctl implementation
        uvc: Forward compat ioctls to their handlers directly
      f1c32afd
  7. 10 Jun, 2016 13 commits