projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
120cef3
)
Re-align buffers, make RX buffer a power of two
author
norly
<ny-git@enpas.org>
Sat, 11 Jun 2022 17:29:31 +0000
(19:29 +0200)
committer
norly
<ny-git@enpas.org>
Sat, 11 Jun 2022 17:29:31 +0000
(19:29 +0200)
module/can327.c
patch
|
blob
|
history
diff --git
a/module/can327.c
b/module/can327.c
index 7391e9d6bf53c73ab6654ad9e67ea2dea27a1fe7..799905fd2d29fc4fa48fa3e96c03f8e08bd11b25 100644
(file)
--- a/
module/can327.c
+++ b/
module/can327.c
@@
-52,8
+52,8
@@
#define ELM327_NAPI_WEIGHT 4
-#define ELM327_SIZE_RXBUF 992
#define ELM327_SIZE_TXBUF 32
+#define ELM327_SIZE_RXBUF 1024
#define ELM327_CAN_CONFIG_SEND_SFF 0x8000
#define ELM327_CAN_CONFIG_VARIABLE_DLC 0x4000
@@
-84,8
+84,8
@@
struct can327 {
struct can_rx_offload offload;
/* TTY buffers */
- u8 rxbuf[ELM327_SIZE_RXBUF];
u8 txbuf[ELM327_SIZE_TXBUF];
+ u8 rxbuf[ELM327_SIZE_RXBUF];
/* Per-channel lock */
spinlock_t lock;