http://bugzilla.kernel.org/show_bug.cgi?id=12056

           Summary: the serial device(ttyS0) is unuseable after booting the
                    kernel
           Product: ACPI
           Version: 2.5
     KernelVersion: 2.6.28-rc3
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: blocking
          Priority: P1
         Component: ACPICA-Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Latest working kernel version:2.6.28-rc3
Earliest failing kernel version:2.6.28-rc1
Distribution:
Hardware Environment:fujitsu's PG
Software Environment:
Problem Description:

  When i switch to the kernel of 2.6.28-rc3, the serial device 
(ttyS0) is unused. But on 2.6.27, it's ok. 

On 2.6.28-rc3:
[EMAIL PROTECTED] compiler]# setserial /dev/ttyS0
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4

On 2.6.27:
[EMAIL PROTECTED] compiler]# setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

  The problem comes from this patch 39a0ad871000d2a016a4fa113a6e53d22aabf25d。
For the device that is not present but functional, it unload the driver for the
device. 
  In the following patch, I try to fix it whthout check the present bit when
adding device. After applied the patch, the serial device is useable again.

diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 383e47c..bcc731b 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -154,7 +154,7 @@ static int __init pnpacpi_add_device(struct acpi_device
*device)
         */
        status = acpi_get_handle(device->handle, "_CRS", &temp);
        if (ACPI_FAILURE(status) || !ispnpidacpi(acpi_device_hid(device)) ||
-           is_exclusive_device(device) || (!device->status.present))
+           is_exclusive_device(device))
                return 0;

        dev = pnp_alloc_dev(&pnpacpi_protocol, num, acpi_device_hid(device));

Steps to reproduce:
1)build the kernel of 2.6.28-rc3;
2)check the device with “setserial /dev/ttyS0”


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to