-
Notifications
You must be signed in to change notification settings - Fork 84
[Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] config: deepin_arm64_desktop_defconfig: enable phytium drivers #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linux-6.6.y
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR updates the deepin_arm64_desktop_defconfig to enable a set of PHYTIUM platform, USB/Type-C, audio, and accelerator drivers (GDMA/NPU) along with SMMU bypass support. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
/lgtm |
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
drivers/spi/spi-phytium-common.c:333:7: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] 333 | if (ret) { | ^~~ CC [M] drivers/input/serio/pcips2.o drivers/spi/spi-phytium-common.c:325:9: note: initialize the variable 'ret' to silence this warning 325 | int ret; | ^ | = 0 1 error generated. Signed-off-by: Wentao Guan <[email protected]>
deepin pr auto review代码审查意见:
|
ee2b7d6
to
3bccbc0
Compare
Log: drivers/usb/phytium_usb_v2/pci.c:33:6: error: variable 'phytium_usb' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] 33 | if (pci_is_enabled(pdev)) { | ^~~~~~~~~~~~~~~~~~~~ drivers/usb/phytium_usb_v2/pci.c:45:2: note: uninitialized use occurs here 45 | phytium_usb->otg_res.start = pci_resource_start(pdev, 0); | ^~~~~~~~~~~ drivers/usb/phytium_usb_v2/pci.c:33:2: note: remove the 'if' if its condition is always true 33 | if (pci_is_enabled(pdev)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/phytium_usb_v2/pci.c:24:33: note: initialize the variable 'phytium_usb' to silence this warning 24 | struct phytium_usb *phytium_usb; | ^ | = NULL 1 error generated. similar to the following logic: pci_set_master(pdev); if (pci_is_enabled(func)) { cdnsp = pci_get_drvdata(func); } else { cdnsp = kzalloc(sizeof(*cdnsp), GFP_KERNEL); if (!cdnsp) { ret = -ENOMEM; goto disable_pci; } } Signed-off-by: Wentao Guan <[email protected]>
CONFIG_MTD_PHYTIUM_LBC=m CONFIG_SERIAL_PHYTIUM_UART_V2=m CONFIG_I2C_V2_PLATFORM=m CONFIG_SPI_PHYTIUM_PLAT_V2=m CONFIG_SND_SOC_PHYTIUM_I2S_V2=m CONFIG_SND_SOC_PHYTIUM_MACHINE_V2=m CONFIG_SND_SOC_PHYTIUM_CODEC_V2=m CONFIG_HID_UNIVERSAL_PIDFF=m CONFIG_USB_PHYTIUM_PCI_V2=m CONFIG_USB_PHYTIUM_V2=m CONFIG_TYPEC_PHYTIUM_RS=m CONFIG_PHYTIUM_GDMA=y CONFIG_PHYTIUM_NPU=m CONFIG_NPU_PLATFORM=m CONFIG_PHYTIUM_NPU_PCI=m CONFIG_SMMU_BYPASS_DEV=y Signed-off-by: Wentao Guan <[email protected]>
3bccbc0
to
c1a6ab3
Compare
Log: Signed-off-by: Wentao Guan <[email protected]>
Log: 2025-05-16T12:01:20.8409093Z drivers/usb/phytium_usb_v2/gadget.c:1563:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] 2025-05-16T12:01:20.8411014Z 1563 | if (!pdev->setup_buf) 2025-05-16T12:01:20.8411857Z | ^~~~~~~~~~~~~~~~ 2025-05-16T12:01:20.8412989Z drivers/usb/phytium_usb_v2/gadget.c:1600:9: note: uninitialized use occurs here 2025-05-16T12:01:20.8414076Z 1600 | return ret; 2025-05-16T12:01:20.8414775Z | ^~~ 2025-05-16T12:01:20.8415931Z drivers/usb/phytium_usb_v2/gadget.c:1563:2: note: remove the 'if' if its condition is always false 2025-05-16T12:01:20.8417705Z 1563 | if (!pdev->setup_buf) 2025-05-16T12:01:20.8418583Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-05-16T12:01:20.8419358Z 1564 | goto free_pdev; 2025-05-16T12:01:20.8420170Z | ~~~~~~~~~~~~~~ 2025-05-16T12:01:20.8421430Z drivers/usb/phytium_usb_v2/gadget.c:1525:9: note: initialize the variable 'ret' to silence this warning 2025-05-16T12:01:20.8422666Z 1525 | int ret; 2025-05-16T12:01:20.8423346Z | ^ 2025-05-16T12:01:20.8424036Z | = 0 Signed-off-by: Wentao Guan <[email protected]>
Log: 2025-05-16T15:13:43.6129337Z drivers/staging/phytium-npu/phytium_npu_pci.c:82:16: error: variable 'reg_addr' is used uninitialized whenever 'for' loop exits because its condition is false [-Werror,-Wsometimes-uninitialized] 2025-05-16T15:13:43.6131548Z 82 | for (bar = 0; bar < NUM_PCI_BARS; bar++) { 2025-05-16T15:13:43.6132195Z | ^~~~~~~~~~~~~~~~~~ 2025-05-16T15:13:43.6133127Z drivers/staging/phytium-npu/phytium_npu_pci.c:98:7: note: uninitialized use occurs here 2025-05-16T15:13:43.6134010Z 98 | if (!reg_addr) 2025-05-16T15:13:43.6134457Z | ^~~~~~~~ 2025-05-16T15:13:43.6135385Z drivers/staging/phytium-npu/phytium_npu_pci.c:82:16: note: remove the condition if it is always true 2025-05-16T15:13:43.6136692Z 82 | for (bar = 0; bar < NUM_PCI_BARS; bar++) { 2025-05-16T15:13:43.6137381Z | ^~~~~~~~~~~~~~~~~~ 2025-05-16T15:13:43.6138490Z drivers/staging/phytium-npu/phytium_npu_pci.c:52:24: note: initialize the variable 'reg_addr' to silence this warning 2025-05-16T15:13:43.6139510Z 52 | void __iomem *reg_addr; 2025-05-16T15:13:43.6140038Z | ^ 2025-05-16T15:13:43.6140541Z | = NULL 2025-05-16T15:13:43.6141173Z 1 error generated. Signed-off-by: Wentao Guan <[email protected]>
CONFIG_MTD_PHYTIUM_LBC=m
CONFIG_SERIAL_PHYTIUM_UART_V2=m
CONFIG_I2C_V2_PLATFORM=m
CONFIG_SPI_PHYTIUM_PLAT_V2=m
CONFIG_SND_SOC_PHYTIUM_I2S_V2=m
CONFIG_SND_SOC_PHYTIUM_MACHINE_V2=m
CONFIG_SND_SOC_PHYTIUM_CODEC_V2=m
CONFIG_HID_UNIVERSAL_PIDFF=m
CONFIG_USB_PHYTIUM_PCI_V2=m
CONFIG_USB_PHYTIUM_V2=m
CONFIG_TYPEC_PHYTIUM_RS=m
CONFIG_PHYTIUM_GDMA=y
CONFIG_PHYTIUM_NPU=m
CONFIG_NPU_PLATFORM=m
CONFIG_PHYTIUM_NPU_PCI=m
CONFIG_SMMU_BYPASS_DEV=y
Summary by Sourcery
Build: