Skip to content

Usb: phytium: update phytium Usb controller driver support to 6.6.0.4#1954

Open
wangchenlu2236 wants to merge 11 commits into
deepin-community:linux-6.6.yfrom
wangchenlu2236:usb-6.6.y
Open

Usb: phytium: update phytium Usb controller driver support to 6.6.0.4#1954
wangchenlu2236 wants to merge 11 commits into
deepin-community:linux-6.6.yfrom
wangchenlu2236:usb-6.6.y

Conversation

@wangchenlu2236

Copy link
Copy Markdown
Contributor

This patches updates the support for phytium Usb controller driver.
1.usb: phytium_v2: Fix the uninitialized pdev pointer issue
2.usb: phytium_v2: Fix dma_free_attrs call trace issue
3.usb: phytium: Fix the kernel panic problem
4.usb: phytium_v2: Fixed USB host controller stop logic
5.usb: phytium: Add a forced operation to send the port reset command
6.usb: xhci: Add the method to reactivate the USB controller
7.usb: xhci: Add a reset endpoint command to the specified PHYTIUM SOC
8.usb: phytium: Restricted adaptation platform for PHYTIUM USB driver.
9.usb: gadget: phytium: Add support for phytium tcm driver
10.char: phytium: Add support for phytium usb tcm device driver
11.usb: xhci: Fix panic issue caused by the controller reactivation failure

Due to a typographical error, the pdev pointer variable was not
assigned a value. This patch fixes the issue of the pdev variable
not being assigned a value.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
This patch fixes the stack information of a large number of
dma_free_attrs, which is triggered by the call to gaget_mem_cleanup
in the gadget_suspend function.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
An interrupt that occurs before the trbChainDescList list has been
initialized will cause kernel panic. Put the list initialization
in dma_init function to execute.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
The correct stop logic is to release the controller resources
first, and then stop the HOST working mode, otherwise the
resources release may fail.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
In the HubPortReset function, add a forced operation to send port
reset command to fix the issue where the port reset command is not
sent, casusing abnormal device operation.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
Sometimes, when the USB controller experiences a timeout for the stop
EP endpoint command for a timeout for processing commands, xhci driver
will shutdown the USB controller. If you want to reactivate the USB
controller, you need to follow the reactivation operation process.
note: This patch is only applicable to the Phytium platform.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
When a transmission error occurs, EP_CTX_STATE is not equal to
EP_STATE_HALTED, and the reset endpoint command is forcibly sent for
the specified PHYTIUM platform.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
This driver is exclusively for the PHYTIUM platform and is not
compatible with other systems. This restriction prevents errors
on unsupported platform.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
This patch provides support for Phytium tcm driver, which is used
to support USB_TCM transmission.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
This patch provides support for Phytium usb tcm device driver,
which can be used for communication with the PHYTIUM USB TCM.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
During controller reactivation, if the xhci_generic_plat_probe function
fails for any reason, attempting a shutdown operation at this stage will
cause the shutdown function to use already released resources, which will
trigger the system panic. Therefore, when the xhci_generic_plat_probe
function fails, the shutdown function must be set to NULL.

Mainline: Open-Source
Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @wangchenlu2236, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

Hi @wangchenlu2236. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@deepin-ci-robot deepin-ci-robot requested a review from shy129 July 6, 2026 16:56
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign opsiff for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants