Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp212371rdb; Mon, 18 Sep 2023 12:38:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQ2jYz3HQwevrEeyuKrNNiA+CrXFwR0bwGlne2J3GBzBVzca9hjQvTMQpHicEDTMbCzqxQ X-Received: by 2002:a05:6a20:8f0c:b0:14c:5dc3:f1c9 with SMTP id b12-20020a056a208f0c00b0014c5dc3f1c9mr12204623pzk.49.1695065885858; Mon, 18 Sep 2023 12:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695065885; cv=none; d=google.com; s=arc-20160816; b=eFI3Tf7dFrjmZaE2IVAJAms+bAMIDnx0Wnmnx4D5oV8hWs8wSkK7cKR47hVHNma+D1 yztK0xZsYnJKuu6zI7ScLjO1MuL3MDR4pCwHxj9Atzp2qsUvvKKtPDqo6YzviAC+m4e2 8IamjrWPom0XAQeFFJfVb+1uJppxYXweWtzgiryOEBixOsthPJ8CUD7xRVsRz1VUOCQg uoc2Qb04Oa7/cj3tEP1KPecO1mCoaDoactFT37OtU2eDsg4bRsTCMcuEBEoYYQnedhwd j9oTRsnsUfp7AJlXRbLJe7/d7lz5/YeeO5b2zG6nRVENWwbovEL4BlIDKxx6umib+J54 qwSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id:dkim-signature; bh=Y5Qy1xq2FLp9lLJPaXJu9Xq5JiTKhd0beDoTIPfg6uk=; fh=7I85wPoFdv33km1TEmdXHjoIriTvgYUoooCfusQtmYQ=; b=qI3QfLVdSwDzdRcRvlXm/CCGDisXSaX8S2HAGQwFoujlIhx87xiUWZ5OnSnTcbjeH0 cbARjp4OBZIVkq9v3aRjxXYIBvII6bXdPesrKOoJQ1I5dJXLRWfCjaLY/C6a6EqSPCrG +QE1yijoZE8Tzjv8SZXcKroLGdsN8tf4GtLjmgijPRpHk+NCmqDIDo5rx0nc/1T9XLUu LcNys9+7ogXvtDS3AkmPJbGA/ZQJezzpF5IAMxtZ1gasM0F68cTzZe4iZS7CqnkHvrWR CR4SUgSoTubhVsYuLCnS+goQJ8oKgMuxN44PnnsfRSQppPyfcHZ8VTLbKJq0AMpeMArw JZ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fENF5UD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t9-20020a056a0021c900b0068fbd15c036si8803981pfj.286.2023.09.18.12.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 12:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fENF5UD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BF0AB8026E30; Mon, 18 Sep 2023 09:34:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjIRQeC (ORCPT + 99 others); Mon, 18 Sep 2023 12:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjIRQdf (ORCPT ); Mon, 18 Sep 2023 12:33:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FF7327BA9; Mon, 18 Sep 2023 09:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695053753; x=1726589753; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version; bh=Y5Qy1xq2FLp9lLJPaXJu9Xq5JiTKhd0beDoTIPfg6uk=; b=fENF5UD9ZH42BVlUIsO5Z/LfNy9JJgw7AKpWaSOUA3wz1w7pC7Q7KCgh XJB95FWN6+lpGERehI2J0gDJdyPb6mqFOITS9ISq0dNv1rixTOoPk/nbF eXl2EQrjzieb88OJiHh02gYr1rX6ab2LxZ77A5GT7kkZ5prSbZdM8j/D+ m1AwkYpdo9IrgkeDxpZx59IHOh8BZMilYSvAsFX9zE06JGTes93Wx/ru/ V1g+v6ZssFWFSNo7ouliKEbhrqPGpO/JSi3CIYbw2Qbcj1tBtGN92mSbX UkyQ+4O8yqXJ2WGMoHwrUZ1d+vn7I0a8eu/p1rdCTW9Xv88b2ZCERo8xb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="359949175" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="diff'?scan'208";a="359949175" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 08:57:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="722509078" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="diff'?scan'208";a="722509078" Received: from spandruv-desk1.amr.corp.intel.com ([10.209.0.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 08:57:26 -0700 Message-ID: Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup From: srinivas pandruvada To: Kai-Heng Feng , "Xu, Even" Cc: "jikos@kernel.org" , "benjamin.tissoires@redhat.com" , "linux-pm@vger.kernel.org" , "linux-pci@vger.kernel.org" , "Lee, Jian Hui" , "Zhang, Lixu" , "Ba, Najumon" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Mon, 18 Sep 2023 08:57:26 -0700 In-Reply-To: References: <20230914041806.816741-1-kai.heng.feng@canonical.com> <7b45ac2ed091497b4e21a6a5c19956161175ba16.camel@linux.intel.com> Content-Type: multipart/mixed; boundary="=-1j69hCpt+mC+iWRBI882" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:34:26 -0700 (PDT) --=-1j69hCpt+mC+iWRBI882 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kai-Heng, On Mon, 2023-09-18 at 09:17 +0800, Kai-Heng Feng wrote: > Hi Even, >=20 > On Mon, Sep 18, 2023 at 8:33=E2=80=AFAM Xu, Even wrot= e: > >=20 > > Hi, Kai-Heng, > >=20 > > I just got feedback, for testing EHL S5 wakeup feature, you need > > several steps to setup and access=C2=A0 > > "https://portal.devicewise.com/things/browse" to trigger wake. > > But currently, our test account of this website are all out of > > data. > > So maybe you need double check with the team who required you > > preparing the patch for the verification. >=20 > The patch is to solve the GPE refcount overflow, while maintaining S5 > wakeup. I don't have any mean to test S5 wake. >=20 The issue is not calling acpi_disable_gpe(). To reduce the scope of change can we just add that instead of a adding new callbacks. This way scope is reduced. Something like the attached Thanks, Srinivas > So if you also don't have ways to verify S5 wake functionality, maybe > we can simply revert 2e23a70edabe=C2=A0 ("HID: intel-ish-hid: ipc: finish > power flow for EHL OOB") as alternative? >=20 > Kai-Heng >=20 > > Thanks! > >=20 > > Best Regards, > > Even Xu > >=20 > > -----Original Message----- > > From: Xu, Even > > Sent: Friday, September 15, 2023 3:27 PM > > To: Kai-Heng Feng > > Cc: srinivas pandruvada ; > > jikos@kernel.org; benjamin.tissoires@redhat.com; > > linux-pm@vger.kernel.org; linux-pci@vger.kernel.org; Lee, Jian Hui > > ; Zhang, Lixu ; > > Ba, Najumon ; linux-input@vger.kernel.org; > > linux-kernel@vger.kernel.org > > Subject: RE: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup > >=20 > > Hi, Kai-Heng, > >=20 > > I am also not familiar with this S5 wakeup test case. > > I already sent out mails to ask for help on it. > > Will come back to you once I get feedback. > > Thanks! > >=20 > > Best Regards, > > Even Xu > >=20 > > -----Original Message----- > > From: Kai-Heng Feng > > Sent: Friday, September 15, 2023 2:01 PM > > To: Xu, Even > > Cc: srinivas pandruvada ; > > jikos@kernel.org; benjamin.tissoires@redhat.com; > > linux-pm@vger.kernel.org; linux-pci@vger.kernel.org; Lee, Jian Hui > > ; Zhang, Lixu ; > > Ba, Najumon ; linux-input@vger.kernel.org; > > linux-kernel@vger.kernel.org > > Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup > >=20 > > Hi Even, > >=20 > > On Fri, Sep 15, 2023 at 1:31=E2=80=AFPM Xu, Even wr= ote: > > >=20 > > > Hi, Srinivas, > > >=20 > > > Sure, I will test it. > > > As long term not working on EHL, I doesn't have EHL board on hand > > > right now, I can test this patch on other ISH related platforms. > > > From the patch, it's focus on EHL platform, I assume Kai-Heng > > > already verified the function on EHL board. > >=20 > > I only made sure the GPE overflow issue is fixed by the patch, but > > I didn't test the S5 wakeup. > > That's because I don't know how to test it on the EHL system I > > have. > > I'll test it if you can let me know how to test the S5 wakeup. > >=20 > > Kai-Heng > >=20 > > > I don't think it will take effect on other platforms, anyway, I > > > will test it on the platforms I have to provide cross platform > > > verification. > > >=20 > > > Thanks! > > >=20 > > > Best Regards, > > > Even Xu > > >=20 > > > -----Original Message----- > > > From: srinivas pandruvada > > > Sent: Friday, September 15, 2023 12:11 AM > > > To: Kai-Heng Feng ; > > > jikos@kernel.org; > > > benjamin.tissoires@redhat.com > > > Cc: linux-pm@vger.kernel.org; linux-pci@vger.kernel.org; Lee, > > > Jian Hui > > > ; Xu, Even ; Zhang, > > > Lixu > > > ; Ba, Najumon ; > > > linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > > > Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB > > > wakeup > > >=20 > > > Hi Even, > > >=20 > > > On Thu, 2023-09-14 at 12:18 +0800, Kai-Heng Feng wrote: > > > > System cannot suspend more than 255 times because the driver > > > > doesn't > > > > have corresponding acpi_disable_gpe() for acpi_enable_gpe(), so > > > > the > > > > GPE refcount overflows. > > > >=20 > > > > Since PCI core and ACPI core already handles PCI PME wake and > > > > GPE > > > > wake when the device has wakeup capability, use > > > > device_init_wakeup() > > > > to let them do the wakeup setting work. > > > >=20 > > > > Also add a shutdown callback which uses pci_prepare_to_sleep() > > > > to > > > > let PCI and ACPI set OOB wakeup for S5. > > > >=20 > > > Please test this change. > > >=20 > > > Thanks, > > > Srinivas > > >=20 > > > > Fixes: 2e23a70edabe ("HID: intel-ish-hid: ipc: finish power > > > > flow for > > > > EHL OOB") > > > > Cc: Jian Hui Lee > > > > Signed-off-by: Kai-Heng Feng > > > > --- > > > > =C2=A0drivers/hid/intel-ish-hid/ipc/pci-ish.c | 59 > > > > +++++++---------------- > > > > -- > > > > =C2=A01 file changed, 15 insertions(+), 44 deletions(-) > > > >=20 > > > > diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c > > > > b/drivers/hid/intel-ish-hid/ipc/pci-ish.c > > > > index 55cb25038e63..65e7eeb2fa64 100644 > > > > --- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c > > > > +++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c > > > > @@ -119,42 +119,6 @@ static inline bool > > > > ish_should_leave_d0i3(struct > > > > pci_dev *pdev) > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return !pm_resume_via_fi= rmware() || pdev->device =3D=3D > > > > CHV_DEVICE_ID;=C2=A0 } > > > >=20 > > > > -static int enable_gpe(struct device *dev) -{ -#ifdef > > > > CONFIG_ACPI > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 acpi_status acpi_sts; > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct acpi_device *adev; > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct acpi_device_wakeup *wa= keup; > > > > - > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 adev =3D ACPI_COMPANION(dev); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (!adev) { > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dev_err(dev, "get acpi handle failed\n"); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 return -ENODEV; > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wakeup =3D &adev->wakeup; > > > > - > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 acpi_sts =3D acpi_enable_gpe(= wakeup->gpe_device, wakeup- > > > > > gpe_number); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (ACPI_FAILURE(acpi_sts)) { > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dev_err(dev, "enable ose_gpe failed\n"); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 return -EIO; > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > > > > - > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return 0; > > > > -#else > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return -ENODEV; > > > > -#endif > > > > -} > > > > - > > > > -static void enable_pme_wake(struct pci_dev *pdev) -{ > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if ((pci_pme_capable(pdev, PC= I_D0) || > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= pci_pme_capable(pdev, PCI_D3hot) || > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= pci_pme_capable(pdev, PCI_D3cold)) && > > > > !enable_gpe(&pdev- > > > > > dev)) { > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 pci_pme_active(pdev, true); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dev_dbg(&pdev->dev, "ish ipc driver pme wake > > > > enabled\n"); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > > > > -} > > > > - > > > > =C2=A0/** > > > > =C2=A0 * ish_probe() - PCI driver probe callback > > > > =C2=A0 * @pdev:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pci device > > > > @@ -225,7 +189,7 @@ static int ish_probe(struct pci_dev *pdev, > > > > const > > > > struct pci_device_id *ent) > > > >=20 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Enable PME for EHL */ > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (pdev->device =3D=3D = EHL_Ax_DEVICE_ID) > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 enable_pme_wake(pdev); > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 device_init_wakeup(dev, true); > > > >=20 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ret =3D ish_init(ishtp); > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (ret) > > > > @@ -248,6 +212,19 @@ static void ish_remove(struct pci_dev > > > > *pdev) > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ish_device_disable(ishtp= _dev);=C2=A0 } > > > >=20 > > > > + > > > > +/** > > > > + * ish_shutdown() - PCI driver shutdown callback > > > > + * @pdev:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pci device > > > > + * > > > > + * This function sets up wakeup for S5=C2=A0 */ static void > > > > +ish_shutdown(struct pci_dev *pdev) { > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (pdev->device =3D=3D EHL_A= x_DEVICE_ID) > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 pci_prepare_to_sleep(pdev); } > > > > + > > > > =C2=A0static struct device __maybe_unused *ish_resume_device; > > > >=20 > > > > =C2=A0/* 50ms to get resume response */ > > > > @@ -370,13 +347,6 @@ static int __maybe_unused > > > > ish_resume(struct > > > > device *device) > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct pci_dev *pdev =3D= to_pci_dev(device); > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct ishtp_device *dev= =3D pci_get_drvdata(pdev); > > > >=20 > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* add this to finish power f= low for EHL */ > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (dev->pdev->device =3D=3D = EHL_Ax_DEVICE_ID) { > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 pci_set_power_state(pdev, PCI_D0); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 enable_pme_wake(pdev); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dev_dbg(dev->devc, "set power state to D0 for > > > > ehl\n"); > > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > > > > - > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ish_resume_device =3D de= vice; > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dev->resume_flag =3D 1; > > > >=20 > > > > @@ -392,6 +362,7 @@ static struct pci_driver ish_driver =3D { > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .id_table =3D ish_pci_tb= l, > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .probe =3D ish_probe, > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .remove =3D ish_remove, > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .shutdown =3D ish_shutdown, > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .driver.pm =3D &ish_pm_o= ps, > > > > =C2=A0}; > > > >=20 > > >=20 --=-1j69hCpt+mC+iWRBI882 Content-Disposition: attachment; filename="ehl_gpe.diff" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="ehl_gpe.diff"; charset="UTF-8" ZGlmZiAtLWdpdCBhL2RyaXZlcnMvaGlkL2ludGVsLWlzaC1oaWQvaXBjL3BjaS1pc2guYyBiL2Ry aXZlcnMvaGlkL2ludGVsLWlzaC1oaWQvaXBjL3BjaS1pc2guYwppbmRleCA1NWNiMjUwMzhlNjMu LjBkODU0ZTRmMWY3YyAxMDA2NDQKLS0tIGEvZHJpdmVycy9oaWQvaW50ZWwtaXNoLWhpZC9pcGMv cGNpLWlzaC5jCisrKyBiL2RyaXZlcnMvaGlkL2ludGVsLWlzaC1oaWQvaXBjL3BjaS1pc2guYwpA QCAtMTE5LDcgKzExOSw3IEBAIHN0YXRpYyBpbmxpbmUgYm9vbCBpc2hfc2hvdWxkX2xlYXZlX2Qw aTMoc3RydWN0IHBjaV9kZXYgKnBkZXYpCiAJcmV0dXJuICFwbV9yZXN1bWVfdmlhX2Zpcm13YXJl KCkgfHwgcGRldi0+ZGV2aWNlID09IENIVl9ERVZJQ0VfSUQ7CiB9CiAKLXN0YXRpYyBp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