[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
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port the AS9726-32D platform from the
support_linux_6.1branch tosupport_new_platform_and_sync, targeting kernel 4.19 LTS.Driver adaptations for kernel 4.19
i2c_driverremove()returnsint(wasvoidin 6.1)hwmon_chip_info/HWMON_CHANNEL_INFOusage (added in 5.5); passNULLchip_info tohwmon_device_register_with_info()to match the existingas9716_32d/as9926-24dbpattern on this branchmodules/PKG.yml,modules/builds/Makefile, and platform-config yml switched fromkernel-6.1tokernel-4.19anchorsRuntime fixes uncovered by hardware verification
pca9548 idle_stateinit in__init__.py— the sysfs is only present in 6.x kernelpca954xdriveronlp_sysi_platform_info_get()double-free: zero-initonieand checkonlp_onie_decode_file()return before freeing, sincedecode_filedoes not zero-init the struct onfopenfailureTest plan
onlpdumpruns withoutdouble free or corruptioncrashtee idle_stateerrors at startup🤖 Generated with Claude Code