From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH] pinctrl: intel: save HOSTSW_OWN register over suspend/resume Date: Tue, 21 Nov 2017 14:04:22 +0200 Message-ID: <20171121120422.GR22431@lahna.fi.intel.com> References: <20171115080446.GY17200@lahna.fi.intel.com> <018180A5-B0D2-418E-9DBC-EF5F310F7295@endlessm.com> <20171115101302.GA17200@lahna.fi.intel.com> <20171116124431.GS17200@lahna.fi.intel.com> <20171117064904.GZ17200@lahna.fi.intel.com> <20171121105205.GP22431@lahna.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga01.intel.com ([192.55.52.88]:22608 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbdKUMNK (ORCPT ); Tue, 21 Nov 2017 07:13:10 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Chris Chiu Cc: Heikki Krogerus , Linus Walleij , linux-gpio@vger.kernel.org, Linux Kernel , Linux Upstreaming Team On Tue, Nov 21, 2017 at 07:54:26PM +0800, Chris Chiu wrote: > Yup, I checked the value of the corresponded pin. It shows following before > suspend > pin 18 (GPIO_18) GPIO 0x40800102 0x00024075 > > Then after resume > pin 18 (GPIO_18) GPIO 0x40800102 0x00024075 [ACPI] OK, so ownership is changed to ACPI. > What else register do you suggest me to compare? The PADCFG2 is invalid It's fine APL does not have PADCFG2. Hmm, I don't understand how this can work in Windows either. The Windows people told me that they don't save and restore anything else than padcfg registers + ie. If the ownership is changed to ACPI it means you don't get interrupts anymore (only GPEs) and that applies to Windows as well.