login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
8
Re: [PATCH] [POWERPC] Xilinx: hwicap driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jiri Slaby <jirislaby@...>
To: Stephen Neuendorffer <stephen.neuendorffer@...>
Cc: <grant.likely@...>, <linuxppc-dev@...>, <linux-kernel@...>
Subject:
Re: [PATCH] [POWERPC] Xilinx: hwicap driver
Date: Friday, February 8, 2008 - 5:10 am
On 02/08/2008 03:17 AM, Stephen Neuendorffer wrote:
quoted text
> This includes code for new fifo-based xps_hwicap in addition to the > older opb_hwicap, which has a significantly different interface. The > common code between the two drivers is largely shared. > > Significant differences exists between this driver and what is > supported in the EDK drivers. In particular, most of the > architecture-specific code for reconfiguring individual FPGA resources > has been removed. This functionality is likely better provided in a > user-space support library. In addition, read and write access is > supported. In addition, although the xps_hwicap cores support > interrupt-driver mode, this driver only supports polled operation, in > order to make the code simpler, and since the interrupt processing > overhead is likely to slow down the throughput under Linux. > > Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> > > Fixed to add mutexes, and a few style issues. > > Acked-by: Grant Likely <grant.likely@secretlab.ca> > > The final update to xilinx_hwicap.h was missing. > > fix some missing __user tags and incorrect section tags. > convert semaphores to mutexes. > make probed_devices re-entrancy and error condition safe. > fix some backwards memcpys. > some other minor cleanups.
Looks good to me.
quoted text
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> > ---
[...]
quoted text
> diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c > new file mode 100644 > index 0000000..2caac31 > --- /dev/null > +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c > @@ -0,0 +1,923 @@
[...]
quoted text
> +module_param(xhwicap_major, int, S_IRUGO); > +module_param(xhwicap_minor, int, S_IRUGO); > + > +/* An array, which is set to true when the device is registered. */ > +static bool probed_devices[HWICAP_DEVICES]; > +static struct mutex icap_sem;
Just a sideway note, static DEFINE_MUTEX(icap_sem); and you don't need to runtime init it then. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Xilinx: hwicap driver comments
, Jiri Slaby
, (Thu Feb 7, 4:08 pm)
RE: Xilinx: hwicap driver comments
, Stephen Neuendorffer
, (Fri Feb 8, 1:08 pm)
[PATCH] [POWERPC] Xilinx: hwicap driver
, Stephen Neuendorffer
, (Thu Feb 7, 10:17 pm)
Re: [PATCH] [POWERPC] Xilinx: hwicap driver
, Randy Dunlap
, (Fri Feb 8, 12:49 pm)
Re: [PATCH] [POWERPC] Xilinx: hwicap driver
, Jiri Slaby
, (Fri Feb 8, 5:10 am)
RE: Xilinx: hwicap driver comments
, Stephen Neuendorffer
, (Thu Feb 7, 6:31 pm)
Re: Xilinx: hwicap driver comments
, Jiri Slaby
, (Thu Feb 7, 6:39 pm)
Re: Xilinx: hwicap driver comments
, Benjamin Herrenschmidt
, (Thu Feb 7, 5:17 pm)
Re: Xilinx: hwicap driver comments
, Jiri Slaby
, (Thu Feb 7, 5:28 pm)
Re: Xilinx: hwicap driver comments
, Benjamin Herrenschmidt
, (Thu Feb 7, 5:33 pm)
Re: Xilinx: hwicap driver comments
, Grant Likely
, (Thu Feb 7, 5:35 pm)
Re: Xilinx: hwicap driver comments
, Andrew Morton
, (Thu Feb 7, 4:42 pm)
Re: Xilinx: hwicap driver comments
, Josh Boyer
, (Thu Feb 7, 5:35 pm)
Re: Xilinx: hwicap driver comments
, Andrew Morton
, (Thu Feb 7, 6:11 pm)
Re: Xilinx: hwicap driver comments
, Josh Boyer
, (Thu Feb 7, 6:58 pm)
Re: Xilinx: hwicap driver comments
, Grant Likely
, (Thu Feb 7, 4:54 pm)
Re: Xilinx: hwicap driver comments
, Benjamin Herrenschmidt
, (Thu Feb 7, 5:25 pm)
Re: Xilinx: hwicap driver comments
, Andrew Morton
, (Thu Feb 7, 5:21 pm)
Re: Xilinx: hwicap driver comments
, Linus Torvalds
, (Thu Feb 7, 5:40 pm)
Re: Xilinx: hwicap driver comments
, Grant Likely
, (Thu Feb 7, 5:31 pm)
RE: Xilinx: hwicap driver comments
, Stephen Neuendorffer
, (Thu Feb 7, 5:35 pm)
Re: Xilinx: hwicap driver comments
, Andrew Morton
, (Thu Feb 7, 5:53 pm)
RE: Xilinx: hwicap driver comments
, Stephen Neuendorffer
, (Thu Feb 7, 6:00 pm)
Re: Xilinx: hwicap driver comments
, Grant Likely
, (Thu Feb 7, 4:34 pm)
RE: Xilinx: hwicap driver comments
, Stephen Neuendorffer
, (Thu Feb 7, 5:10 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Andrew Morton
2.6.25-mm1
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
530 guests
online.
Online users
strcmp
Syndicate