Re: [PATCH 2.6] Altix serial driver

From: Chris Wedgwood (cw_at_f00f.org)
Date: 06/28/04

  • Next message: Li, Shaohua: "RE: [ACPI] No APIC interrupts after ACPI suspend"
    Date: 	Sun, 27 Jun 2004 18:44:43 -0700
    To: Erik Jacobson <erikj@subway.americas.sgi.com>, Christoph Hellwig <hch@infradead.org>, Jesse Barnes <jbarnes@engr.sgi.com>, Andrew Morton <akpm@osdl.org>, Pat Gefre <pfg@sgi.com>, linux-kernel@vger.kernel.org
    
    

    On Mon, Jun 28, 2004 at 02:14:39AM +0100, Russell King wrote:

    > It's the way its always been done, and the way the tty layer works.
    > You register a range of ttys that you're going to be driving, and
    > you own those ttys whether or not you actually have hardware for
    > them.

    How about this (yes, it's a hack but it's really not that bad and will
    get things working until we can fix this up in 2.7.x):

    ===== drivers/serial/8250.c 1.55 vs edited =====
    --- 1.55/drivers/serial/8250.c 2004-04-17 02:48:54 -07:00
    +++ edited/drivers/serial/8250.c 2004-06-27 18:42:55 -07:00
    @@ -2175,6 +2175,12 @@
     {
             int ret, i;
     
    +#if defined(__ia64__) && defined(ia64_platform_is)
    + /* SN2 cannot have 8250-like serial ports. */
    + if (ia64_platform_is("sn2"))
    + return -ENODEV;
    +#endif
    +
             printk(KERN_INFO "Serial: 8250/16550 driver $Revision: 1.90 $ "
                     "%d ports, IRQ sharing %sabled\n", (int) UART_NR,
                     share_irqs ? "en" : "dis");

    Completely untested of source, and we might want to move things around
    a bit if early console stuff causes problems.

       --cw
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Li, Shaohua: "RE: [ACPI] No APIC interrupts after ACPI suspend"

    Relevant Pages

    • Re: [PATCH 2.6] Altix serial driver
      ... >> You register a range of ttys that you're going to be driving, ... you can't even use 8250 for PCMCIA serial cards. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: What do you think ?: How should pseundo terminals behave ...
      ... Yes and no. ttys do that on an actual hangup (when a hardware hangup ... I think that in many circumstances, the correct behavior *is* to treat hangup as "backing device no longer exists" --- an older session should not leak into a newer one, it is a potential security hole and certainly a potential source of confusion. ...
      (freebsd-current)
    • what to use (sem/spinlock/etc)....
      ... I have a register on my hardware that I write to to increment a counter.... ... Increment Hardware counter ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fix tulip suspend/resume
      ... > the interrupt because the tulip driver must read from a hardware register ... When the hardware has been ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)