Switched fast_io off, as it could cause resource starvation issues
authorTom Knot <tomasknot@gmail.com>
Wed, 16 May 2018 12:11:54 +0000 (14:11 +0200)
committerTom Knot <tomasknot@gmail.com>
Wed, 16 May 2018 12:11:54 +0000 (14:11 +0200)
modules/unipi/src/unipi_platform.c
modules/unipi/src/unipi_spi.h

index 4e252a5f14e078e8fc302a0666924c918761837f..c4ce3907fc12ab4f8ad9321127bd746d4d882605 100644 (file)
@@ -1525,7 +1525,11 @@ void neuronspi_regmap_invalidate_device(struct regmap *reg_map, struct neuronspi
                        } else {
                                switch (current_period) {
                                case NEURONSPI_REGFLAG_ACC_AFAP: {
-                                       regcache_drop_region(reg_map, block_start + block_counter - period_len + 1, block_start + block_counter);
+                                       if (regcache_drop_region(reg_map, block_start + block_counter - period_len + 1, block_start + block_counter)) {
+#if NEURONSPI_DETAILED_DEBUG > 0
+                                               printk(KERN_INFO "NEURONSPI: RegCache dropping failed");
+#endif
+                                       }
                                        break;
                                }
                                case NEURONSPI_REGFLAG_ACC_10HZ: {
index 83d88a7a0e7c39b011ba9388a8e7cdd587c61595..4aa4bb8eba59ea181d5af0b8c985e1345ee1c495 100644 (file)
@@ -197,7 +197,7 @@ extern struct file_operations file_ops;
 
 static const struct regmap_bus neuronspi_regmap_bus =
 {
-       .fast_io                                        = 1,
+       .fast_io                                        = 0,
        .write                                          = neuronspi_regmap_hw_write,
        .gather_write                           = neuronspi_regmap_hw_gather_write,
        .reg_write                                      = neuronspi_regmap_hw_reg_write,