Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src igpio(4): Disable Baytrail and Lynxpoint support. Fixes PR k...



details:   https://anonhg.NetBSD.org/src/rev/23736d0e2d27
branches:  trunk
changeset: 373767:23736d0e2d27
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Feb 27 15:41:41 2023 +0000

description:
igpio(4): Disable Baytrail and Lynxpoint support. Fixes PR kern/57225.

 It seems additional code is required to support Baytrail and Lynxpoint.
Disable those support.

diffstat:

 share/man/man4/igpio.4    |   8 +++-----
 sys/dev/acpi/igpio_acpi.c |  12 ++++++------
 2 files changed, 9 insertions(+), 11 deletions(-)

diffs (82 lines):

diff -r 63f17f169fff -r 23736d0e2d27 share/man/man4/igpio.4
--- a/share/man/man4/igpio.4    Mon Feb 27 13:39:09 2023 +0000
+++ b/share/man/man4/igpio.4    Mon Feb 27 15:41:41 2023 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: igpio.4,v 1.3 2023/01/07 13:56:21 msaitoh Exp $
+.\" $NetBSD: igpio.4,v 1.4 2023/02/27 15:41:41 msaitoh Exp $
 .\"
 .\" Copyright (c) 2022 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 7, 2023
+.Dd February 27, 2023
 .Dt IGPIO 4
 .Os
 .Sh NAME
@@ -45,7 +45,6 @@
 .It Alder Lake-N
 .It Alder Lake-P
 .It Alder Lake-S
-.It Baytrail
 .It Cannon Lake-H
 .It Cannon Lake-LP
 .It Cedarfork
@@ -58,14 +57,13 @@
 .It Jasper Lake
 .It Lakefield
 .It Lewisburg
-.It Lynxpoint
 .It Raptor Lake-S
 .It Sunrisepoint-H
 .It Sunrisepoint-LP
 .It Tiger Lake-H
 .It Tiger Lake-LP
 .El
-Support for Broxton and Cherryview is not enabled yet.
+Support for Baytrail, Broxton, Cherryview and Lynxpoint are not enabled yet.
 .Pp
 The driver supports
 .Dv GPIO_PIN_INPUT ,
diff -r 63f17f169fff -r 23736d0e2d27 sys/dev/acpi/igpio_acpi.c
--- a/sys/dev/acpi/igpio_acpi.c Mon Feb 27 13:39:09 2023 +0000
+++ b/sys/dev/acpi/igpio_acpi.c Mon Feb 27 15:41:41 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igpio_acpi.c,v 1.1 2022/03/24 02:24:25 manu Exp $ */
+/* $NetBSD: igpio_acpi.c,v 1.2 2023/02/27 15:41:41 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2021,2022 Emmanuel Dreyfus
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igpio_acpi.c,v 1.1 2022/03/24 02:24:25 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igpio_acpi.c,v 1.2 2023/02/27 15:41:41 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -62,10 +62,6 @@
 CFATTACH_DECL_NEW(igpio_acpi, sizeof(struct igpio_acpi_softc), igpio_acpi_match, igpio_acpi_attach, igpio_acpi_detach, NULL);
 
 static const struct device_compatible_entry compat_data[] = {
-       { .compat = "INT33B2" },        /* baytrail */
-       { .compat = "INT33C7" },        /* lynxpoint */
-       { .compat = "INT33FC" },        /* baytrail */
-       { .compat = "INT3437" },        /* lynxpoint */
        { .compat = "INT344B" },        /* sunrisepoint */
        { .compat = "INT3450" },        /* cannonlake */
        { .compat = "INT3451" },        /* sunrisepoint */
@@ -89,6 +85,10 @@
         * Complete bank setup in src/sys/dev/ic/igpioreg.h
         * before enabling
         */
+       { .compat = "INT33B2" },        /* baytrail */
+       { .compat = "INT33C7" },        /* lynxpoint */
+       { .compat = "INT33FC" },        /* baytrail */
+       { .compat = "INT3437" },        /* lynxpoint */
        { .compat = "INT3452" },        /* broxton */
        { .compat = "INT34D1" },        /* broxton */
        { .compat = "apollolake-pinctrl" },     /* broxton */



Home | Main Index | Thread Index | Old Index