Re: [PATCH v2] pci: Allow read/write access to sysfs I/O portresources

From: Chris Wright
Date: Fri Jul 23 2010 - 13:43:55 EST


* Jesse Barnes (jbarnes@xxxxxxxxxxxxxxxx) wrote:
> On Fri, 23 Jul 2010 09:10:27 -0600
> Alex Williamson <alex.williamson@xxxxxxxxxx> wrote:
>
> > On Mon, 2010-07-19 at 09:45 -0600, Alex Williamson wrote:
> > > PCI sysfs resource files currently only allow mmap'ing. On x86 this
> > > works fine for memory backed BARs, but doesn't work at all for I/O
> > > port backed BARs. Add read/write to I/O port PCI sysfs resource
> > > files to allow userspace access to these device regions.
> > >
> > > Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
> > > ---
> >
> > Any thoughts on this for -next? Thanks,
>
> Yeah, I like it. Unless there are objections I'll pull it in.

Acked-by: Chris Wright <chrisw@xxxxxxxxxx>

I think we may have some room for follow-on cleanups so consolidate the
ioport read/write functions w/ other HAVE_PCI_LEGACY bits...

thanks,
-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/