- Made generic files world-visiable
authorTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 18:32:30 +0000 (20:32 +0200)
committerTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 18:32:30 +0000 (20:32 +0200)
- Added debugging print to UART TX work

modules/unipi/src/unipi_sysfs.c
modules/unipi/src/unipi_uart.c
version.txt

index d3ba7a29b1a4526df4d2894456a403b22848c119..e94e5c2f4621eddd807b749f2893a96c6a5f8f99 100644 (file)
@@ -1112,21 +1112,21 @@ err_end:
  * Function Structure Definitions *
  **********************************/
 
-static DEVICE_ATTR(model_name, 0440, neuronspi_show_model, NULL);
+static DEVICE_ATTR(model_name, 0444, neuronspi_show_model, NULL);
 static DEVICE_ATTR(sys_reading_freq, 0660, neuronspi_show_sysfs_speed, neuronspi_store_sysfs_speed);
-static DEVICE_ATTR(sys_eeprom_name, 0440, neuronspi_show_eeprom, NULL);
-static DEVICE_ATTR(driver_version, 0440, neuronspi_show_driver_version, NULL);
+static DEVICE_ATTR(sys_eeprom_name, 0444, neuronspi_show_eeprom, NULL);
+static DEVICE_ATTR(driver_version, 0444, neuronspi_show_driver_version, NULL);
 static DEVICE_ATTR(register_read, 0660, neuronspi_spi_show_register, neuronspi_spi_store_register);
 static DEVICE_ATTR(register_set, 0220, NULL, neuronspi_spi_store_register_value);
 static DEVICE_ATTR(regmap_read, 0660, neuronspi_show_regmap, neuronspi_store_regmap);
 static DEVICE_ATTR(regmap_set, 0220, NULL, neuronspi_store_regmap_value);
 static DEVICE_ATTR(sys_board_serial, 0440, neuronspi_spi_show_serial, NULL);
-static DEVICE_ATTR(sys_board_name, 0440, neuronspi_spi_show_board, NULL);
-static DEVICE_ATTR(sys_primary_major_id, 0440, neuronspi_spi_show_lboard_id, NULL);
-static DEVICE_ATTR(sys_secondary_major_id, 0440, neuronspi_spi_show_uboard_id, NULL);
-static DEVICE_ATTR(sys_primary_minor_id, 0440, neuronspi_spi_show_hw_version, NULL);
-static DEVICE_ATTR(sys_secondary_minor_id, 0440, neuronspi_spi_show_hw_flash_version, NULL);
-static DEVICE_ATTR(firmware_version, 0440, neuronspi_spi_show_fw_version, NULL);
+static DEVICE_ATTR(sys_board_name, 0444, neuronspi_spi_show_board, NULL);
+static DEVICE_ATTR(sys_primary_major_id, 0444, neuronspi_spi_show_lboard_id, NULL);
+static DEVICE_ATTR(sys_secondary_major_id, 0444, neuronspi_spi_show_uboard_id, NULL);
+static DEVICE_ATTR(sys_primary_minor_id, 0444, neuronspi_spi_show_hw_version, NULL);
+static DEVICE_ATTR(sys_secondary_minor_id, 0444, neuronspi_spi_show_hw_flash_version, NULL);
+static DEVICE_ATTR(firmware_version, 0444, neuronspi_spi_show_fw_version, NULL);
 static DEVICE_ATTR(watchdog_status, 0660, neuronspi_spi_show_watchdog_status, neuronspi_spi_store_watchdog_status);
 static DEVICE_ATTR(watchdog_timeout, 0660, neuronspi_spi_show_watchdog_timeout, neuronspi_spi_store_watchdog_timeout);
 static DEVICE_ATTR(sys_gpio_do_count, 0440, neuronspi_spi_gpio_show_do_count, NULL);
@@ -1146,8 +1146,8 @@ static DEVICE_ATTR(pwm_frequency_cycle, 0660, neuronspi_spi_gpio_show_pwm_freq,
 static DEVICE_ATTR(pwm_prescale, 0660, neuronspi_spi_gpio_show_pwm_presc, neuronspi_spi_gpio_store_pwm_presc);
 static DEVICE_ATTR(pwm_duty_cycle, 0660, neuronspi_spi_gpio_show_pwm_cycle, neuronspi_spi_gpio_store_pwm_cycle);
 static DEVICE_ATTR(uart_queue_length, 0440, neuronspi_spi_show_uart_queue_length, NULL);
-static DEVICE_ATTR(uart_config, 0660, neuronspi_spi_show_uart_config, neuronspi_spi_store_uart_config);
-static DEVICE_ATTR(uart_timeout, 0660, neuronspi_spi_show_uart_timeout, neuronspi_spi_store_uart_timeout);
+static DEVICE_ATTR(uart_config, 0664, neuronspi_spi_show_uart_config, neuronspi_spi_store_uart_config);
+static DEVICE_ATTR(uart_timeout, 0664, neuronspi_spi_show_uart_timeout, neuronspi_spi_store_uart_timeout);
 static DEVICE_ATTR(sys_gpio_di_base, 0440, neuronspi_spi_gpio_show_di_base, NULL);
 static DEVICE_ATTR(sys_gpio_ro_count, 0440, neuronspi_spi_gpio_show_ro_count, NULL);
 static DEVICE_ATTR(sys_gpio_ro_prefix, 0440, neuronspi_spi_gpio_show_ro_prefix, NULL);
index 5a70af353beadaf1312ac6eebe260ffa5d64405a..cf9a6942c7a36aa9f6f1437cb514e86cd64eb75f 100644 (file)
@@ -570,6 +570,7 @@ void neuronspi_uart_start_tx(struct uart_port *port)
        spin_lock(&n_port->tx_lock);
        if (n_port->tx_work_count > NEURONSPI_MAX_TX_WORK) {
                spin_unlock(&n_port->tx_lock);
+               printk(KERN_INFO "NEURONSPI: TX WORK OVERFLOW\n");
                return;
        } else {
                n_port->tx_work_count++;
index f731ec4953db1c02e8f0f5b68beafae8059aae27..714f86868978d4fc2c0c2ffcc6f2780b62d66372 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:52(f3d6c0f) LatestCommit:Mon Jun 25 19:12:21 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:53(6a4f89f) LatestCommit:Mon Jun 25 20:32:30 CEST 2018