Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-12 | Replace ->can_dlc with ->len | norly | |
can_frame.can_dlc has been deprecated in favour of can_frame.len and as a new driver, this needs to stick to the new convention. Also include the ugliest backwards hack #define I've ever written to make this compile on Linux <= 5.10 which is currently LTS. | |||
2022-03-12 | elmcan_netdev_start_xmit(): Remove unnecessary skb->len check | norly | |
linux/net/can/af_can.c's can_send() guarantees this already. | |||
2022-03-12 | Use alloc_can_skb() | norly | |
2022-03-12 | Rename TODO_* to ELM327_TX_DO_* | norly | |
Also rename elm->can_frame to elm->can_frame_to_send | |||
2022-03-07 | Mark {_len,}_memstrcmp inline | norly | |
2022-03-07 | Change MAGIC to DUMMY, and silence init | norly | |
2022-03-07 | Remove switch() in elm327_parse_error() | norly | |
This gets rid of the last hardcoded string lengths. | |||
2022-03-04 | Change N_ELMCAN to N_DEVELOPMENT | norly | |
N_DEVELOPMENT is slated to be defined for out-of-tree ldisc modules. | |||
2022-02-10 | Remove accept_flaky_uart module option. | norly | |
Maybe we really shouldn't *too* lenient - the hexdump parsing code bails on the first strange character anyway. | |||
2022-02-10 | Introduce _memstrcmp() to beautify elm327_parse_error() | norly | |
Also used in elm327_parse_frame() and elm327_parse_line() | |||
2022-02-10 | Improve error handling in case of stray characters | norly | |
2022-02-10 | Remove superfluous lines | norly | |
2022-02-10 | Clean up comments | norly | |
2022-02-10 | Forward port to Linux v5.17-rc3 | norly | |
...while keeping backwards compatibility, tested on v5.10. | |||
2022-02-05 | Clean up more strings | norly | |
2022-02-05 | Change WARN_ON into WARN_ON_ONCE | norly | |
2022-02-05 | Add BSD-3-Clause licence | norly | |
2022-02-05 | Convert RX path to NAPI via can_rx_offload_* | norly | |
2022-01-16 | Clarify some error texts and return values | norly | |
2021-10-22 | Remove TTY_LDISC_MAGIC | norly | |
This is in sync with upstream 981b22b8777df7de070be1803f6d7ed4f634a43c which removed .magic from struct tty_ldisc_ops in Linux 5.13. | |||
2021-05-17 | Adds dkms.conf to sign kernel module | Tomasz | |
2019-06-10 | Style: According to linux-5.2-rc4 checkpatch.pl | norly | |
2019-06-10 | Flush worker earlier, resolving the last to-do item. | norly | |
2019-06-01 | Undo buffer rework for TTY RX | norly | |
Actually, we fully control the RX buffer, so DMA shouldn't be a concern. Fixes: 40ac32acdae89383ae44f32e612bf37fa0493631 | |||
2019-06-01 | Style: Fix one more block comment | norly | |
2019-05-31 | Separate buffers from struct elm | norly | |
This avoids trouble with CPU caches racing DMA accesses on ARM. | |||
2019-05-30 | Style: Fix big comments | norly | |
2019-02-28 | Silence unused parameter in elmcan_do_set_bittiming() | norly | |
2019-02-25 | Extract RX sanity checker into separate function | norly | |
2019-02-25 | Comments | norly | |
2019-02-25 | Avoid return in function bodies | norly | |
2019-02-25 | Use can_change_mtu() instead of hand-made function | norly | |
2019-02-19 | Comments and minor style | norly | |
2019-02-19 | Turn BUG_ON() into WARN_ON() | norly | |
2019-02-19 | Style: Move elm327_is_ready_char() further down to where it is used | norly | |
2019-02-19 | Simplify init script sending | norly | |
My problems with initializing the chip should now be solved by the 'accept_flaky_uart' module parameter. | |||
2019-02-19 | ioctl(SIOCGIFNAME): Copy at most IFNAMSIZ bytes, but less if possible | norly | |
Thus, we don't leak any trailing bytes that may be in the name buffer. | |||
2019-02-19 | Always copy IFNAMSIZ bytes on ioctl(SIOCGIFNAME) | norly | |
Just in case dev->name is ever not NUL terminated | |||
2019-02-19 | Remove stray spin_lock_bh() | norly | |
2019-02-19 | Style fixes | norly | |
2019-02-19 | Synchronize email addresses | norly | |
2019-02-19 | Fix up stray comments now that we have elm327_is_ready_char() | norly | |
2019-02-19 | Sanity check TTY input and bail on problems | norly | |
Also, introduce module parameter 'accept_flaky_uart'. If your adapter or its connection is unreliable, set this option to true to try and make the best of a bad situation, but undefined behavior is prone to occur. | |||
2019-02-19 | Ignore tty RX after HW failure, locking fix | norly | |
2019-02-18 | Work around hardware bug when waiting for '>' prompt | norly | |
Sometimes the ELM327 sets 0x80 and/or 0x40 when sending '>' to indicate that it is ready to receive the next command. Masking these two bits out seems to take care of most or all hangs during initialization. | |||
2019-02-18 | Shut down ELM327's 'protocol' before reconfiguring CAN | norly | |
According to ELM327's manual, AT PC should be sent before issuing AT PB. | |||
2019-02-18 | Drop fake bittimings in favor of bitrate table | norly | |
The fake bittiming table produces wrong results in Linux 4.19's bitrate based parameter calculation. SocketCAN support for fixed bitrates was introduced in 431af779256c in Jan 2017, and as of Linux 4.18 the only driver using it is mcba_usb. Bitrates are also fixed in ELM327, and none of the other parameters can be tuned, so using this API makes sense here as well. | |||
2019-02-18 | Improve readability of elm327_handle_prompt() | norly | |
2019-02-18 | Null stack variables before use | norly | |
2019-02-18 | Don't try to send garbage after each init script entry | norly | |
Previously, we'd try to send the local txbuf even though it had not been written to. Thus strlen() would overrun the buffer, which recent Linux versions catch in a BUG_ON(). |