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

Update for 5.16+ kernels #20

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Conversation

dimich-dmb
Copy link

Fixed compilation and link errors;
Adapted for gpiod usage;
Fixed interrupt handler warning.

@UncleGrumpy
Copy link

Not a good sign that all activity on this repo stopped in Jan 2018... some of these pull requests have been here for two years... dimich-dmb your repo is by far the most current. There are several people in the pine64 community hacking on this driver for a usb-lora adapter. Would you consider opening up issues and taking pull request from your fork? I know its a big ask, but at least you could have help and we could have a usable driver moving forward.

@dimich-dmb
Copy link
Author

Hi @UncleGrumpy. I enabled issues tracking for the forked repo. Pull requests are enabled by default, i guess.
I don't apply to permanent maintaining of the driver but let's see how can we improve it. You are welcome.

Fixed CS release after first chunk transferred.
Implemeted transfer_one_message() (mostly copy-pasted from the kernel).
CS is managed for all transfers in a single message.
A little optimization and bugfixes.
Fixed CPHA bug in bitbang implementation.
Since SCK is shared, proper SCK idle state must be set before each
transfer. Since SCK is idle after tranfer, don't change it if previous
transfer had same CPOL.

As SCK is
Signed-off-by: Dmytro Bagrii <[email protected]>
BergLucas and others added 2 commits December 24, 2023 10:51
* Fix compilation error for kernels < 6.4
* Fix installation error with DKMS
* Fix dkms remove
* Include proper headers according to version
* Use "new" gpiod API for export/unexport

Signed-off-by: Dmytro Bagrii <[email protected]>
Fixed "no previous prototype" warnings
Added disclaimer

Signed-off-by: Dmytro Bagrii <[email protected]>
Trimmed trailing spaces

Signed-off-by: Dmytro Bagrii <[email protected]>
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.

3 participants