Here is the patch

commit c538b9436751a0be2e1246b48353bc23156bdbcc
Author: Mika Westerberg <mika.westerb...@linux.intel.com>
Date:   Mon Oct 10 16:39:31 2016 +0300

    pinctrl: intel: Only restore pins that are used by the driver
    
    Dell XPS 13 (and maybe some others) uses a GPIO (CPU_GP_1) during suspend
    to explicitly disable USB touchscreen interrupt. This is done to prevent
    situation where the lid is closed the touchscreen is left functional.
    
    The pinctrl driver (wrongly) assumes it owns all pins which are owned by
    host and not locked down. It is perfectly fine for BIOS to use those pins
    as it is also considered as host in this context.
    
    What happens is that when the lid of Dell XPS 13 is closed, the BIOS
    configures CPU_GP_1 low disabling the touchscreen interrupt. During resume
    we restore all host owned pins to the known state which includes CPU_GP_1
    and this overwrites what the BIOS has programmed there causing the
    touchscreen to fail as no interrupts are reaching the CPU anymore.
    
    Fix this by restoring only those pins we know are explicitly requested by
    the kernel one way or other.
    
    Cc: sta...@vger.kernel.org
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=176361
    Reported-by: AceLan Kao <acelan....@canonical.com>
    Tested-by: AceLan Kao <acelan....@canonical.com>
    Signed-off-by: Mika Westerberg <mika.westerb...@linux.intel.com>
    Signed-off-by: Linus Walleij <linus.wall...@linaro.org>

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1632527

Title:
  [Dell][XPS]Touchscreen fails to function after resume from s3 by Lid
  close/open

Status in HWE Next:
  In Progress
Status in linux package in Ubuntu:
  In Progress

Bug description:
  Touchscreen fails to function after resume from s3 by Lid close/open

  Suspend from power menu/ power button cannot reproduce this issue

  Steps:
  1. Install ubuntu 16.04 and boot to OS
  2. suspend the system by Lid close action
  3. resume the session by Lid open
  4. check if touchscreen function works

  Expected results: Touchscreen should still works after Lid open

  Actual results: Touchscreen fails to work after lid open

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1632527/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to