graphit/unipi-kernel.git
6 years agofixed primary_worker allocation
Miroslav Ondra [Thu, 6 Sep 2018 17:50:08 +0000 (19:50 +0200)]
fixed primary_worker allocation
fixed uart ports removing
temporary disabled LED, GPIO, IIO subsystem

6 years agocleaned neuronspi_devtype
Miroslav Ondra [Thu, 6 Sep 2018 08:05:47 +0000 (10:05 +0200)]
cleaned neuronspi_devtype
fixed unregistering

6 years agoadd support for detecting Axon models via chip_select of first board
Miroslav Ondra [Wed, 5 Sep 2018 13:19:49 +0000 (15:19 +0200)]
add support for detecting Axon models via chip_select of first board

6 years agorefactor board detection in spi probe
Miroslav Ondra [Wed, 5 Sep 2018 12:47:25 +0000 (14:47 +0200)]
refactor board detection in spi probe

6 years agoformat cdev debug messages
Miroslav Ondra [Wed, 5 Sep 2018 09:36:30 +0000 (11:36 +0200)]
format cdev debug messages
clean old code

6 years agomove io definitions from unipi_spi.h to iio.h and iio.c
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

6 years agomove chardev private data from h to unipi_spi.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)

6 years agouart unused code cleaning, debug message formating
Miroslav Ondra [Wed, 5 Sep 2018 08:31:56 +0000 (10:31 +0200)]
uart unused code cleaning, debug message formating

6 years agomoved interrupt handling from uart to spi (primary_worker)
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

6 years agorefactor iio initialization
Miroslav Ondra [Tue, 4 Sep 2018 17:08:03 +0000 (19:08 +0200)]
refactor iio initialization

6 years agorefactor platform, led, sysfs initialization
Miroslav Ondra [Tue, 4 Sep 2018 12:14:01 +0000 (14:14 +0200)]
refactor platform, led, sysfs initialization

6 years agoadd hrtimer to schedule tx_proc and to monitor tx_fifo
Miroslav Ondra [Mon, 3 Sep 2018 20:40:04 +0000 (22:40 +0200)]
add hrtimer to schedule tx_proc and to monitor tx_fifo

6 years agochanged neuronspi_spi_send_message to neuronspi_spi_send_op using structured buffers
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

6 years agoAdded missing extern declaration
Tom Knot [Tue, 14 Aug 2018 17:22:23 +0000 (19:22 +0200)]
Added missing extern declaration

6 years agoUpdated versionstring
Tom Knot [Tue, 14 Aug 2018 16:09:26 +0000 (18:09 +0200)]
Updated versionstring

6 years agoAdded locking behaviour to prevent byte swapping due to UART/SPI asynchronousness
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

6 years agoAdded always-create-tty flag
Tom Knot [Mon, 6 Aug 2018 14:55:47 +0000 (16:55 +0200)]
Added always-create-tty flag

6 years agofixed module version
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

6 years agorewrite line discipline to be compatible with PARMRK
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)

6 years agofixed debug message
Miroslav Ondra [Fri, 20 Jul 2018 02:12:38 +0000 (04:12 +0200)]
fixed debug message

6 years agoMerge branch 'uart_timeout'
Tom Knot [Thu, 19 Jul 2018 14:32:19 +0000 (16:32 +0200)]
Merge branch 'uart_timeout'

6 years agoUpdated version format
Tom Knot [Thu, 19 Jul 2018 14:31:58 +0000 (16:31 +0200)]
Updated version format

6 years agoMerge branch 'uart_timeout'
Tom Knot [Thu, 19 Jul 2018 14:07:23 +0000 (16:07 +0200)]
Merge branch 'uart_timeout'

6 years agoFurther renaming to the new naming scheme
Tom Knot [Thu, 19 Jul 2018 14:06:20 +0000 (16:06 +0200)]
Further renaming to the new naming scheme

6 years ago- Changed Neuron to UniPi where appropriate
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

