Skip to content

Accton AS4610: let the CPLD driver handle sub devices#963

Merged
sonoble merged 3 commits intoopencomputeproject:masterfrom
bisdn:jogo_as4610_cpld_subdrivers
May 14, 2024
Merged

Accton AS4610: let the CPLD driver handle sub devices#963
sonoble merged 3 commits intoopencomputeproject:masterfrom
bisdn:jogo_as4610_cpld_subdrivers

Conversation

@KanjiMonster
Copy link
Contributor

Properly let the CPLD driver manage the LED and CPLD platform devices instead of registering them always in their respective modules.

This avoids registering devices on platforms without the CPLD present, introduces proper ordering of registering the platform devices only after the CPLD driver has finished initializing, and simplifies the drivers significantly.

To make this properly work, also fix the module device table for the FAN driver, and add one for the LED driver.

The FAN device directly depends on the CPLD device, so let it be created
by the CPLD driver. This allows us to convert the FAN driver to a simple
platform driver.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
This is a platform driver, not an I2C driver, so fix and add the id
table to the driver.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
The LED device directly depends on the CPLD device, so let it be created
by the CPLD driver. This allows us to convert the LED driver to a simple
platform driver.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
@KanjiMonster KanjiMonster changed the title accton AS4610: let the CPLD driver handle sub devices Accton AS4610: let the CPLD driver handle sub devices Oct 23, 2023
Copy link
Contributor

@sonoble sonoble left a comment

Choose a reason for hiding this comment

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

Build is successful and runs on the DUTs in my lab

@sonoble sonoble merged commit 800e123 into opencomputeproject:master May 14, 2024
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.

2 participants