Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1047658ima; Fri, 1 Feb 2019 15:27:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN70nxaHJ4UINeyLILPhdYsxIQ/ic6ncYoieN6kAVkvoUwYHdsg71Kq+rHsOmcj8wFgqvHWq X-Received: by 2002:a62:b24a:: with SMTP id x71mr42412417pfe.148.1549063655411; Fri, 01 Feb 2019 15:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549063655; cv=none; d=google.com; s=arc-20160816; b=0nOhaK/xVSTIdABzIwpvv+Z+RGjsbDXHrI7iD6MX5LXGt8o2KmW52tZgAKt2Ju2Rq+ e3wph+CXbFCKnjLez0waZQwWus3j3lC28IWPWGBkQq4zbRTwxQSUlNi+X7g8sDuppk1D 1/ZWu++YmTiw/TnzN1dHDdwuwij7n+e8WWxl2bB79mf0oaelJ2/ZaQpAh95bLdDgXVY3 UhJ0diEbU+GM85xYq0xC1uBR2ggBRJ86RT5p/nlVpw4DrXvVUApaCk6iinqjf5Owpso7 JYddR5OXiC1tsyGzGq0bB6pdQMoWZ7Jw4aZEbCIKd9GypaLxfiTtRzDLCG/yco9ihsn4 WO5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ROocmubUaz8xcAZ9JngUJ4UCXMa3KlXgM10tViBqdcM=; b=LdkQBU7m5tTmJYHd/Z28KyP1nVsK+vOVVTBIIJ2DwzlPqNP/Z3as2ZPhvE1Lek/jMC xG0D0O87ohgn4WjJ0b1cCWWYrQhrs/rmaEYU2zReYAsaQnYFdwtIddG7hPmB1wKfN0p1 vC4gXq/GgXv3DNhrtRLiCFCgca7kITKE1AjVD7ZZLFccRsnmdnIUnP8ddmd4krgiugOn O1S+lYaF62CtLKYwa1WaC21rB9fXjp/Oj6OwkkMYOIXbOmUa7/YDXZpeoZogTZL0PIpA q+hnvYsO6W0r6WRzbwXRQTxsPHwd8lNwU0ReBDowknleDLG7xPb+JrVc7n1rUeuWn22d bZnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TEKsEME2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si8911527plk.310.2019.02.01.15.27.19; Fri, 01 Feb 2019 15:27:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TEKsEME2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbfBAXZr (ORCPT + 99 others); Fri, 1 Feb 2019 18:25:47 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39502 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfBAXZq (ORCPT ); Fri, 1 Feb 2019 18:25:46 -0500 Received: by mail-pg1-f196.google.com with SMTP id r11so3643630pgp.6; Fri, 01 Feb 2019 15:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ROocmubUaz8xcAZ9JngUJ4UCXMa3KlXgM10tViBqdcM=; b=TEKsEME2R9KgVtp6RVSKUAkwC66dTLIbtlwJrjiljfC4DX0PVFFLS5cFro8IT45/wq hCuzY4qwB4w0kQz4vStllduHLGxKNgVH12K0Hu8sxyH4G80ssBvuDmvc3Mx9TywLfNJb 1FJS4GRoKXTL97GPytvzqiLloc/Qm7ibvRRu8LswsRK5rwDQdao1VxhzzotIg4kchrs+ mrWPiZ0/snEoJxFe91mLbX4TwOwdwDvAG6wirF+NirKenSeWSMwQ8skdXTBuriO4nPue CyaEZkPRQ4Lq+XpV+Lkc/6/9mo5RP8PVAnVuxZ0rz3w22/3RDHQZfVs0MZxj64GcNABF Znhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ROocmubUaz8xcAZ9JngUJ4UCXMa3KlXgM10tViBqdcM=; b=bl2KG9qVJzYT1HwuauxKgGA2hGDZ8kAYAqQH92rO35TSW6mq/sTUu/n1z3wDLtX3UE k+4JMJBXo26otcHd2eoTBZO0GgFKbsObhWX9ANKkWbFXZsgVyrmzliPhinhXWMeIB6wZ iFuuIV92ipJFuk+4gE9N6KnhHVn+45M6z6IVCQO9HCrGKgtHxOrL0kDxvluP9U5GjN16 7MUfyjINnqo5Xr6c4LWdPt05NHBJE+J0P57szrrHrZ75sCr45qLFxTZimqghJ2VwhE2b cxuN7v5odnRga4703luzYUBtgX2NC6lkyfcEOxKHO2yXRn+f2/We2bO5wNPOMB9RUaAx 6xww== X-Gm-Message-State: AHQUAuZLsQCkAqEoniZ1TipHNX6OJYDJ/gO1dnmwO+9kkOXenxSHGqA8 sxe/FcpI2Uif+va8CN8yPJ74FrtdBVahJTTvO6b4gNyP X-Received: by 2002:a63:fe0a:: with SMTP id p10mr4202311pgh.265.1549063545887; Fri, 01 Feb 2019 15:25:45 -0800 (PST) MIME-Version: 1.0 References: <20180924143719.22191-1-hdegoede@redhat.com> <35cfd1f2-43eb-fc49-4777-a21413bb2d41@redhat.com> In-Reply-To: <35cfd1f2-43eb-fc49-4777-a21413bb2d41@redhat.com> From: Andy Shevchenko Date: Sat, 2 Feb 2019 01:25:44 +0200 Message-ID: Subject: Re: [PATCH] platform/x86: intel_int0002_vgpio: Implement irq_set_wake To: Hans de Goede Cc: Maxim Mikityanskiy , Andy Shevchenko , Darren Hart , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 2, 2019 at 12:52 AM Hans de Goede wrote: > On 1/31/19 8:47 PM, Maxim Mikityanskiy wrote: > > On Mon, Sep 24, 2018 at 5:37 PM Hans de Goede wrote: > >> > >> We were relying on the interrupt being shared with the ACPI SCI and the > >> ACPI core calling irq_set_wake. But that does not always happen on > >> Bay Trail devices, so we should do it ourselves. > >> > >> This fixes wake from USB not working on various Bay Trail devices. > > > > This patch breaks suspend on ASUS E202SA (bisecting pointed me to this > > patch, and if I revert it and build 4.20.5 without this patch, > > everything works flawlessly). > > Thank you for the bug report, can you please test 4.20.5 with the attached > patch on top? That should fix it. Once I've confirmation that this fixes > things I will submit the patch upstream. Thanks for fast reply, Hans! I looked at the patch and would propose one modification, i.e. use INTEL_CPU_FAM6() macro instead of ICPU(). -- With Best Regards, Andy Shevchenko