| #
f1a372ed
|
| 30-Sep-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support interrupts. This allows children to setup interrupts.
Reported by: Evgenii Ivanov <devivanov@proton.me> Reviewed by: imp MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D52197
show more ...
|
| #
c063fb7a
|
| 13-Aug-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: remove gpiobus_attach_bus
Since gpiobus_attach_bus can attach the gpiobus child along with its children in the same bus pass, the parent controller's reference to gpiobus might not be set by t
gpio: remove gpiobus_attach_bus
Since gpiobus_attach_bus can attach the gpiobus child along with its children in the same bus pass, the parent controller's reference to gpiobus might not be set by the time the children need it. Instead, drivers should use gpiobus_add_bus and explicitly call bus_attach_children.
Reviewed by: mmel, imp (older version) Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D51578
show more ...
|
| #
4695e3aa
|
| 04-Jul-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: attach gpiobus when the controller is ready
Only attach gpiobus when the controller is fully initialized. Children of gpiobus expect this to be the case.
Reviewed by: mmel, imp, andrew Approv
gpio: attach gpiobus when the controller is ready
Only attach gpiobus when the controller is fully initialized. Children of gpiobus expect this to be the case.
Reviewed by: mmel, imp, andrew Approved by: imp (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D51088
show more ...
|
| #
b2dd4970
|
| 23-Oct-2024 |
Andrew Turner <andrew@FreeBSD.org> |
dev/gpio: Mask all pl011 interrupts
The firmware may have unmasked pl011 interrupts. If we don't have a device to handle one the kernel will print a spurious interrupt warning. Rather than print the
dev/gpio: Mask all pl011 interrupts
The firmware may have unmasked pl011 interrupts. If we don't have a device to handle one the kernel will print a spurious interrupt warning. Rather than print the warning mask all interrupts until we are ready to handle them.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46863
show more ...
|
| #
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 ...
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
ae4bffd5
|
| 09-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
gpio pl061: Remove unused variables.
|
| #
d729904a
|
| 14-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Allow for interrupts on pl061 children
Add enough infrastructure for interrupts on children of the pl061 GPIO controller. As gpiobus already provided these the pl061 driver also needs to pass reques
Allow for interrupts on pl061 children
Add enough infrastructure for interrupts on children of the pl061 GPIO controller. As gpiobus already provided these the pl061 driver also needs to pass requests up the newbus hierarchy.
Currently there are no children that expect to configure interrupts, however this is expected to change to support the ACPI Event Information interface.
Sponsored by: Innovate UK
show more ...
|
| #
128e746c
|
| 10-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Switch the name of the pl061 driver to gpio
We need it to be named gpio for gpiobus to work.
Sponsored by: Innovate UK
|
| #
365ed84f
|
| 10-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Use the correct variable to check which interrupt mode to use
In the PL061 driver we incorrectly used the mask rather than mode to find how to configure the interrupt.
Sponsored by: Innovate UK
|
| #
1fc1a228
|
| 08-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Add a GPIO driver for the Arm pl061 controller
A PL061 is a simple 8 pin GPIO controller. This GPIO device is used to signal an internal request for shutdown on some virtual machines including Arm-b
Add a GPIO driver for the Arm pl061 controller
A PL061 is a simple 8 pin GPIO controller. This GPIO device is used to signal an internal request for shutdown on some virtual machines including Arm-based Amazon EC2 instances.
Submitted by: Ali Saidi <alisaidi_amazon.com> (previouss version) Reviewed by: Ali Saidi, manu Differential Revision: https://reviews.freebsd.org/D24065
show more ...
|
| #
f1a372ed
|
| 30-Sep-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support interrupts. This allows children to setup interrupts.
Reported by: Evgenii Ivanov <devivanov@proton.me> Reviewed by: imp MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D52197
show more ...
|
| #
c063fb7a
|
| 13-Aug-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: remove gpiobus_attach_bus
Since gpiobus_attach_bus can attach the gpiobus child along with its children in the same bus pass, the parent controller's reference to gpiobus might not be set by t
gpio: remove gpiobus_attach_bus
Since gpiobus_attach_bus can attach the gpiobus child along with its children in the same bus pass, the parent controller's reference to gpiobus might not be set by the time the children need it. Instead, drivers should use gpiobus_add_bus and explicitly call bus_attach_children.
Reviewed by: mmel, imp (older version) Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D51578
show more ...
|
| #
4695e3aa
|
| 04-Jul-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: attach gpiobus when the controller is ready
Only attach gpiobus when the controller is fully initialized. Children of gpiobus expect this to be the case.
Reviewed by: mmel, imp, andrew Approv
gpio: attach gpiobus when the controller is ready
Only attach gpiobus when the controller is fully initialized. Children of gpiobus expect this to be the case.
Reviewed by: mmel, imp, andrew Approved by: imp (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D51088
show more ...
|
| #
b2dd4970
|
| 23-Oct-2024 |
Andrew Turner <andrew@FreeBSD.org> |
dev/gpio: Mask all pl011 interrupts
The firmware may have unmasked pl011 interrupts. If we don't have a device to handle one the kernel will print a spurious interrupt warning. Rather than print the
dev/gpio: Mask all pl011 interrupts
The firmware may have unmasked pl011 interrupts. If we don't have a device to handle one the kernel will print a spurious interrupt warning. Rather than print the warning mask all interrupts until we are ready to handle them.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46863
show more ...
|
| #
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 ...
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
ae4bffd5
|
| 09-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
gpio pl061: Remove unused variables.
|
| #
d729904a
|
| 14-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Allow for interrupts on pl061 children
Add enough infrastructure for interrupts on children of the pl061 GPIO controller. As gpiobus already provided these the pl061 driver also needs to pass reques
Allow for interrupts on pl061 children
Add enough infrastructure for interrupts on children of the pl061 GPIO controller. As gpiobus already provided these the pl061 driver also needs to pass requests up the newbus hierarchy.
Currently there are no children that expect to configure interrupts, however this is expected to change to support the ACPI Event Information interface.
Sponsored by: Innovate UK
show more ...
|
| #
128e746c
|
| 10-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Switch the name of the pl061 driver to gpio
We need it to be named gpio for gpiobus to work.
Sponsored by: Innovate UK
|
| #
365ed84f
|
| 10-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Use the correct variable to check which interrupt mode to use
In the PL061 driver we incorrectly used the mask rather than mode to find how to configure the interrupt.
Sponsored by: Innovate UK
|
| #
1fc1a228
|
| 08-Sep-2020 |
Andrew Turner <andrew@FreeBSD.org> |
Add a GPIO driver for the Arm pl061 controller
A PL061 is a simple 8 pin GPIO controller. This GPIO device is used to signal an internal request for shutdown on some virtual machines including Arm-b
Add a GPIO driver for the Arm pl061 controller
A PL061 is a simple 8 pin GPIO controller. This GPIO device is used to signal an internal request for shutdown on some virtual machines including Arm-based Amazon EC2 instances.
Submitted by: Ali Saidi <alisaidi_amazon.com> (previouss version) Reviewed by: Ali Saidi, manu Differential Revision: https://reviews.freebsd.org/D24065
show more ...
|
| #
f1a372ed
|
| 30-Sep-2025 |
Ahmad Khalifa <vexeduxr@FreeBSD.org> |
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support
gpio: implement bus_setup_intr and bus_teardown_intr
Implement bus_setup_intr and bus_teardown_intr as bus_generic_setup_intr and bus_generic_teardown_intr respectively for GPIO drivers that support interrupts. This allows children to setup interrupts.
Reported by: Evgenii Ivanov <devivanov@proton.me> Reviewed by: imp MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D52197
show more ...
|