All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: xen-devel@lists.xensource.com, keir@xen.org,
	Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com,
	George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
	James.McKenzie@citrix.com, roger.cruz@virtualcomputer.com,
	tom.goetz@virtualcomputer.com
Subject: Re: Re: [PATCH 1 of 3] xen: Automatically find serial port on PCI/PCIe and AMT devices
Date: Sat, 9 Jul 2011 09:15:55 -0400	[thread overview]
Message-ID: <20110709131555.GA26295@dumpdata.com> (raw)
In-Reply-To: <4E16BA180200007800072A4B@nat28.tlf.novell.com>

On Fri, Jul 08, 2011 at 08:04:40AM +0100, Jan Beulich wrote:
> >>> Konrad Rzeszutek Wilk  07/07/11 6:36 PM >>>
> >On Thu, Jul 07, 2011 at 04:56:23PM +0100, Jan Beulich wrote:
> >> >>> On 07.07.11 at 15:59, Konrad Rzeszutek Wilk  wrote:
> >> > +              bar0 = pci_conf_read32 (b, d, f, PCI_BASE_ADDRESS_0);
> >> 
> >> Why would a serial port only be allowed to be on the port specified
> >> with BAR0? E.g. if you have a serial card with multiple ports, multiple
> >> BARs could be candidates.
> >> 
> >> Also, why would the first one found be it?
> >
> >Because that is usually COM1. You can still do com1=115200,8n1,magic
> >com2=115200,8n1,0xd900,0 to have both of them available.
> 
> But the handling here is being called for com1= and com2=
> equally. For something not just for somebody's special purposes,
> the index from the calling function should minimally be passed
> (and the BAR to look at adjusted accordingly).

<nods> Will prep a patch.
> 
> Also I wonder why the token is "magic" rather than, say, "pci".

No idea, but 'pci' sounds much better. Will prep up a patch for that.
> 
> Jan
> 

  reply	other threads:[~2011-07-09 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08  7:04 Re: [PATCH 1 of 3] xen: Automatically find serial port on PCI/PCIe and AMT devices Jan Beulich
2011-07-09 13:15 ` Konrad Rzeszutek Wilk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-07 13:59 [PATCH 0 of 3] Patches for PCI serial cards (v1) Konrad Rzeszutek Wilk
2011-07-07 13:59 ` [PATCH 1 of 3] xen: Automatically find serial port on PCI/PCIe and AMT devices Konrad Rzeszutek Wilk
2011-07-07 15:56   ` Jan Beulich
2011-07-07 16:35     ` Konrad Rzeszutek Wilk

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=20110709131555.GA26295@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=James.McKenzie@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@novell.com \
    --cc=keir@xen.org \
    --cc=roger.cruz@virtualcomputer.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tom.goetz@virtualcomputer.com \
    --cc=xen-devel@lists.xensource.com \
    /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.