Skip to content

Fix build issues for ADSP boards after kernel bump from 6.12 to 6.18#3338

Closed
ozan956 wants to merge 6 commits into
adsp-6.18.31-yfrom
adi-gpio-fix
Closed

Fix build issues for ADSP boards after kernel bump from 6.12 to 6.18#3338
ozan956 wants to merge 6 commits into
adsp-6.18.31-yfrom
adi-gpio-fix

Conversation

@ozan956
Copy link
Copy Markdown

@ozan956 ozan956 commented May 25, 2026

The changes address two API mismatches surfaced by the newer kernel:

  • update the ADI ADSP GPIO driver to match the current gpio_chip.set callback signature
  • replace legacy from_timer() usage in the ADI MUSB glue driver with timer_container_of()

These fixes restore successful builds for ADSP board configurations and unblock CI. No functional change is intended.

The gpio_chip.set callback now expects an int return value, but
adsp_gpio_set_value() still returns void. This causes a build failure
when assigning the callback to struct gpio_chip.set.

Update adsp_gpio_set_value() to return int and return 0 after
programming the GPIO state. No functional change is intended.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
@ozan956 ozan956 self-assigned this May 25, 2026
Newer kernels use timer_container_of() for timer callback container
lookup, while from_timer() has been renamed as part of the timer API
cleanup.

Update the ADI MUSB glue driver to use timer_container_of() in
musb_conn_timer_handler(). This matches the current timer API and is
consistent with other in-tree MUSB drivers using dev_timer callbacks.

This fixes the build failure seen on newer kernels where from_timer()
is no longer available. No functional change intended.

Link: https://lore.kernel.org/all/aB2X0jCKQO56WdMt@gmail.com/

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
@ozan956 ozan956 changed the title gpio: adi-adsp-port: make set callback return int Fix build issues after kernel bump from 6.12 to 6.18 May 25, 2026
@ozan956 ozan956 changed the title Fix build issues after kernel bump from 6.12 to 6.18 Fix build issues for ADSP boards after kernel bump from 6.12 to 6.18 May 25, 2026
@ozan956 ozan956 added this to ADSP May 25, 2026
@ozan956 ozan956 requested a review from pamolloy May 25, 2026 13:32
@ozan956 ozan956 moved this to In Development in ADSP May 25, 2026
Allow the ADI MUSB driver to be built with COMPILE_TEST so it can
be compile-checked by CI without requiring a target.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
@ozan956
Copy link
Copy Markdown
Author

ozan956 commented May 25, 2026

not sure on 753da5b

@ozan956 ozan956 requested review from a team and gastmaier May 25, 2026 14:25
@CalebEthridgeADI
Copy link
Copy Markdown

not sure on 753da5b

I would make it explicitly depend on COMPILE_TEST so we avoid a potential footgun in the future when adding new platforms.

@ozan956
Copy link
Copy Markdown
Author

ozan956 commented May 26, 2026

not sure on 753da5b

I would make it explicitly depend on COMPILE_TEST so we avoid a potential footgun in the future when adding new platforms.

Thanks @CalebEthridgeADI, agreed. I switch to else if to just specify COMPILE_TEST.

ozan956 added 3 commits May 26, 2026 14:08
A COMPILE_TEST build can now enable the ADI MUSB driver without
also building the platform-specific provider of set_spu_securep_msec(),
which causes a modpost undefined symbol failure.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
Allow the ADI ADSP PORT GPIO driver to be built with COMPILE_TEST so
it can be compile-checked by CI without requiring a target.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
Allow the ADI ADSP PINT irqchip driver to be built with COMPILE_TEST
so it can be compile-checked by CI without requiring a target.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
@pamolloy
Copy link
Copy Markdown
Collaborator

Jorge has did a bunch of clean-up at the end of last week in #3332. He's converting it from fixups to commits. Then this can be rebased on that once it has been merged

@ozan956
Copy link
Copy Markdown
Author

ozan956 commented May 26, 2026

Jorge has did a bunch of clean-up at the end of last week in #3332. He's converting it from fixups to commits. Then this can be rebased on that once it has been merged

oh, it covers everything I did then. will close this one. thanks for notifying

@ozan956 ozan956 closed this May 26, 2026
@github-project-automation github-project-automation Bot moved this from In Development to Done in ADSP May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants