All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
	"Russell King" <rmk@arm.linux.org.uk>,
	"Adam Belay" <ambx1@neo.rr.com>, "Len Brown" <lenb@kernel.org>,
	"Matthew Garrett" <mjg59@srcf.ucam.org>,
	"Sébastien Dugué" <sebastien.dugue@bull.net>,
	"Alan Cox" <alan@lxorguk.ukuu.org.uk>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch] x86, serial: always probe for legacy COM ports
Date: Fri, 27 Jul 2007 14:05:51 -0400	[thread overview]
Message-ID: <46AA33FF.4070504@garzik.org> (raw)
In-Reply-To: <200707271158.50028.bjorn.helgaas@hp.com>

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

Bjorn Helgaas wrote:
> Andrew, if you drop
>     revert-x86-serial-convert-legacy-com-ports-to-platform-devices.patch
> and apply this, we should have the previous behavior.  I think the
> conversion to platform devices is still worthwhile.  Obviously, I intend
> this as 2.6.23 material.
> 
> 
> Always probe for serial ports at legacy addresses, even if we have PNPBIOS
> or ACPI that should tell us about those ports.
> 
> We have no reports yet of defective firmware that completely omits ports.
> However, Sébastien Dugué <sebastien.dugue@bull.net> reported that the
> NEC Express5800/120Lh with Phoenix BIOS 6.0.5N52, released 7/12/2005,
> reports COM2 first, then COM1 in the ACPI namespace.
> 
> 8250_pnp currently registers devices in namespace order.  On this machine,
> that makes ttyS0=COM2 and ttyS1=COM1, the reverse of what we want.
> 
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

This is still incomplete, as repeatedly stated.  Here is the email, again.

	Jeff




[-- Attachment #2: Attached Message --]
[-- Type: message/rfc822, Size: 2056 bytes --]

From: Jeff Garzik <jeff@garzik.org>
To: Russell King <rmk@arm.linux.org.uk>
Cc: akpm@linux-foundation.org,  mm-commits@vger.kernel.org,  ambx1@neo.rr.com,  bjorn.helgaas@hp.com,  lenb@kernel.org,  mjg59@srcf.ucam.org,  sebastien.dugue@bull.net
Subject: Re: + revert-x86-serial-convert-legacy-com-ports-to-platform-devices.patch added to -mm tree
Date: Tue, 24 Jul 2007 19:21:27 -0400
Message-ID: <46A68977.50800@garzik.org>

Russell King wrote:
> So we shouldn't even try to remove the legacy "legacy port" probing in
> the serial driver like other platforms have done, which this patch minus
> those bits I mentioned actually achieves?

Move [to a new driver / location in tree]?  Sure.  As long as there are 
no probe order issues, module naming issues (I note distinct lack of 
MODULE_ALIAS for example) or other transitions issues.

Remove?  Definitely not.

Even if we apply your suggested solution, updates are still needed:
* fix kernel-parameters.txt

* address transition issues related to module naming.  other transition 
issues?  has anybody even given this any thought?

* no apparent module unload support (regression or just a bug?)

* add docs for x86/x86-64 users (or point to docs in the source). 
Overall this was a highly "stealthy" change over to the new platform 
driver, without much notice at all.  Not optimum, for a popular device 
on Linux's most popular platform.

I have no complaints about platform_device direction, certainly.  But 
this particular commit was incomplete, poorly described, and broke 
decade+ behavior.

	Jeff





  reply	other threads:[~2007-07-27 18:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 17:58 [patch] x86, serial: always probe for legacy COM ports Bjorn Helgaas
2007-07-27 18:05 ` Jeff Garzik [this message]
2007-07-27 20:11   ` Bjorn Helgaas
2007-07-27 20:21     ` Jeff Garzik
2007-07-27 20:26       ` Bjorn Helgaas
2007-07-27 20:35         ` Andrew Morton
2007-07-27 20:49         ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46AA33FF.4070504@garzik.org \
    --to=jeff@garzik.org \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=ambx1@neo.rr.com \
    --cc=bjorn.helgaas@hp.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=sebastien.dugue@bull.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.