6 years agofixed script raspbian
Miroslav Ondra [Mon, 16 Jul 2018 07:45:10 +0000 (09:45 +0200)]
fixed script raspbian

6 years agofixed script raspbian to reflect incorrect tag setting
Miroslav Ondra [Mon, 16 Jul 2018 07:42:23 +0000 (09:42 +0200)]
fixed script raspbian to reflect incorrect tag setting

6 years agoFixed a small syntax mistake
Tom Knot [Mon, 9 Jul 2018 09:30:21 +0000 (11:30 +0200)]
Fixed a small syntax mistake

6 years agoFixed mixed declaration
Tom Knot [Mon, 9 Jul 2018 09:25:13 +0000 (11:25 +0200)]
Fixed mixed declaration

6 years agoFixed secondary AO
Tom Knot [Mon, 9 Jul 2018 09:22:57 +0000 (11:22 +0200)]
Fixed secondary AO

6 years agoFixed ai current unit
Tom Knot [Wed, 4 Jul 2018 13:26:29 +0000 (15:26 +0200)]
Fixed ai current unit

6 years agoRemoved 64bit division
Tom Knot [Wed, 4 Jul 2018 13:22:26 +0000 (15:22 +0200)]
Removed 64bit division

6 years agoFixed remainders and resistance units
Tom Knot [Wed, 4 Jul 2018 13:20:24 +0000 (15:20 +0200)]
Fixed remainders and resistance units

6 years agoAdded debug print to current
Tom Knot [Wed, 4 Jul 2018 13:15:04 +0000 (15:15 +0200)]
Added debug print to current

6 years agoChanged scaling to mA
Tom Knot [Wed, 4 Jul 2018 13:09:59 +0000 (15:09 +0200)]
Changed scaling to mA

6 years agoChanged computation for current output
Tom Knot [Wed, 4 Jul 2018 13:03:14 +0000 (15:03 +0200)]
Changed computation for current output

6 years ago- Removed debug prints
Tom Knot [Wed, 4 Jul 2018 12:56:22 +0000 (14:56 +0200)]
- Removed debug prints

- Fixed division by zero

6 years agoFixed offset for stm analog
Tom Knot [Wed, 4 Jul 2018 12:41:12 +0000 (14:41 +0200)]
Fixed offset for stm analog

6 years ago- Added division by 10
Tom Knot [Wed, 4 Jul 2018 12:37:22 +0000 (14:37 +0200)]
- Added division by 10

- Added debug prints

6 years agoRemoved secondary ao mode (as it is always voltage)
Tom Knot [Wed, 4 Jul 2018 12:11:34 +0000 (14:11 +0200)]
Removed secondary ao mode (as it is always voltage)

6 years agoRenamed analog attribute modes
Tom Knot [Wed, 4 Jul 2018 10:49:06 +0000 (12:49 +0200)]
Renamed analog attribute modes

6 years agoFixed a trivial syntax mistake
Tom Knot [Tue, 3 Jul 2018 19:17:47 +0000 (21:17 +0200)]
Fixed a trivial syntax mistake

6 years agoSwapped floating point byte order when reading from Modbus
Tom Knot [Tue, 3 Jul 2018 19:15:21 +0000 (21:15 +0200)]
Swapped floating point byte order when reading from Modbus

6 years agoFixed small syntax mistake
Tom Knot [Fri, 29 Jun 2018 09:22:27 +0000 (11:22 +0200)]
Fixed small syntax mistake

6 years agoFixed wrong datatype for irq flags
Tom Knot [Fri, 29 Jun 2018 09:21:24 +0000 (11:21 +0200)]
Fixed wrong datatype for irq flags

6 years ago- Added further locks
Tom Knot [Fri, 29 Jun 2018 09:12:03 +0000 (11:12 +0200)]
- Added further locks

- c_iflags hopefully does not get set

6 years ago- Changed module description to be more accurate
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

6 years agoAdded more spinlocks to TX_PROC
Tom Knot [Wed, 27 Jun 2018 15:37:58 +0000 (17:37 +0200)]
Added more spinlocks to TX_PROC

