Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optoe driver compilation fails with Linux kernel 6.1.55 #24

Open
SLLU77 opened this issue Jul 29, 2024 · 8 comments
Open

Optoe driver compilation fails with Linux kernel 6.1.55 #24

SLLU77 opened this issue Jul 29, 2024 · 8 comments

Comments

@SLLU77
Copy link

SLLU77 commented Jul 29, 2024

Optoe driver compilation fails with Linux kernel 6.1.55. Would you provide a patch to correct the issue?

@layman6666
Copy link

layman6666 commented Jul 29, 2024 via email

1 similar comment
@layman6666
Copy link

layman6666 commented Oct 12, 2024 via email

@rasatpetabit
Copy link

Seeing the same thing... Looks like they killed off the old i2c_new_dummy() API, which seems to have been worked on in optoe at some point:

#ifdef LATEST_KERNEL
optoe->optoe_dummy.client =
devm_i2c_new_dummy_device(dev, client->adapter, 0x51);
#else
optoe->optoe_dummy.client =
i2c_new_dummy(client->adapter, 0x51);
#end

But turning on LATEST_KERNEL causes a bunch of other issues, seems like this is rather bitrotted in new kernels.

@rasatpetabit
Copy link

Looks like Linux got rid of devm_nvmem_unregister()... Turning on LATEST_KERNEL and removing all of those references in optoe as well seems to get the job done, but I have no idea if that's the proper way to do it. :)

@donboll
Copy link
Contributor

donboll commented Oct 12, 2024 via email

@donboll
Copy link
Contributor

donboll commented Oct 14, 2024 via email

@insekt
Copy link

insekt commented Oct 21, 2024

Hi Don @donboll ,
I'm sorry for the off-topic.

Consider this my formal retirement from this project.

I just want to express my deep gratitude to you for this project. It helped me a lot with my hobby projects.

@donboll
Copy link
Contributor

donboll commented Oct 25, 2024 via email

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

No branches or pull requests

5 participants