From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFE71606A695 for ; Wed, 2 Dec 2026 13:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=lA81x2jD; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=UMmoYoYD DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=89VINFttjmFBkrb4NUWIwYPQ3vI03EHzgOOYF0lDw84=; b=lA81x2jDy43ifxUo3HUDrULV8C +pZwqG8uVhHllbiBoy/i5SIZnB2LXO8WSyTUyTYwErotCmzafVNX+pk3Slu4zcg7gu/wd/5JdMrsc JdCafa1ltzcgfzgg2+MYq7JmCJgk66SDxLC4zbdh5bLYwFA22s+BpEojlpjUMGRYVbHbFxtDMiiH2 9RJmCIUyccNS3cNYcD672FhhcZY2yC1hoEruauzk18mVYPkPiXtBQECa3gDtGAfs8BThSvFisRIPM 6V55QuHY84J7wixW1rEFbkWBff/9IxSKyPVAXISJUv8BkCOVGfxmr9bpyq5lcUL4G16jx2Ue5hlQf R/iWX5FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYkNo-0000000Bayx-4As9; Wed, 02 Dec 2026 13:28:29 +0000 Received: from mgamail.intel.com ([192.198.163.8]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYkNm-0000000BayU-15qN for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 13:28:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796218107; x=1827754107; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=89VINFttjmFBkrb4NUWIwYPQ3vI03EHzgOOYF0lDw84=; b=UMmoYoYDlUHb8emcZQCsMIE9K+NZNcEGJQEZNteLDLpe93voCbOj+Yvp EcT5qaBZizXSOeWJH0lJ3kiVQdASNJbewi+ozPRx03TounnBOaJaYg2G6 zH3Rm8ppfmTW2606PNSYlI5g6NTDAK+vTiZk2i9o0t6JrVqcmDOBMuObf j06nqmQBriayNcwop6au2Hbe7TY/BZaCPDyxtSqFBHrH8V7gP/yW5QHst N7E9RzUG2u+gqk/S3ML2BKdWdjVn5ZINnPk6QOOPJWkiZsT+VN91drEIY mqsyV92Ws56ETMpIec8zN/8rj5LCK3nMPc2+AIOyyL3BM+L1DfqEAR61A w==; X-CSE-ConnectionGUID: JGOkBL+6R/GTv9WFfva5Rw== X-CSE-MsgGUID: 8dch6tWfR1GNj1MstXA72Q== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5023261" X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="5023261" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 05:28:26 -0800 X-CSE-ConnectionGUID: KejuqWigQL2TM5indCtu/w== X-CSE-MsgGUID: PhQr/y4LTDyUMmI8gl41uw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="13340609" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa005.jf.intel.com with ESMTP; 02 Dec 2026 05:28:23 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id ECEA098; Wed, 02 Dec 2026 14:28:21 +0100 (CET) Date: Wed, 2 Dec 2026 14:28:21 +0100 From: Mika Westerberg To: "Shih-Yuan Lee (FourDollars)" Cc: Mark Brown , Andy Shevchenko , Lukas Wunner , Daniel Mack , Haojian Zhuang , Robert Jarzmik , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v17 5/6] spi: pxa2xx-pci: restore LPSS private register state across S3 resume Message-ID: <20261202132821.GY953667@black.igk.intel.com> References: <20260930160629.1822-1-fourdollars@debian.org> <20260930160629.1822-6-fourdollars@debian.org> <20261001041301.GC176164@black.igk.intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_052826_339775_B4923728 X-CRM114-Status: GOOD ( 23.30 ) X-Spam-Score: -4.2 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi, On Wed, Dec 02, 2026 at 07:15:25PM +0800, Shih-Yuan Lee (FourDollars) wrote: > Hi Mika, > > On Thu, Oct 1, 2026 at 12:13 PM Mika Westerberg > wrote: > > > > Hi, > > > > On Thu, Oct 01, 2026 at 12:06:28AM +0800, Shih-Yuan Lee wrote: > > > On platforms where Intel LPSS SPI is enumerated as a bare PCI device > > > (such as the Apple MacBook8,1 on Lynxpoint-LP), the LPSS power island > > > loses power during system sleep and powers up with the controller held > > > in reset. Because the device lacks ACPI companion objects or MFD > > > binding, neither drivers/acpi/x86/lpss.c nor drivers/mfd/intel-lpss.c > > > restore the private register context across S3 resume. > > > > Hmm, how is that possible? The LPSS is a single PCI device that only the > > the LPSS MFD driver binds to. I don't think it is any different in Apple > > platforms than any other regular PC platforms in that sense. What does > > lspci -vv show on this system? > > On MacBook8,1 (Broadwell / Intel Wildcat Point-LP PCH), the Serial IO > controllers are exposed as separate PCI functions under 00:15.x rather > than a single multifunction MFD device handled by intel-lpss-pci: > > - 00:15.0 [8086:9ce0]: Wildcat Point-LP Serial IO DMA Controller (dw_dmac_pci) > - 00:15.2 [8086:9ce2]: Wildcat Point-LP Serial IO I2C Controller #1 > - 00:15.4 [8086:9ce6]: Wildcat Point-LP Serial IO GSPI Controller #1 > (pxa2xx_spi_pci) > - 00:15.5 [8086:9ce3]: Wildcat Point-LP Serial IO UART Controller #0 (8250_lpss) > > Relevant `lspci -vvnn` excerpt for 00:15.0 and 00:15.4: > > 00:15.0 DMA controller [0801]: Intel Corporation Wildcat Point-LP > Serial IO DMA Controller [8086:9ce0] (rev 03) (prog-if 02 [EISA DMA]) > Subsystem: Intel Corporation Wildcat Point-LP Serial IO DMA > Controller [8086:9ce0] > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- > ParErr- Stepping- SERR- FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- > SERR- Latency: 0, Cache Line Size: 256 bytes > Interrupt: pin B routed to IRQ 20 > IOMMU group: 3 > Region 0: Memory at c181c000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [80] Power Management version 3 > Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > Kernel driver in use: dw_dmac_pci > Kernel modules: dw_dmac_pci > > 00:15.4 Serial bus controller [0c80]: Intel Corporation Wildcat > Point-LP Serial IO GSPI Controller #1 [8086:9ce6] (rev 03) > Subsystem: Intel Corporation Wildcat Point-LP Serial IO GSPI > Controller #1 [8086:9ce6] > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- > ParErr- Stepping- SERR- FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- > SERR- Latency: 0, Cache Line Size: 256 bytes > Interrupt: pin C routed to IRQ 21 > IOMMU group: 3 > Region 0: Memory at c181a000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [80] Power Management version 3 > Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > Kernel driver in use: pxa2xx_spi_pci > Kernel modules: spi_pxa2xx_pci Okay thanks for sharing. Yeah in this case it would be good if you could somehow take advantage of the LPSS code on the MFD side.