Skip to content

[Deepin-Kernel-SIG] [linux 6.18.y] [FROMLIST] PCI: switchtec: Add Gen6 Device IDs#1744

Merged
opsiff merged 1 commit into
deepin-community:linux-6.18.yfrom
Avenger-285714:switchgen6-6.18
May 18, 2026
Merged

[Deepin-Kernel-SIG] [linux 6.18.y] [FROMLIST] PCI: switchtec: Add Gen6 Device IDs#1744
opsiff merged 1 commit into
deepin-community:linux-6.18.yfrom
Avenger-285714:switchgen6-6.18

Conversation

@Avenger-285714
Copy link
Copy Markdown
Member

@Avenger-285714 Avenger-285714 commented May 18, 2026

Add device IDs for the next generation of switchtec products.

No changes to the driver were required with the new version of the hardware.

[logang: rewrote commit message]

Link: https://patch.msgid.link/20260505161633.67454-1-logang@deltatee.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=next&id=5e6c21c56998e1e58d2f314e70779989ea0fee5d

Summary by Sourcery

New Features:

  • Register Gen6 Switchtec device IDs so the switchtec PCI driver recognizes and handles the latest hardware generation.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented May 18, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds support for Switchtec Gen6 hardware by introducing a new generation enum value and registering the associated PCI device IDs, without modifying driver logic or behavior.

File-Level Changes

Change Details Files
Introduce Switchtec Gen6 enumeration value used to identify the new hardware generation.
  • Extend the switchtec_gen enum with a SWITCHTEC_GEN6 constant for the new hardware generation
  • Ensure the new enum value can be referenced by existing driver infrastructure without additional logic changes
include/linux/switchtec.h
Register PCI IDs for multiple Switchtec Gen6 devices so they are bound by the existing switchtec driver.
  • Append SWITCHTEC_PCI_DEVICE entries for PFXs, PSXs, PFX, and PSX Gen6 variants with their respective device IDs
  • Associate all new device IDs with SWITCHTEC_GEN6 while reusing the pre-existing driver handling for other generations
drivers/pci/switch/switchtec.c

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for next-generation (Gen6) Switchtec PCIe switches by extending the generation enum and registering the new PCI device IDs so the existing switchtec driver will bind to the new hardware.

Changes:

  • Add SWITCHTEC_GEN6 to the enum switchtec_gen.
  • Add Gen6 Switchtec PCI device IDs to switchtec_pci_tbl (no functional driver logic changes).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
include/linux/switchtec.h Extends the Switchtec generation enum with SWITCHTEC_GEN6.
drivers/pci/switch/switchtec.c Registers Gen6 PCI device IDs so the driver matches/binds to new Switchtec hardware.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add device IDs for the next generation of switchtec products.

No changes to the driver were required with the new version of the
hardware.

[logang: rewrote commit message]

Signed-off-by: Ben Reed <Ben.Reed@microchip.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260505161633.67454-1-logang@deltatee.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=next&id=5e6c21c56998e1e58d2f314e70779989ea0fee5d
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
@Avenger-285714 Avenger-285714 changed the title [Deepin-Kernel-SIG] [linux 6.18.y] [Upstream] PCI: switchtec: Add Gen6 Device IDs [Deepin-Kernel-SIG] [linux 6.18.y] [FROMLIST] PCI: switchtec: Add Gen6 Device IDs May 18, 2026
@opsiff opsiff merged commit 00075fa into deepin-community:linux-6.18.y May 18, 2026
7 of 12 checks passed
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: opsiff

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants