Skip to content

Update for 5.16+ kernels#20

Open
dimich-dmb wants to merge 33 commits into
gschorcht:masterfrom
dimich-dmb:master
Open

Update for 5.16+ kernels#20
dimich-dmb wants to merge 33 commits into
gschorcht:masterfrom
dimich-dmb:master

Conversation

@dimich-dmb

Copy link
Copy Markdown

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

@UncleGrumpy

Copy link
Copy Markdown

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
Copy Markdown
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 <dimich.dmb@gmail.com>
Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
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 <dimich.dmb@gmail.com>
Fixed "no previous prototype" warnings
Added disclaimer

Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Trimmed trailing spaces

Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.com>
Removed redundant macro

Signed-off-by: Dmytro Bagrii <dimich.dmb@gmail.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.

3 participants