6 years agoFixed input values being badly backcopied into regmap
Tom Knot [Wed, 27 Jun 2018 15:06:38 +0000 (17:06 +0200)]
Fixed input values being badly backcopied into regmap

6 years agoCleaned up stray spinlock sleep
Tom Knot [Wed, 27 Jun 2018 14:56:17 +0000 (16:56 +0200)]
Cleaned up stray spinlock sleep

6 years agoAdded a forgotten irqrestore
Tom Knot [Wed, 27 Jun 2018 13:43:47 +0000 (15:43 +0200)]
Added a forgotten irqrestore

6 years agoAdded interrupt saving for all spinlocks
Tom Knot [Wed, 27 Jun 2018 13:24:18 +0000 (15:24 +0200)]
Added interrupt saving for all spinlocks

6 years agoAdded internal locking for tx_proc
Tom Knot [Wed, 27 Jun 2018 12:59:11 +0000 (14:59 +0200)]
Added internal locking for tx_proc

6 years ago- Short refactoring
Tom Knot [Wed, 27 Jun 2018 12:46:16 +0000 (14:46 +0200)]
- Short refactoring

- UART TX log is marked order-wise

6 years agoChanged mutex back to spinlock for tx_lock
Tom Knot [Wed, 27 Jun 2018 12:19:09 +0000 (14:19 +0200)]
Changed mutex back to spinlock for tx_lock

6 years agoRestored functions with incompatible signature to the null function
Tom Knot [Wed, 27 Jun 2018 12:16:59 +0000 (14:16 +0200)]
Restored functions with incompatible signature to the null function

6 years agoAdded debug print to set_termios
Tom Knot [Wed, 27 Jun 2018 12:11:20 +0000 (14:11 +0200)]
Added debug print to set_termios

6 years agoRemoved unnecessary empty serial functions
Tom Knot [Wed, 27 Jun 2018 11:30:58 +0000 (13:30 +0200)]
Removed unnecessary empty serial functions

6 years agoMinor refactoring
Tom Knot [Wed, 27 Jun 2018 11:25:41 +0000 (13:25 +0200)]
Minor refactoring

6 years ago- Cleaned up one static declaration and removed a few superfluous data structures
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

6 years agoAdded appropriate unlocks to the previous spinlock
Tom Knot [Mon, 25 Jun 2018 19:06:18 +0000 (21:06 +0200)]
Added appropriate unlocks to the previous spinlock

6 years agoManually hold the port TX lock
Tom Knot [Mon, 25 Jun 2018 19:02:00 +0000 (21:02 +0200)]
Manually hold the port TX lock

6 years agoAdded further UART debugging messages
Tom Knot [Mon, 25 Jun 2018 18:47:37 +0000 (20:47 +0200)]
Added further UART debugging messages

6 years ago- Made generic files world-visiable
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

6 years agoMoved spi_message off stack
Tom Knot [Mon, 25 Jun 2018 17:12:21 +0000 (19:12 +0200)]
Moved spi_message off stack

6 years agoReplaced GFP_KERNEL with GFP_ATOMIC
Tom Knot [Mon, 25 Jun 2018 16:33:54 +0000 (18:33 +0200)]
Replaced GFP_KERNEL with GFP_ATOMIC

6 years agoTEST: Added spinlock to uart_write_wakeup
Tom Knot [Mon, 25 Jun 2018 13:31:51 +0000 (15:31 +0200)]
TEST: Added spinlock to uart_write_wakeup

6 years ago- Added better handling of long TTY packets
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

6 years agoActivated UART debug
Tom Knot [Thu, 14 Jun 2018 14:09:24 +0000 (16:09 +0200)]
Activated UART debug

6 years agoFixed warning
Tom Knot [Thu, 14 Jun 2018 13:51:54 +0000 (15:51 +0200)]
Fixed warning

6 years agoAdded UART timeout SYSFS properties
Tom Knot [Thu, 14 Jun 2018 13:48:26 +0000 (15:48 +0200)]
Added UART timeout SYSFS properties

6 years agoMerge branch 'master' of http://86.49.170.141:3000/UniPi/neuron-kernel
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

6 years agoSwapped 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

6 years agoMerge
Miroslav Ondra [Thu, 14 Jun 2018 09:51:55 +0000 (11:51 +0200)]
Merge

6 years agoSwapped 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

6 years agoSwapped 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

6 years agoAdded debug prints for line discipline
Tom Knot [Thu, 14 Jun 2018 09:22:02 +0000 (11:22 +0200)]
Added debug prints for line discipline

6 years ago- Changed UART startup ignore to proceed correctly if it cannot finish
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

6 years agoFixed analog mode configuration via SYSFS
Tom Knot [Wed, 6 Jun 2018 16:16:15 +0000 (18:16 +0200)]
Fixed analog mode configuration via SYSFS

6 years agoAdded Axon model definitions
Tom Knot [Mon, 28 May 2018 15:00:38 +0000 (17:00 +0200)]
Added Axon model definitions

6 years agoAdded SYSFS support for LEDs > 4
Tom Knot [Mon, 28 May 2018 14:04:26 +0000 (16:04 +0200)]
Added SYSFS support for LEDs > 4

6 years agoUpdated versioning hooks
Tom Knot [Tue, 22 May 2018 14:28:27 +0000 (16:28 +0200)]
Updated versioning hooks

6 years agoUpdated versioning hooks
Tom Knot [Mon, 21 May 2018 17:02:18 +0000 (19:02 +0200)]
Updated versioning hooks

6 years agoAdded versioning hooks
Tom Knot [Mon, 21 May 2018 15:46:40 +0000 (17:46 +0200)]
Added versioning hooks

6 years agoQuick fix for the previous commit
Tom Knot [Fri, 18 May 2018 13:43:11 +0000 (15:43 +0200)]
Quick fix for the previous commit

6 years agoVersion 0.08
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)

6 years agoSwitched fast_io off, as it could cause resource starvation issues
Tom Knot [Wed, 16 May 2018 12:11:54 +0000 (14:11 +0200)]
Switched fast_io off, as it could cause resource starvation issues

7 years agoFixed LINEDISCIPL return value and SYSFS counter byte order
Tom Knot [Thu, 10 May 2018 13:28:13 +0000 (15:28 +0200)]
Fixed LINEDISCIPL return value and SYSFS counter byte order

7 years agoUpdated to 0.07
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

7 years agoremoved misc/link_sysfs
Miroslav Ondra [Thu, 19 Apr 2018 18:49:02 +0000 (20:49 +0200)]
removed misc/link_sysfs

7 years agoAdded missing return code to neuron_spi_send_message
Tom Knot [Mon, 16 Apr 2018 10:43:36 +0000 (12:43 +0200)]
Added missing return code to neuron_spi_send_message

7 years agoMinor fixes:
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

7 years agoRestored macro for sched include
Tom Knot [Fri, 13 Apr 2018 15:18:29 +0000 (17:18 +0200)]
Restored macro for sched include

7 years ago- Added MWD status into the regstart generation function
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

7 years agoCleaned up kernel prints
Tom Knot [Mon, 9 Apr 2018 10:03:49 +0000 (12:03 +0200)]
Cleaned up kernel prints

7 years agoFixed GPIOs running out due to not being packed tightly in the namespace
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

7 years agoUpdated version string and added an empty (for now) TTY module
Tom Knot [Thu, 5 Apr 2018 14:06:37 +0000 (16:06 +0200)]
Updated version string and added an empty (for now) TTY module

7 years agoAllowed overriding frequency settings with _lower_ frequency even for analog modules...
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

7 years agoUpdate for FW 5.10 (UART speed), removed some extraneous prints as well
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

7 years agoUpdated Eclipse project
Tom Knot [Mon, 12 Mar 2018 12:43:10 +0000 (13:43 +0100)]
Updated Eclipse project