Miroslav Ondra [Wed, 5 Sep 2018 12:47:25 +0000 (14:47 +0200)]
refactor board detection in spi probe
Miroslav Ondra [Wed, 5 Sep 2018 09:36:30 +0000 (11:36 +0200)]
format cdev debug messages
clean old code
Miroslav Ondra [Wed, 5 Sep 2018 09:17:29 +0000 (11:17 +0200)]
move io definitions from unipi_spi.h to iio.h and iio.c
Miroslav Ondra [Wed, 5 Sep 2018 09:08:37 +0000 (11:08 +0200)]
move chardev private data from h to unipi_spi.c
remove duplicate structure in neuronspi_file_data (global neuronspi_s_dev)
Miroslav Ondra [Wed, 5 Sep 2018 08:31:56 +0000 (10:31 +0200)]
uart unused code cleaning, debug message formating
Miroslav Ondra [Wed, 5 Sep 2018 08:08:14 +0000 (10:08 +0200)]
moved interrupt handling from uart to spi (primary_worker)
changed polled mode interrupt from thread to hrtimer
set variables probe_always_succeeds, always_create_uart as local to probe function
cleaning unused code
Miroslav Ondra [Tue, 4 Sep 2018 17:08:03 +0000 (19:08 +0200)]
refactor iio initialization
Miroslav Ondra [Tue, 4 Sep 2018 12:14:01 +0000 (14:14 +0200)]
refactor platform, led, sysfs initialization
Miroslav Ondra [Mon, 3 Sep 2018 20:40:04 +0000 (22:40 +0200)]
add hrtimer to schedule tx_proc and to monitor tx_fifo
Miroslav Ondra [Tue, 28 Aug 2018 10:18:08 +0000 (12:18 +0200)]
changed neuronspi_spi_send_message to neuronspi_spi_send_op using structured buffers
buffers for spi_transfer are aligned (using unaligned buffers caused unexpected memory change)
support for crc calc in neuronspi_spi_send_op
changed uart behavior - checking tx queue, rx ordering
fixed regmap
Tom Knot [Tue, 14 Aug 2018 17:22:23 +0000 (19:22 +0200)]
Added missing extern declaration
Tom Knot [Tue, 14 Aug 2018 16:09:26 +0000 (18:09 +0200)]
Updated versionstring
Tom Knot [Tue, 14 Aug 2018 16:02:57 +0000 (18:02 +0200)]
Added locking behaviour to prevent byte swapping due to UART/SPI asynchronousness
Tom Knot [Mon, 6 Aug 2018 14:55:47 +0000 (16:55 +0200)]
Added always-create-tty flag
Miroslav Ondra [Thu, 2 Aug 2018 20:00:28 +0000 (22:00 +0200)]
fixed module version
fixed processing on-boot undefined boards
fixed raspbian script
Miroslav Ondra [Thu, 2 Aug 2018 10:03:41 +0000 (12:03 +0200)]
rewrite line discipline to be compatible with PARMRK
fixed ioctl timeout settings for 32b calling on 64bit system (compat_ioctl)
Miroslav Ondra [Fri, 20 Jul 2018 02:12:38 +0000 (04:12 +0200)]
fixed debug message
Tom Knot [Thu, 19 Jul 2018 14:32:19 +0000 (16:32 +0200)]
Merge branch 'uart_timeout'
Tom Knot [Thu, 19 Jul 2018 14:31:58 +0000 (16:31 +0200)]
Updated version format
Tom Knot [Thu, 19 Jul 2018 14:07:23 +0000 (16:07 +0200)]
Merge branch 'uart_timeout'
Tom Knot [Thu, 19 Jul 2018 14:06:20 +0000 (16:06 +0200)]
Further renaming to the new naming scheme
Tom Knot [Wed, 18 Jul 2018 10:51:47 +0000 (12:51 +0200)]
- Changed Neuron to UniPi where appropriate
- Swapped version format to YYYY:MM:DD
Miroslav Ondra [Mon, 16 Jul 2018 07:45:10 +0000 (09:45 +0200)]
fixed script raspbian
Miroslav Ondra [Mon, 16 Jul 2018 07:42:23 +0000 (09:42 +0200)]
fixed script raspbian to reflect incorrect tag setting
Tom Knot [Mon, 9 Jul 2018 09:30:21 +0000 (11:30 +0200)]
Fixed a small syntax mistake
Tom Knot [Mon, 9 Jul 2018 09:25:13 +0000 (11:25 +0200)]
Fixed mixed declaration
Tom Knot [Mon, 9 Jul 2018 09:22:57 +0000 (11:22 +0200)]
Fixed secondary AO
Tom Knot [Wed, 4 Jul 2018 13:26:29 +0000 (15:26 +0200)]
Fixed ai current unit
Tom Knot [Wed, 4 Jul 2018 13:22:26 +0000 (15:22 +0200)]
Removed 64bit division
Tom Knot [Wed, 4 Jul 2018 13:20:24 +0000 (15:20 +0200)]
Fixed remainders and resistance units
Tom Knot [Wed, 4 Jul 2018 13:15:04 +0000 (15:15 +0200)]
Added debug print to current
Tom Knot [Wed, 4 Jul 2018 13:09:59 +0000 (15:09 +0200)]
Changed scaling to mA
Tom Knot [Wed, 4 Jul 2018 13:03:14 +0000 (15:03 +0200)]
Changed computation for current output
Tom Knot [Wed, 4 Jul 2018 12:56:22 +0000 (14:56 +0200)]
- Removed debug prints
- Fixed division by zero
Tom Knot [Wed, 4 Jul 2018 12:41:12 +0000 (14:41 +0200)]
Fixed offset for stm analog
Tom Knot [Wed, 4 Jul 2018 12:37:22 +0000 (14:37 +0200)]
- Added division by 10
- Added debug prints
Tom Knot [Wed, 4 Jul 2018 12:11:34 +0000 (14:11 +0200)]
Removed secondary ao mode (as it is always voltage)
Tom Knot [Wed, 4 Jul 2018 10:49:06 +0000 (12:49 +0200)]
Renamed analog attribute modes
Tom Knot [Tue, 3 Jul 2018 19:17:47 +0000 (21:17 +0200)]
Fixed a trivial syntax mistake
Tom Knot [Tue, 3 Jul 2018 19:15:21 +0000 (21:15 +0200)]
Swapped floating point byte order when reading from Modbus
Tom Knot [Fri, 29 Jun 2018 09:22:27 +0000 (11:22 +0200)]
Fixed small syntax mistake
Tom Knot [Fri, 29 Jun 2018 09:21:24 +0000 (11:21 +0200)]
Fixed wrong datatype for irq flags
Tom Knot [Fri, 29 Jun 2018 09:12:03 +0000 (11:12 +0200)]
- Added further locks
- c_iflags hopefully does not get set
Tom Knot [Wed, 27 Jun 2018 16:15:18 +0000 (18:15 +0200)]
- Changed module description to be more accurate
- Removed unnecessary counting of work invocation (work is only allowed to be queued once)
- Removed superfluous flags declaration
Tom Knot [Wed, 27 Jun 2018 15:37:58 +0000 (17:37 +0200)]
Added more spinlocks to TX_PROC
Tom Knot [Wed, 27 Jun 2018 15:06:38 +0000 (17:06 +0200)]
Fixed input values being badly backcopied into regmap
Tom Knot [Wed, 27 Jun 2018 14:56:17 +0000 (16:56 +0200)]
Cleaned up stray spinlock sleep
Tom Knot [Wed, 27 Jun 2018 13:43:47 +0000 (15:43 +0200)]
Added a forgotten irqrestore
Tom Knot [Wed, 27 Jun 2018 13:24:18 +0000 (15:24 +0200)]
Added interrupt saving for all spinlocks
Tom Knot [Wed, 27 Jun 2018 12:59:11 +0000 (14:59 +0200)]
Added internal locking for tx_proc
Tom Knot [Wed, 27 Jun 2018 12:46:16 +0000 (14:46 +0200)]
- Short refactoring
- UART TX log is marked order-wise
Tom Knot [Wed, 27 Jun 2018 12:19:09 +0000 (14:19 +0200)]
Changed mutex back to spinlock for tx_lock
Tom Knot [Wed, 27 Jun 2018 12:16:59 +0000 (14:16 +0200)]
Restored functions with incompatible signature to the null function
Tom Knot [Wed, 27 Jun 2018 12:11:20 +0000 (14:11 +0200)]
Added debug print to set_termios
Tom Knot [Wed, 27 Jun 2018 11:30:58 +0000 (13:30 +0200)]
Removed unnecessary empty serial functions
Tom Knot [Wed, 27 Jun 2018 11:25:41 +0000 (13:25 +0200)]
Minor refactoring
Tom Knot [Tue, 26 Jun 2018 12:14:55 +0000 (14:14 +0200)]
- Cleaned up one static declaration and removed a few superfluous data structures
- Reduced TX work limit to 4
Tom Knot [Mon, 25 Jun 2018 19:06:18 +0000 (21:06 +0200)]
Added appropriate unlocks to the previous spinlock
Tom Knot [Mon, 25 Jun 2018 19:02:00 +0000 (21:02 +0200)]
Manually hold the port TX lock
Tom Knot [Mon, 25 Jun 2018 18:47:37 +0000 (20:47 +0200)]
Added further UART debugging messages
Tom Knot [Mon, 25 Jun 2018 18:32:30 +0000 (20:32 +0200)]
- Made generic files world-visiable
- Added debugging print to UART TX work
Tom Knot [Mon, 25 Jun 2018 17:12:21 +0000 (19:12 +0200)]
Moved spi_message off stack
Tom Knot [Mon, 25 Jun 2018 16:33:54 +0000 (18:33 +0200)]
Replaced GFP_KERNEL with GFP_ATOMIC
Tom Knot [Mon, 25 Jun 2018 13:31:51 +0000 (15:31 +0200)]
TEST: Added spinlock to uart_write_wakeup
Tom Knot [Mon, 25 Jun 2018 12:20:41 +0000 (14:20 +0200)]
- Added better handling of long TTY packets
- SYSFS register access improved and expanded
Tom Knot [Thu, 14 Jun 2018 14:09:24 +0000 (16:09 +0200)]
Activated UART debug
Tom Knot [Thu, 14 Jun 2018 13:51:54 +0000 (15:51 +0200)]
Fixed warning
Tom Knot [Thu, 14 Jun 2018 13:48:26 +0000 (15:48 +0200)]
Added UART timeout SYSFS properties
Tom Knot [Thu, 14 Jun 2018 10:01:17 +0000 (12:01 +0200)]
Merge branch 'master' of 86.49.170.141:3000/UniPi/neuron-kernel
# Conflicts:
# modules/unipi/src/unipi_uart.c
# version.txt
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider
Miroslav Ondra [Thu, 14 Jun 2018 09:51:55 +0000 (11:51 +0200)]
Merge
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider
Tom Knot [Thu, 14 Jun 2018 09:22:02 +0000 (11:22 +0200)]
Added debug prints for line discipline
Tom Knot [Thu, 14 Jun 2018 08:53:36 +0000 (10:53 +0200)]
- Changed UART startup ignore to proceed correctly if it cannot finish
- Version 0.12
Tom Knot [Wed, 6 Jun 2018 16:16:15 +0000 (18:16 +0200)]
Fixed analog mode configuration via SYSFS
Tom Knot [Mon, 28 May 2018 15:00:38 +0000 (17:00 +0200)]
Added Axon model definitions
Tom Knot [Mon, 28 May 2018 14:04:26 +0000 (16:04 +0200)]
Added SYSFS support for LEDs > 4
Tom Knot [Tue, 22 May 2018 14:28:27 +0000 (16:28 +0200)]
Updated versioning hooks
Tom Knot [Mon, 21 May 2018 17:02:18 +0000 (19:02 +0200)]
Updated versioning hooks
Tom Knot [Mon, 21 May 2018 15:46:40 +0000 (17:46 +0200)]
Added versioning hooks
Tom Knot [Fri, 18 May 2018 13:43:11 +0000 (15:43 +0200)]
Quick fix for the previous commit
Tom Knot [Fri, 18 May 2018 11:53:22 +0000 (13:53 +0200)]
Version 0.08
- Changed reading frequency to be user-specifiable (1-1000 Hz)
Tom Knot [Wed, 16 May 2018 12:11:54 +0000 (14:11 +0200)]
Switched fast_io off, as it could cause resource starvation issues
Tom Knot [Thu, 10 May 2018 13:28:13 +0000 (15:28 +0200)]
Fixed LINEDISCIPL return value and SYSFS counter byte order
Tom Knot [Mon, 30 Apr 2018 12:12:44 +0000 (14:12 +0200)]
Updated to 0.07
- Cleaned up possible conflicts when running system queries and starting flashing process at the same time
- Added TTY driver code, which is inactive for now as Mervis is not able to properly use it for unknown reasons
- Fixed sched include properly
Miroslav Ondra [Thu, 19 Apr 2018 18:49:02 +0000 (20:49 +0200)]
removed misc/link_sysfs
Tom Knot [Mon, 16 Apr 2018 10:43:36 +0000 (12:43 +0200)]
Added missing return code to neuron_spi_send_message
Tom Knot [Mon, 16 Apr 2018 10:41:30 +0000 (12:41 +0200)]
Minor fixes:
- Added version string to SYSFS
- Error code for direct SPI reads
- Model names should now correspond to DB names
Tom Knot [Fri, 13 Apr 2018 15:18:29 +0000 (17:18 +0200)]
Restored macro for sched include
Tom Knot [Mon, 9 Apr 2018 10:05:16 +0000 (12:05 +0200)]
- Added MWD status into the regstart generation function
- Registers not found by regstart set to 0 instead of -1
- Removed commented-out prints in unipi_platform.c
Tom Knot [Mon, 9 Apr 2018 10:03:49 +0000 (12:03 +0200)]
Cleaned up kernel prints
Tom Knot [Mon, 9 Apr 2018 09:57:50 +0000 (11:57 +0200)]
Fixed GPIOs running out due to not being packed tightly in the namespace
Tom Knot [Thu, 5 Apr 2018 14:06:37 +0000 (16:06 +0200)]
Updated version string and added an empty (for now) TTY module
Tom Knot [Thu, 5 Apr 2018 14:04:50 +0000 (16:04 +0200)]
Allowed overriding frequency settings with _lower_ frequency even for analog modules, and reduced maximum frequency to 7.5Mhz
Tom Knot [Thu, 22 Mar 2018 11:08:06 +0000 (12:08 +0100)]
Update for FW 5.10 (UART speed), removed some extraneous prints as well
Tom Knot [Mon, 12 Mar 2018 12:43:10 +0000 (13:43 +0100)]
Updated Eclipse project
Tom Knot [Thu, 8 Mar 2018 12:17:30 +0000 (13:17 +0100)]
Updated version string and correct return value for unimplemented UART ioctl.
Tom Knot [Wed, 7 Mar 2018 10:19:59 +0000 (11:19 +0100)]
Fixed possible memory leaks in the Line Discipline and Line Markings messages
Tom Knot [Mon, 5 Mar 2018 20:28:49 +0000 (21:28 +0100)]
Slightly cleaned up imports