Skip to content

[AS5835-54X] Upgrade kernel to 6.12#199

Open
vincentchiang-ec wants to merge 1 commit into
accton:support_linux_6.12from
vincentchiang-ec:as5835-54x/upgrade-kernel-6.12
Open

[AS5835-54X] Upgrade kernel to 6.12#199
vincentchiang-ec wants to merge 1 commit into
accton:support_linux_6.12from
vincentchiang-ec:as5835-54x/upgrade-kernel-6.12

Conversation

@vincentchiang-ec

Copy link
Copy Markdown

Summary

Upgrades AS5835-54X platform from kernel 6.1 to 6.12 LTS, following the same pattern as the AS9716-32D / AS4630 / AS7712-32X upgrades on this branch.

Per-platform changes

  • modules/PKG.yml, modules/builds/Makefile: switch KERNELS from onl-kernel-6.1-lts-x86-64-all to onl-kernel-6.12-lts-x86-64-all
  • platform-config/r0/.../x86-64-accton-as5835-54x-r0.yml: kernel anchor *kernel-6-1*kernel-6-12
  • cpld.c, psu.c, fan.c: i2c_driver.probe() single-arg signature (probe(client)); restore the device id via i2c_client_get_device_id(client) in cpld.c and psu.c where the body still uses it; fan.c's dev_id was unused so the parameter is simply dropped
  • leds.c: platform_driver.remove() returns void per kernel 6.11+ API (drop the trailing return 0;)

No change needed for:

  • IDPROM path (platform_lib.h): already on /sys/bus/i2c/devices/0-0057/eeprom
  • sysi.c: this platform's onlp_sysi_platform_info_get doesn't use onlp_onie_info_t

Test plan

  • onlpm --force --build onl-platform-modules-x86-64-accton-as5835-54x:amd64 — produces .deb containing fan.ko / psu.ko / leds.ko / cpld.ko under /lib/modules/6.12.73-OpenNetworkLinux/onl/accton/x86-64-accton-as5835-54x/
  • onlpm --force --build onlp-x86-64-accton-as5835-54x-r0:amd64 — produces libonlp-x86-64-accton-as5835-54x.so
  • onlpm --force --build onl-platform-config-x86-64-accton-as5835-54x-r0:amd64 — OK
  • DUT install + onlpdump smoke test (pending HW access)

🤖 Generated with Claude Code

- modules/PKG.yml, modules/builds/Makefile: use
  onl-kernel-6.12-lts-x86-64-all
- platform-config r0 yml: kernel anchor *kernel-6-12
- cpld/psu/fan: i2c_driver.probe() single-arg signature, use
  i2c_client_get_device_id() where the device id was consumed
- leds: platform_driver.remove() returns void per kernel 6.11+ API

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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