Linux SPI subsystem development
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: "Shih-Yuan Lee (FourDollars)" <fourdollars@debian.org>
Cc: Mark Brown <broonie@kernel.org>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Lukas Wunner <lukas@wunner.de>, Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>,
	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
Date: Wed, 2 Dec 2026 14:28:21 +0100	[thread overview]
Message-ID: <20261202132821.GY953667@black.igk.intel.com> (raw)
In-Reply-To: <CAAT15mPZnOd+kmZv-SuM6QHTqT_s5aDAs8j9Re6PnbuLWtytWg@mail.gmail.com>

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
> <mika.westerberg@linux.intel.com> 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-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>     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-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>     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.

  reply	other threads:[~2026-12-02 13:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 16:06 [PATCH v17 0/6] spi: pxa2xx: PM fixes, teardown overhaul, and LPSS restore for MacBook8,1 Shih-Yuan Lee
2026-09-30 16:06 ` [PATCH v17 1/6] spi: pxa2xx: rename local status variable to ret Shih-Yuan Lee
2026-10-01  7:10   ` Andy Shevchenko
2026-09-30 16:06 ` [PATCH v17 2/6] spi: pxa2xx: introduce clock enable and disable helper functions Shih-Yuan Lee
2026-09-30 17:31   ` Mark Brown
2026-10-01  7:13   ` Andy Shevchenko
2026-09-30 16:06 ` [PATCH v17 3/6] spi: pxa2xx: acquire active PM runtime reference in interrupt handler Shih-Yuan Lee
2026-09-30 17:40   ` Mark Brown
2026-09-30 16:06 ` [PATCH v17 4/6] spi: pxa2xx: overhaul teardown and suspend sequence to synchronize IRQ before clock gating Shih-Yuan Lee
2026-09-30 16:06 ` [PATCH v17 5/6] spi: pxa2xx-pci: restore LPSS private register state across S3 resume Shih-Yuan Lee
2026-10-01  4:13   ` Mika Westerberg
2026-12-02 11:15     ` Shih-Yuan Lee (FourDollars)
2026-12-02 13:28       ` Mika Westerberg [this message]
2026-10-01  7:20   ` Andy Shevchenko
2026-12-02 12:00     ` Shih-Yuan Lee (FourDollars)
2026-09-30 16:06 ` [PATCH v17 6/6] spi: pxa2xx-pci: disable DMA and runtime autosuspend for Apple MacBook8,1 Shih-Yuan Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202132821.GY953667@black.igk.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=daniel@zonque.org \
    --cc=fourdollars@debian.org \
    --cc=haojian.zhuang@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=robert.jarzmik@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox