summaryrefslogtreecommitdiff
path: root/module/can327.c
AgeCommit message (Collapse)Author
2023-08-01Guard hacks for Linux < v6.0 with #ifdefsnorly
Also comment on the upstream commits which made them unnecessary.
2023-08-01Align code style with first upstream in Linux v6.0norly
2022-06-18Don't kfree_skb() after submitting the repurposed SKBnorly
If can327 locks up your machine, but only in very specific situations, this is probably why. The memory leak fix went too far, and I missed the call to can327_feed_frame_to_netdev() before a return -ENODATA. Fixes: 37111be717212b8c7779978c0385393c2d51747d
2022-06-18Rename elm327_* to can327_*norly
2022-06-12Don't count RTR DLC as sent bytesnorly
RTR frames don't actually carry data, so bytes sent is 0.
2022-06-11Re-align buffers, make RX buffer a power of twonorly
2022-06-11Remove CAN specific LED codenorly
This is now handled by common netdev LED events instead: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=6c1e423a3c84953edcf91ff03ab97829b287184a
2022-06-11elm327_init: Update old comment referencing bittiming_constnorly
This has been gone since a44b237ce7e9 in 2019.
2022-06-11Remove fixed array size for can327_bitrate_constnorly
No idea why this was even there.
2022-06-11Stop leaking SKBs in elm327_parse_frame()norly
SKBs need to be used or freed before returning, no exceptions.
2022-06-11Remove unused includesnorly
2022-06-06Increase ELM327_SIZE_RXBUF to support fat UART buffersnorly
See: https://github.com/norly/elmcan/issues/8 There, a VM was used, and apparently buffers of over 256 bytes were being piped in.
2022-06-06On RX buffer overflow, printk remaining input sizenorly
If can327_ldisc_rx() is called with a large 'count' because the UART driver feeds us huge buffers, then the user should have a chance to know and report this. In this case, we'll have to increase ELM327_SIZE_RXBUF.
2022-06-06Fix compilation on Linux up to v5.4norly
mailbox_read()'s type signature was changed in 4e9c9484b085 which is upstream since v5.5.
2022-05-31Accelerate parsing by not re-checking previous datanorly
While waiting for a <CR> the code would search through prevois received characters, too. Keep track of what we've already checked to speed this up.
2022-05-31Speed up can327_is_valid_rx_char() with a LUTnorly
2022-05-31Make elm327_rxbuf_cmp() return boolnorly
2022-05-31Simplify/clarify branching and locking in several placesnorly
2022-05-19Don't ____cacheline_aligned the TX buffernorly
TTY drivers don't seem to care, and if they did, we'd likely have to kmalloc() as before anyway.
2022-05-19Style and comments cleanupnorly
2022-05-12Rename elmcan to can327norly
This is to clarify that this driver is not a product of ELM Electronics.