diff options
Diffstat (limited to 'SOURCES/OpenRGB.patch')
-rw-r--r-- | SOURCES/OpenRGB.patch | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/SOURCES/OpenRGB.patch b/SOURCES/OpenRGB.patch index 0ca0401..3ddf50e 100644 --- a/SOURCES/OpenRGB.patch +++ b/SOURCES/OpenRGB.patch @@ -1,24 +1,11 @@ -From 309712fae7491a876359ddda6e4cf8944f454731 Mon Sep 17 00:00:00 2001 -From: GloriousEggroll <gloriouseggroll@gmail.com> -Date: Wed, 13 Sep 2023 17:59:59 -0600 -Subject: [PATCH] OpenRGB - ---- - drivers/i2c/busses/Kconfig | 9 + - drivers/i2c/busses/Makefile | 1 + - drivers/i2c/busses/i2c-nct6775.c | 647 +++++++++++++++++++++++++++++++ - drivers/i2c/busses/i2c-piix4.c | 4 +- - 4 files changed, 659 insertions(+), 2 deletions(-) - create mode 100644 drivers/i2c/busses/i2c-nct6775.c - diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig -index 9cfe8fc50..efc3b0c0b 100644 +index 2ddca08f8a76..72647850f08e 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig -@@ -229,6 +229,15 @@ config I2C_CHT_WC +@@ -217,6 +217,15 @@ config I2C_CHT_WC combined with a FUSB302 Type-C port-controller as such it is advised to also select CONFIG_TYPEC_FUSB302=m. - + +config I2C_NCT6775 + tristate "Nuvoton NCT6775 and compatible SMBus controller" + help @@ -32,10 +19,10 @@ index 9cfe8fc50..efc3b0c0b 100644 tristate "Nvidia nForce2, nForce3 and nForce4" depends on PCI diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile -index af56fe2c7..76be74584 100644 +index 25d60889713c..3c2a9b237ac6 100644 --- a/drivers/i2c/busses/Makefile +++ b/drivers/i2c/busses/Makefile -@@ -20,6 +20,7 @@ obj-$(CONFIG_I2C_CHT_WC) += i2c-cht-wc.o +@@ -17,6 +17,7 @@ obj-$(CONFIG_I2C_CHT_WC) += i2c-cht-wc.o obj-$(CONFIG_I2C_I801) += i2c-i801.o obj-$(CONFIG_I2C_ISCH) += i2c-isch.o obj-$(CONFIG_I2C_ISMT) += i2c-ismt.o @@ -45,7 +32,7 @@ index af56fe2c7..76be74584 100644 obj-$(CONFIG_I2C_NVIDIA_GPU) += i2c-nvidia-gpu.o diff --git a/drivers/i2c/busses/i2c-nct6775.c b/drivers/i2c/busses/i2c-nct6775.c new file mode 100644 -index 000000000..0462f0952 +index 000000000000..0462f0952043 --- /dev/null +++ b/drivers/i2c/busses/i2c-nct6775.c @@ -0,0 +1,647 @@ @@ -697,23 +684,20 @@ index 000000000..0462f0952 +module_init(i2c_nct6775_init); +module_exit(i2c_nct6775_exit); diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c -index 809fbd014..d54b35b14 100644 +index 30ded6422e7b..e25ce84c26af 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c -@@ -568,11 +568,11 @@ static int piix4_transaction(struct i2c_adapter *piix4_adapter) +@@ -467,11 +467,11 @@ static int piix4_transaction(struct i2c_adapter *piix4_adapter) if (srvrworks_csb5_delay) /* Extra delay for SERVERWORKS_CSB5 */ usleep_range(2000, 2100); else - usleep_range(250, 500); + usleep_range(25, 50); - + while ((++timeout < MAX_TIMEOUT) && ((temp = inb_p(SMBHSTSTS)) & 0x01)) - usleep_range(250, 500); + usleep_range(25, 50); - + /* If the SMBus is still busy, we give up */ if (timeout == MAX_TIMEOUT) { --- -2.41.0 - |