mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ed Vance <EdV@macrolink.com>
To: "'Jeff Garzik'" <jgarzik@mandrakesoft.com>,
	Russell King <rmk@arm.linux.org.uk>
Cc: "'linux-serial'" <linux-serial@vger.kernel.org>,
	"'linux-kernel'" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] serial.c procfs kudzu 2nd try - discussion
Date: Tue, 12 Mar 2002 17:47:20 -0800	[thread overview]
Message-ID: <11E89240C407D311958800A0C9ACF7D13A76F7@EXCHANGE> (raw)

Jeff Garzik wrote:
> 
> Russell King wrote:
> 
> >On Mon, Mar 11, 2002 at 05:41:09PM -0800, Ed Vance wrote:
> >
> >>2. Does anybody know of anything that will break because of the leading 
> >>   zeros that are now present on the address field? 
> >>
> >
> >I'm not overly happy with this idea - there isn't anything that says an
> >ioport address has 4 digits.  I know of machines where an ioport address
> >has 8, and I'm sure on the Alpha or Sparc64 its probably 16 digits.
> >
> Agreed.  Standard portability convention seems to say that one treats io 
> ports and io mem both as unsigned long, including when printing...

Yeah. It was pretty ugly. My brain was caught in an x86-think well. I will
resubmit with serinfo back to 1.0, all addresses in free form as they were
before, proper lines for memory mapped ports (tagged "port:"), and no lines
generated for nonexistent ports. 

Russell King wrote:
> 
> Then file a bug against kudzu and get them to fix that so it doesn't
> SEGV when it finds something it doesn't like, and teach it about the
> 'mem' tag.
> 
> If kudzu ignores the serinfo: line as well, that's also another kudzu
> bug.

Kudzu ignores all lines that do not contain "uart", including the serinfo
line. I will ask Red Hat to change pciserial.c to look for "mem" if "port"
is not found and handle them interchangeably, so we can use the "mem" tag
later, and to check the returned values of the string functions before
attempting a de-reference.

Thanks for the good input.

Ed

---------------------------------------------------------------- 
Ed Vance              serial24@macrolink.com
Macrolink, Inc.       1500 N. Kellogg Dr  Anaheim, CA  92807
----------------------------------------------------------------


                 reply	other threads:[~2002-03-13  1:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=11E89240C407D311958800A0C9ACF7D13A76F7@EXCHANGE \
    --to=edv@macrolink.com \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®