Re: [RFC][PATCH] Way for platforms to alter built-in serial ports

From: Benjamin Herrenschmidt (benh_at_kernel.crashing.org)
Date: 10/02/04

  • Next message: Jean Delvare: "Re: mmap() on cdrom files fails since 2.6.9-rc2-bk2"
    To: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Date:	Sat, 02 Oct 2004 16:45:50 +1000
    
    

    On Sat, 2004-10-02 at 00:58, Bjorn Helgaas wrote:

    > My main point is that I think the early init stuff (i.e.,
    > serial8250_isa_init_ports()) should go away, so we don't have the
    > dichotomy of having the compiled-in stuff handled differently than
    > the run-time enumerated stuff.

    Right. But that's a long term goal ;)

    > It really doesn't matter for ia64, since we discover all the ports
    > via either PCI enumeration or ACPI. We don't put anything in
    > old_serial_port[] at all. For platforms that can't do that,
    > there'd still have to be compiled-in tables, but the entries
    > should be added using the standard register_serial() interface
    > just like everything else.

    I discover everything at boot time via Open Firmware, though on
    ppc32, embedded platforms have gazillion different ways of getting
    to them.

    > > In the meantime, that patch would fix urgent problems for ppc now so
    > > I'd appreciate if Russell would consider it for inclusion asap. This
    > > is the kind of subject on which everybody comes up with a different
    > > "better" way to do it and no code, and nothign ever gets implemented
    > > and we end up with no progress...
    >
    > We've both posted working code that are at least baby steps toward
    > a better solution, so I hope we can make some progress.

    Yes. Well, I suppose having a 8250_ppc{64}.c where I do the discovery
    a bit like it's done with ACPI would be ok for everything but serial
    console... I can do an OF plaform device that gets probed a bit late
    though, and that wouldn't help for embedded stuffs, but then, those
    people can always still use the hard coded table for a while ... :)

    That would mean though having the kernel serial console for early boot
    be separate from the 8250 driver... like you proposed. That would work
    too... I have to ponder this approach, indeed probably better than
    my patch provided you get your early uart stuff upstream :)

    Ben.

    -
    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: Jean Delvare: "Re: mmap() on cdrom files fails since 2.6.9-rc2-bk2"

    Relevant Pages

    • Re: Misleading error message
      ... looking for a component "something" within the compiled-in stuff ... Awaiting list feedback. ... >kernel" would be much more helpfull, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: mouse driver bug in 2.6.0-test7?
      ... Why not use the new style module_param thing, goes for compiled-in and ... Martin Josefsson wrote: ... Only the code to make it a kernel command line parameter ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: current BK compilation failure on ppc32
      ... On Sat, 3 Jul 2004, Christoph Hellwig wrote: ... (Same seems to be true for amny other files ... compiled-in or a module. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: IDE DMA setting not available on 2.4.23 as a module
      ... > Do you have piix.o module loaded or PIIX support compiled-in? ... I don't see any PIIX4 messages or any BM-DMA ones when ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)