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

Fix for build on 5.4.+ kernels #16

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4e3d6e4
Fix for build on 5.4.+ kernels
rogerjames99 Jul 31, 2020
670839f
Fix for 5.4.+ kernels
rogerjames99 Jul 31, 2020
151d99b
Should honor cs_change bit
geeksville Oct 31, 2020
6546e57
Fix #5: EBUSY was being returned on any attempt to set GPIOs
geeksville Oct 31, 2020
ddb745d
1.0.1 make default poll rate 100ms for much lower CPU burn
geeksville Oct 31, 2020
3ad7817
Add device ID for the pinetab LORA module
geeksville Dec 13, 2020
22345a9
turn on debugging and make number of GPIOs a bit more flexible
geeksville Dec 15, 2020
49b9afd
allow zero length SPI transactions (so users can easily deassert CS)
geeksville Dec 31, 2020
d5433b3
use modern nested irq API to build with 5.11.x kernels
geeksville Apr 16, 2021
59001e2
Ugly WIP to fix for recent (>5.10) kernels
geeksville Apr 19, 2021
67ea927
WIP - change to new status API
geeksville Apr 21, 2021
327618f
fix gpio read permissions for all the new signals
geeksville Apr 22, 2021
0d3695f
cleanup spi device unregister
geeksville Apr 22, 2021
b039196
properly preserve CS settings if user writes to those pins.
geeksville Apr 22, 2021
ee2ebe4
more debug output
geeksville Apr 22, 2021
65f7ba8
FIX MOSI/SCK driving
geeksville Apr 22, 2021
bf6349a
fix bogus rising IRQ notifications
geeksville Apr 23, 2021
9b1641e
don't let thread stay running after our datastructures leave RAM
geeksville Apr 23, 2021
ff217b4
better debug output
geeksville Apr 23, 2021
7fd283f
add write access to RESET pin (and others)
geeksville Apr 27, 2021
17d032e
better pin name for ini
geeksville Apr 27, 2021
2026e42
improvements for CPOL management
geeksville Apr 28, 2021
4e14c06
SCK now properly left low when idle
geeksville Apr 28, 2021
96f80f1
don't improperly drive MOSI
geeksville Apr 28, 2021
cc6c8c1
don;t generate nop CS USB operations
geeksville Apr 28, 2021
bc2f691
less logspam
geeksville Apr 28, 2021
6c10923
less logspam
geeksville May 3, 2021
8df3fbe
Merge pull request #1 from geeksville/master
rogerjames99 Jul 16, 2021
cfb61d0
Update README.md
gschorcht Oct 23, 2021
6788a20
Remove call to spi_busnum_to_master()
JF002 Apr 9, 2022
421394c
Merge pull request #2 from JF002/remove-calls-to-spi_busnum_to_master
rogerjames99 Jul 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Five of the data pins can be configured as GPIO pins if they are not used for th
| Pin | Name | SPI Function (default) | Configurable as (**CH341 default in bold face**) |
| --- | ---- | ---------------------- | ------------------ |
| 15 | D0 | CS0 | Input, Output, **CS** |
| 16 | D1 | CS0 | Input, Output, **CS** |
| 17 | D2 | CS0 | Input, Output, **CS** |
| 16 | D1 | CS1 | Input, Output, **CS** |
| 17 | D2 | CS2 | Input, Output, **CS** |
| 19 | D4 | OUT2 | Input, **Output** |
| 21 | D6 | IN2 | **Input** |

Expand Down
4 changes: 2 additions & 2 deletions dkms.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PACKAGE_NAME=spi-ch341-usb
PACKAGE_VERSION="1.0.0"

MAKE[0]="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"

BUILT_MODULE_NAME[0]=spi-ch341-usb
#DEST_MODULE_LOCATION[0]=/kernel/drivers/spi
Expand Down
Loading