From 4318dc14dab75ba0d150bbedf1a8155ef3284669 Mon Sep 17 00:00:00 2001 From: marqs Date: Wed, 9 Oct 2024 23:29:40 +0300 Subject: [PATCH] update driver to version 1.3 * Increase Saturn controller comms delay --- db9_gpio_rpi/db9_gpio_rpi-dkms-mkdeb/debian/changelog | 2 +- db9_gpio_rpi/db9_gpio_rpi.c | 4 ++-- db9_gpio_rpi/dkms.conf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db9_gpio_rpi/db9_gpio_rpi-dkms-mkdeb/debian/changelog b/db9_gpio_rpi/db9_gpio_rpi-dkms-mkdeb/debian/changelog index 27d086d..58eb478 100644 --- a/db9_gpio_rpi/db9_gpio_rpi-dkms-mkdeb/debian/changelog +++ b/db9_gpio_rpi/db9_gpio_rpi-dkms-mkdeb/debian/changelog @@ -1,6 +1,6 @@ DEBIAN_PACKAGE-dkms (MODULE_VERSION) stable; urgency=low - * Fix build on recent kernels. + * Increase Saturn controller comms delay. -- Markus Hiienkari DATE_STAMP diff --git a/db9_gpio_rpi/db9_gpio_rpi.c b/db9_gpio_rpi/db9_gpio_rpi.c index cb210f7..b0276e9 100644 --- a/db9_gpio_rpi/db9_gpio_rpi.c +++ b/db9_gpio_rpi/db9_gpio_rpi.c @@ -265,7 +265,7 @@ static u32 __init db9_bcm_model_probe(void) { /* * Saturn controllers */ -#define DB9_SATURN_DELAY 1 +#define DB9_SATURN_DELAY 7 #define DB9_SATURN_ANALOG_DELAY 7 static const int db9_saturn_byte[] = { 1, 1, 1, 2, 2, 2, 2, 2, 1 }; static const unsigned char db9_saturn_mask[] = { 0x04, 0x01, 0x02, 0x40, 0x20, 0x10, 0x08, 0x80, 0x08 }; @@ -489,7 +489,7 @@ static void db9_timer(unsigned long private) input_report_key(dev, BTN_TRIGGER, ~data & psb[i][DB9_FIRE1]); input_report_key(dev, BTN_THUMB, ~data & psb[i][DB9_FIRE2]); break; - + case DB9_MULTI3_STICK: data = GPIO_STATUS; diff --git a/db9_gpio_rpi/dkms.conf b/db9_gpio_rpi/dkms.conf index 5b6186a..17117ed 100644 --- a/db9_gpio_rpi/dkms.conf +++ b/db9_gpio_rpi/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="db9_gpio_rpi" -PACKAGE_VERSION="1.2" +PACKAGE_VERSION="1.3" CLEAN="make clean" MAKE[0]="make all KVERSION=$kernelver" BUILT_MODULE_NAME[0]="$PACKAGE_NAME"