Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] ddcci-dkms: upgrade to 0.4.4
@ 2023-11-13 22:22 subnut
  2024-02-17  1:44 ` github-actions
  2024-03-03  1:45 ` [PR PATCH] [Closed]: " github-actions
  0 siblings, 2 replies; 3+ messages in thread
From: subnut @ 2023-11-13 22:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

There is a new pull request by subnut against master on the void-packages repository

https://github.com/subnut/void-packages ddcci-linux-dkms
https://github.com/void-linux/void-packages/pull/47222

ddcci-dkms: upgrade to 0.4.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/47222.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ddcci-linux-dkms-47222.patch --]
[-- Type: text/x-diff, Size: 6527 bytes --]

From 1112d7bc83b9384ee008d57e35a4431c0552e7e7 Mon Sep 17 00:00:00 2001
From: Subhaditya Nath <sn03.general@gmail.com>
Date: Tue, 14 Nov 2023 03:50:03 +0530
Subject: [PATCH] ddcci-dkms: upgrade to 0.4.4

---
 srcpkgs/ddcci-dkms/patches/linux-6.2.diff | 99 -----------------------
 srcpkgs/ddcci-dkms/patches/linux-6.3.diff | 17 ----
 srcpkgs/ddcci-dkms/patches/linux-6.4.diff | 14 ----
 srcpkgs/ddcci-dkms/template               |  5 +-
 4 files changed, 2 insertions(+), 133 deletions(-)
 delete mode 100644 srcpkgs/ddcci-dkms/patches/linux-6.2.diff
 delete mode 100644 srcpkgs/ddcci-dkms/patches/linux-6.3.diff
 delete mode 100644 srcpkgs/ddcci-dkms/patches/linux-6.4.diff

diff --git a/srcpkgs/ddcci-dkms/patches/linux-6.2.diff b/srcpkgs/ddcci-dkms/patches/linux-6.2.diff
deleted file mode 100644
index cd050144ef1ff..0000000000000
--- a/srcpkgs/ddcci-dkms/patches/linux-6.2.diff
+++ /dev/null
@@ -1,99 +0,0 @@
---- a/ddcci/ddcci.c
-+++ b/ddcci/ddcci.c
-@@ -35,6 +35,7 @@
- static unsigned int delay = 60;
- static unsigned short autoprobe_addrs[127] = {0xF0, 0xF2, 0xF4, 0xF6, 0xF8};
- static int autoprobe_addr_count = 5;
-+static bool is_registered;
- 
- static dev_t ddcci_cdev_first;
- static dev_t ddcci_cdev_next;
-@@ -930,8 +931,7 @@ static struct attribute *ddcci_char_devi
- ATTRIBUTE_GROUPS(ddcci_char_device);
- 
- /* DDC/CI bus */
--
--static int ddcci_device_uevent(struct device *dev, struct kobj_uevent_env *env)
-+static int ddcci_device_uevent(CSTRUCT device *dev, struct kobj_uevent_env *env)
- {
- 	struct ddcci_device	*device = to_ddcci_device(dev);
- 	char model[ARRAY_SIZE(device->model)];
-@@ -1011,7 +1011,7 @@ static void ddcci_device_release(struct
- 	kfree(device);
- }
- 
--static char *ddcci_devnode(struct device *dev,
-+static char *ddcci_devnode(CSTRUCT device *dev,
- 			 umode_t *mode, kuid_t *uid, kgid_t *gid)
- {
- 	struct ddcci_device *device;
-@@ -1021,7 +1021,7 @@ static char *ddcci_devnode(struct device
- 			 device->i2c_client->adapter->nr);
- }
- 
--static char *ddcci_dependent_devnode(struct device *dev,
-+static char *ddcci_dependent_devnode(CSTRUCT device *dev,
- 			 umode_t *mode, kuid_t *uid, kgid_t *gid)
- {
- 	struct ddcci_device *device;
-@@ -1065,7 +1065,7 @@ static struct device_type ddcci_dependen
-  * ddcci_verify_device - return parameter as ddcci_device, or NULL
-  * @dev: device, probably from some driver model iterator
-  */
--struct ddcci_device *ddcci_verify_device(struct device *dev)
-+struct ddcci_device *ddcci_verify_device(CSTRUCT device *dev)
- {
- 	if (unlikely(!dev))
- 		return NULL;
-@@ -1100,7 +1100,7 @@ int ddcci_register_driver(struct module
- 	int ret;
- 
- 	/* Can't register until after driver model init */
--	if (unlikely(WARN_ON(!ddcci_bus_type.p)))
-+	if (unlikely(WARN_ON(!is_registered)))
- 		return -EAGAIN;
- 
- 	pr_debug("registering driver [%s]\n", driver->driver.name);
-@@ -1857,6 +1857,7 @@ static int __init ddcci_module_init(void
- 		goto err_drvreg;
- 	}
- 
-+	is_registered = true;
- 	pr_debug("ddcci driver initialized\n");
- 
- 	return 0;
-@@ -1886,6 +1887,7 @@ static void __exit ddcci_module_exit(voi
- 
- 	i2c_del_driver(&ddcci_driver);
- 	bus_unregister(&ddcci_bus_type);
-+	is_registered = false;
- 	unregister_chrdev_region(ddcci_cdev_first, 128);
- }
- 
---- a/include/linux/ddcci.h
-+++ b/include/linux/ddcci.h
-@@ -17,9 +17,14 @@
- #include <linux/mod_devicetable.h>
- #include <linux/device.h>
- #include <linux/cdev.h>
-+#include <linux/version.h>
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0)
-+#define CSTRUCT const struct
-+#else
-+#define CSTRUCT struct
-+#endif
- 
- #define DDCCI_MODULE_PREFIX "ddcci:"
--
- /* Special addresses */
- 
- /* default device address (even) */
-@@ -132,7 +137,7 @@ int ddcci_register_driver(struct module
- 	ddcci_register_driver(THIS_MODULE, driver)
- void ddcci_del_driver(struct ddcci_driver *driver);
- 
--struct ddcci_device *ddcci_verify_device(struct device *dev);
-+struct ddcci_device *ddcci_verify_device(CSTRUCT device *dev);
- 
- #define module_ddcci_driver(__ddcci_driver) \
- 	module_driver(__ddcci_driver, ddcci_add_driver, \
diff --git a/srcpkgs/ddcci-dkms/patches/linux-6.3.diff b/srcpkgs/ddcci-dkms/patches/linux-6.3.diff
deleted file mode 100644
index d86242326cb23..0000000000000
--- a/srcpkgs/ddcci-dkms/patches/linux-6.3.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- a/ddcci/ddcci.c
-+++ b/ddcci/ddcci.c
-@@ -1672,8 +1672,14 @@ static int ddcci_detect(struct i2c_clien
- }
- 
- /* I2C probe function */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
-+static int ddcci_probe(struct i2c_client *client)
-+{
-+	const struct i2c_device_id *id = i2c_client_get_device_id(client);
-+#else
- static int ddcci_probe(struct i2c_client *client, const struct i2c_device_id *id)
- {
-+#endif
- 	int i, ret = -ENODEV, tmp;
- 	unsigned char main_addr, addr;
- 	struct ddcci_bus_drv_data *drv_data;
diff --git a/srcpkgs/ddcci-dkms/patches/linux-6.4.diff b/srcpkgs/ddcci-dkms/patches/linux-6.4.diff
deleted file mode 100644
index 16aabb9197f4b..0000000000000
--- a/srcpkgs/ddcci-dkms/patches/linux-6.4.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/ddcci/ddcci.c
-+++ b/ddcci/ddcci.c
-@@ -40,7 +40,11 @@ static bool is_registered;
- static dev_t ddcci_cdev_first;
- static dev_t ddcci_cdev_next;
- static dev_t ddcci_cdev_end;
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
-+static DEFINE_SEMAPHORE(core_lock, 1);
-+#else
- static DEFINE_SEMAPHORE(core_lock);
-+#endif
- 
- struct bus_type ddcci_bus_type;
- EXPORT_SYMBOL_GPL(ddcci_bus_type);
diff --git a/srcpkgs/ddcci-dkms/template b/srcpkgs/ddcci-dkms/template
index 62a3fcc12e99c..e1145fc0dd464 100644
--- a/srcpkgs/ddcci-dkms/template
+++ b/srcpkgs/ddcci-dkms/template
@@ -1,6 +1,6 @@
 # Template file for 'ddcci-dkms'
 pkgname=ddcci-dkms
-version=0.4.3
+version=0.4.4
 revision=1
 depends="dkms"
 short_desc="Pair of Linux kernel drivers for DDC/CI monitors (DKMS)"
@@ -8,14 +8,13 @@ maintainer="Subhaditya Nath <sn03.general@gmail.com>"
 license="GPL-2.0-or-later"
 homepage="https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/"
 distfiles="https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/archive/v${version}/ddcci-driver-linux-v${version}.tar.gz"
-checksum=2c13fb0a66fea3fcd0070c7cce07ec3943550dee667f066562f810b8c2f01656
+checksum=4e1ddcca2b9052ce46c3a4bd494b19ea6908f1fac013284cccb15151c03e59aa
 dkms_modules="ddcci ${version}"
 
 do_install() {
 	vdoc README.md
 	rm LICENSE README.md
 
-	rm -f *.patch
 	vmkdir usr/src/ddcci-${version}
 	vcopy "*" usr/src/ddcci-${version}
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ddcci-dkms: upgrade to 0.4.4
  2023-11-13 22:22 [PR PATCH] ddcci-dkms: upgrade to 0.4.4 subnut
@ 2024-02-17  1:44 ` github-actions
  2024-03-03  1:45 ` [PR PATCH] [Closed]: " github-actions
  1 sibling, 0 replies; 3+ messages in thread
From: github-actions @ 2024-02-17  1:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/47222#issuecomment-1949582683

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: ddcci-dkms: upgrade to 0.4.4
  2023-11-13 22:22 [PR PATCH] ddcci-dkms: upgrade to 0.4.4 subnut
  2024-02-17  1:44 ` github-actions
@ 2024-03-03  1:45 ` github-actions
  1 sibling, 0 replies; 3+ messages in thread
From: github-actions @ 2024-03-03  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

There's a closed pull request on the void-packages repository

ddcci-dkms: upgrade to 0.4.4
https://github.com/void-linux/void-packages/pull/47222

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-03  1:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 22:22 [PR PATCH] ddcci-dkms: upgrade to 0.4.4 subnut
2024-02-17  1:44 ` github-actions
2024-03-03  1:45 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).