Skip to content

[AS9726-32D] Add new platform (port from support_linux_6.1, kernel 4.19)#156

Open
vincentchiang-ec wants to merge 1 commit intoaccton:support_new_platform_and_syncfrom
vincentchiang-ec:as9726-32d/port-to-4.19
Open

[AS9726-32D] Add new platform (port from support_linux_6.1, kernel 4.19)#156
vincentchiang-ec wants to merge 1 commit intoaccton:support_new_platform_and_syncfrom
vincentchiang-ec:as9726-32d/port-to-4.19

Conversation

@vincentchiang-ec
Copy link
Copy Markdown

Summary

Port the AS9726-32D platform from the support_linux_6.1 branch to support_new_platform_and_sync, targeting kernel 4.19 LTS.

Driver adaptations for kernel 4.19

  • i2c_driver remove() returns int (was void in 6.1)
  • Drop hwmon_chip_info / HWMON_CHANNEL_INFO usage (added in 5.5); pass NULL chip_info to hwmon_device_register_with_info() to match the existing as9716_32d / as9926-24db pattern on this branch
  • modules/PKG.yml, modules/builds/Makefile, and platform-config yml switched from kernel-6.1 to kernel-4.19 anchors

Runtime fixes uncovered by hardware verification

  • Remove the pca9548 idle_state init in __init__.py — the sysfs is only present in 6.x kernel pca954x driver
  • Fix onlp_sysi_platform_info_get() double-free: zero-init onie and check onlp_onie_decode_file() return before freeing, since decode_file does not zero-init the struct on fopen failure

Test plan

  • Build modules + onlp + platform-config debs
  • Build amd64 INSTALLER (SWI + INSTALLED)
  • Boot tested on AS9726-32D hardware
  • onlpdump runs without double free or corruption crash
  • No tee idle_state errors at startup

🤖 Generated with Claude Code

Port the AS9726-32D platform from the support_linux_6.1 branch to
support_new_platform_and_sync, targeting kernel 4.19 LTS.

Driver adaptations for kernel 4.19:
- i2c_driver remove() returns int (was void in 6.1)
- Drop hwmon_chip_info / HWMON_CHANNEL_INFO usage (added in 5.5);
  pass NULL chip_info to hwmon_device_register_with_info() to match
  the existing as9716_32d / as9926-24db pattern on this branch.
- modules/PKG.yml, modules/builds/Makefile and platform-config yml
  switched from kernel-6.1 to kernel-4.19 anchors.

Verified by building modules + onlp + platform-config debs and the
full amd64 INSTALLER.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant