[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110210233100.e12e8f6a.akpm@linux-foundation.org>
Date: Thu, 10 Feb 2011 23:31:00 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: pratyush <pratyush.anand@...com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, Greg KH <gregkh@...e.de>,
Jesse Barnes <jbarnes@...tuousgeek.org>
Subject: Re: [PATCH V3 1/1] ST SPEAr: PCIE gadget suppport
On Fri, 11 Feb 2011 12:52:04 +0530 pratyush <pratyush.anand@...com> wrote:
> >>> This interface implies that there will only ever be one device in the
> >>> machine, yes? Seems a bit short-sighted?
> >>>
> >>
> >> This device supports only one BAR in EP mode.
> >
> > I don't understand that.
> >
> > What happens if someone builds a computer with three of these devices
> > in it?
> >
>
> I understood it. I will modify the code to work with multiple instances of
> pcie device.
I don't think you need to go that far, unless you see a significant
likelihood think that such a computer might be created one day. This
depends on how hard and risky such a change is, of course.
But the current driver's userspace interface should at least
anticipate the possibility, so you aren't trapped into a weird or
non-back-compatible interface in the future.
So for now you might choose to do something as simple as renaming
/config/pcie-gadget to /config/pcie-gadget0 and leave it at that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists