#
18250ec6 |
| 06-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
Replace calls to bus_generic_attach with bus_attach_children
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
83276e1f |
| 08-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `i2c_adapter_quirks` support
While here, also declare `I2C_CLASS_HWMON`.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38535
|
Revision tags: release/12.4.0 |
|
#
319a4bdd |
| 19-Aug-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: i2c: Fix 7bit/8bit addressing
Linux is using 7 bit addressing while FreeBSD uses 8 bit addresses internally, but i2c(8) uses 7 bit address. This confused me when originally doing the code
linuxkpi: i2c: Fix 7bit/8bit addressing
Linux is using 7 bit addressing while FreeBSD uses 8 bit addresses internally, but i2c(8) uses 7 bit address. This confused me when originally doing the code and I thought that 0x50 was the 8bit EDID address while it's the 7bit address and since I did all my testing using this I didn't noticed the problem.
Reported by: avg PR: 265920 (somewhat)
show more ...
|
#
d87fad36 |
| 14-Jun-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Acquire giant when adding/removing i2c adapters
We need Giant as we run in a taskqueue_thread via linux_work. This fix detaching amdgpu and i915kms.
Reviewed by: bz, hselasky, imp Sponsor
linuxkpi: Acquire giant when adding/removing i2c adapters
We need Giant as we run in a taskqueue_thread via linux_work. This fix detaching amdgpu and i915kms.
Reviewed by: bz, hselasky, imp Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35478
show more ...
|
#
25d21a84 |
| 13-May-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Rework detach function
We need to detach the matching i2c adapter so look for the right one. While here add some locks to protect multiple add/del at the same time.
Fixes: 1961a14a47 ("li
linuxkpi: Rework detach function
We need to detach the matching i2c adapter so look for the right one. While here add some locks to protect multiple add/del at the same time.
Fixes: 1961a14a47 ("linuxkpi: Add i2c support") Sponsored by: Beckhoff Automation GmbH & Co. KG
show more ...
|
#
f49cddbd |
| 17-May-2022 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Allow lkpi_iic driver to be a child of drm device.
i915kms exposes "AUX #/port #" I2C adapters as drm children
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https:/
LinuxKPI: Allow lkpi_iic driver to be a child of drm device.
i915kms exposes "AUX #/port #" I2C adapters as drm children
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D35046
show more ...
|
Revision tags: release/13.1.0 |
|
#
a65d0774 |
| 07-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
linuxkpi: Remove unused devclass arguments to DRIVER_MODULE.
|
#
676ea8e1 |
| 20-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused iicbus_devclass.
|
#
81de5561 |
| 26-Jan-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: i2c: Add MODULE_DEPEND for iicbus
MFC after: 1 month MFC with: 1961a14a4743 Fixes: 1961a14a4743 ("linuxkpi: Add i2c support") Reported by: GregV Sponsored by: Beckhoff Automation GmbH & Co
linuxkpi: i2c: Add MODULE_DEPEND for iicbus
MFC after: 1 month MFC with: 1961a14a4743 Fixes: 1961a14a4743 ("linuxkpi: Add i2c support") Reported by: GregV Sponsored by: Beckhoff Automation GmbH & Co. KG
show more ...
|
Revision tags: release/12.3.0 |
|
#
1961a14a |
| 04-Nov-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add i2c support
Add i2c support to linuxkpi. This is needed by drm-kmod. For every i2c_adapter added by i2c_add_adapter we add a child to the device named "lkpi_iic". This child handle the
linuxkpi: Add i2c support
Add i2c support to linuxkpi. This is needed by drm-kmod. For every i2c_adapter added by i2c_add_adapter we add a child to the device named "lkpi_iic". This child handle the conversion between Linux i2c_msgs to FreeBSD iic_msgs. For every i2c_adapter added by i2c_bit_add_bus we add a child to the device named "lkpi_iicbb". This child handle the conversion between Linux i2c_msgs to FreeBSD iic_msgs. With the help of iic(4), this expose the i2c controller to userspace allowing a user to query DDC information from a monitor. e.g.: i2c -f /dev/iic0 -a 0x28 -c 128 -d r will query the standard EDID from the monitor if plugged.
The bitbang part (lkpi_iicbb) isn't tested at all for now as I don't have compatible hardware (all my hardware have native i2c controller).
Tested on: Intel (SandyBridge, Skylake, ApolloLake) Tested on: AMD (Picasso, Polaris (amd64 and arm64))
MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33053
show more ...
|