Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Joseph Telaak" <joseph@telaak.dev>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 2/2] usb: ehci-pci: Set has_hostpc for TDI EHCI on Intel CE5300
Date: Tue, 27 Oct 2026 23:44:04 +0000	[thread overview]
Message-ID: <sashiko-outbox-187234@kernel.org> (raw)
In-Reply-To: <20261027-ehci-ce5300-hostpc-v2-2-375e9d362d74@telaak.dev>

> From: Joseph Telaak <joseph@telaak.dev>
> 
> The TransDimension EHCI core in the Intel CE5300 SoCs (192e:0101,
> revision >= 6) has the Moorestown-style register extensions: host
> mode is selected in USBMODE_EX rather than USBMODE, and the port speed
> is reported in HOSTPC.
> 
> Without has_hostpc, ehci_reset() never programs USBMODE_EX, so the
> core stays in idle mode: USBMODE_EX reads back 0, USBCMD.RS never
> sets and no device is ever reported as connected, even though the
> probe itself succeeds. With it, USBMODE_EX reads back 0x23 and
> devices enumerate.
> 
> USBMODE itself always reads back 0 on this core, so
> tdi_in_host_mode() would report a running controller as not in host
> mode and ehci_halt() would return without stopping it. Add
> has_usbmode_ex so that, for this core only, tdi_in_host_mode() reads
> host mode back from USBMODE_EX. ChipIdea also sets has_hostpc but
> keeps host mode in USBMODE, so it is unaffected.
> 
> Intel's CE5300 BSP sets has_hostpc for device 0x0101, revision >= 6.
> 
> Tested on a Control4 EA-3 (Intel Atom CE5310) with v7.3-rc6: a
> full-speed CP2104 USB-UART bridge (10c4:ea60) and a high-speed USB
> flash drive (0781:5575) enumerate with this change, and
> ehci_shutdown() leaves the controller halted (USBCMD.RS clear,
> USBSTS.HCHalted set); without the USBMODE_EX check it stays running.
> 
> Assisted-by: LLM
> Signed-off-by: Joseph Telaak <joseph@telaak.dev>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261027-ehci-ce5300-hostpc-v2-0-375e9d362d74@telaak.dev?part=2


      reply	other threads:[~2026-10-27 23:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 23:38 [PATCH v2 0/2] usb: ehci-pci: Intel CE5300 TDI EHCI support Joseph Telaak via B4 Relay
2026-10-27 23:38 ` [PATCH v2 1/2] usb: ehci-pci: Skip SBRN and port-wake reads on Intel CE5300 Joseph Telaak via B4 Relay
2026-10-27 23:41   ` sashiko-bot
2026-10-27 23:38 ` [PATCH v2 2/2] usb: ehci-pci: Set has_hostpc for TDI EHCI " Joseph Telaak via B4 Relay
2026-10-27 23:44   ` sashiko-bot [this message]

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=sashiko-outbox-187234@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=joseph@telaak.dev \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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