* [PATCH 3/7] Documentation/gpio.txt: explain poll/select usage
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
` (3 preceding siblings ...)
2010-11-18 20:27 ` [PATCH 7/7] MAINTAINERS: update documentation entries Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
2010-11-18 20:27 ` [PATCH 4/7] Documentation: change email address for Hans Koch Randy Dunlap
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, Bernhard Walle
From: Bernhard Walle <walle@corscience.de>
Add a bit more information how to use poll(2) on GPIO value files
correctly. For me it was not clear that I need to poll(2) for
POLLPRI|POLLERR or select(2) for exceptfds.
Signed-off-by: Bernhard Walle <walle@corscience.de>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/gpio.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
--- linux-2.6.37-rc2-git4.orig/Documentation/gpio.txt
+++ linux-2.6.37-rc2-git4/Documentation/gpio.txt
@@ -617,6 +617,16 @@ and have the following read/write attrib
is configured as an output, this value may be written;
any nonzero value is treated as high.
+ If the pin can be configured as interrupt-generating interrupt
+ and if it has been configured to generate interrupts (see the
+ description of "edge"), you can poll(2) on that file and
+ poll(2) will return whenever the interrupt was triggered. If
+ you use poll(2), set the events POLLPRI and POLLERR. If you
+ use select(2), set the file descriptor in exceptfds. After
+ poll(2) returns, either lseek(2) to the beginning of the sysfs
+ file and read the new value or close the file and re-open it
+ to read the value.
+
"edge" ... reads as either "none", "rising", "falling", or
"both". Write these strings to select the signal edge(s)
that will make poll(2) on the "value" file return.
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 6/7] Documentation/development-process: more staging info
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
2010-11-18 20:27 ` [PATCH 2/7] Documentation: make configfs example code simpler, clearer Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
2010-11-18 20:27 ` [PATCH 5/7] Documentation/development-process: use -next trees instead of staging Randy Dunlap
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, Andres Salomon, Greg Kroah-Hartman
From: Andres Salomon <dilinger@queued.net>
Document things that I would've liked to have known when submitting a driver
to gregkh for staging.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/development-process/2.Process | 23 ++++++++++++++----
1 file changed, 18 insertions(+), 5 deletions(-)
--- linux-2.6.37-rc2-git4.orig/Documentation/development-process/2.Process
+++ linux-2.6.37-rc2-git4/Documentation/development-process/2.Process
@@ -303,12 +303,25 @@ volatility of linux-next tends to make i
See http://lwn.net/Articles/289013/ for more information on this topic, and
stay tuned; much is still in flux where linux-next is involved.
-Besides the mmotm and linux-next trees, the kernel source tree now contains
-the drivers/staging/ directory and many sub-directories for drivers or
-filesystems that are on their way to being added to the kernel tree
-proper, but they remain in drivers/staging/ while they still need more
-work.
+2.4.1: STAGING TREES
+The kernel source tree now contains the drivers/staging/ directory, where
+many sub-directories for drivers or filesystems that are on their way to
+being added to the kernel tree live. They remain in drivers/staging while
+they still need more work; once complete, they can be moved into the
+kernel proper. This is a way to keep track of drivers that aren't
+up to Linux kernel coding or quality standards, but people may want to use
+them and track development.
+
+Greg Kroah-Hartman currently (as of 2.6.36) maintains the staging tree.
+Drivers that still need work are sent to him, with each driver having
+its own subdirectory in drivers/staging/. Along with the driver source
+files, a TODO file should be present in the directory as well. The TODO
+file lists the pending work that the driver needs for acceptance into
+the kernel proper, as well as a list of people that should be Cc'd for any
+patches to the driver. Staging drivers that don't currently build should
+have their config entries depend upon CONFIG_BROKEN. Once they can
+be successfully built without outside patches, CONFIG_BROKEN can be removed.
2.5: TOOLS
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 7/7] MAINTAINERS: update documentation entries
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
` (2 preceding siblings ...)
2010-11-18 20:27 ` [PATCH 5/7] Documentation/development-process: use -next trees instead of staging Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
2010-11-18 20:27 ` [PATCH 3/7] Documentation/gpio.txt: explain poll/select usage Randy Dunlap
2010-11-18 20:27 ` [PATCH 4/7] Documentation: change email address for Hans Koch Randy Dunlap
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
From: Randy Dunlap <randy.dunlap@oracle.com>
Update kernel-doc and Documentation maintainers info.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
MAINTAINERS | 2 ++
1 file changed, 2 insertions(+)
--- linux-2.6.37-rc2-git4.orig/MAINTAINERS
+++ linux-2.6.37-rc2-git4/MAINTAINERS
@@ -2008,6 +2008,7 @@ F: drivers/hwmon/dme1737.c
DOCBOOK FOR DOCUMENTATION
M: Randy Dunlap <rdunlap@xenotime.net>
S: Maintained
+F: scripts/kernel-doc
DOCKING STATION DRIVER
M: Shaohua Li <shaohua.li@intel.com>
@@ -2018,6 +2019,7 @@ F: drivers/acpi/dock.c
DOCUMENTATION
M: Randy Dunlap <rdunlap@xenotime.net>
L: linux-doc@vger.kernel.org
+T: quilt oss.oracle.com/~rdunlap/kernel-doc-patches/current/
S: Maintained
F: Documentation/
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/7] Documentation: make configfs example code simpler, clearer
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
2010-11-18 20:27 ` [PATCH 6/7] Documentation/development-process: more staging info Randy Dunlap
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, Dan Carpenter, Joel Becker
From: Dan Carpenter <error27@gmail.com>
If "p" is NULL then it will cause an oops when we pass it to
simple_strtoul(). In this case "p" can not be NULL so I removed the
check. I also changed the check a little to make it more explicit that
we are testing whether p points to the NUL char.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
V2: Added some parenthesis to make the precedence more clear.
---
Documentation/filesystems/configfs/configfs_example_explicit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.37-rc2-git4.orig/Documentation/filesystems/configfs/configfs_example_explicit.c
+++ linux-2.6.37-rc2-git4/Documentation/filesystems/configfs/configfs_example_explicit.c
@@ -89,7 +89,7 @@ static ssize_t childless_storeme_write(s
char *p = (char *) page;
tmp = simple_strtoul(p, &p, 10);
- if (!p || (*p && (*p != '\n')))
+ if ((*p != '\0') && (*p != '\n'))
return -EINVAL;
if (tmp > INT_MAX)
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/7] kernel-doc: escape xml for structs
@ 2010-11-18 20:27 Randy Dunlap
2010-11-18 20:27 ` [PATCH 2/7] Documentation: make configfs example code simpler, clearer Randy Dunlap
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
From: Randy Dunlap <randy.dunlap@oracle.com>
scripts/kernel-doc was leaving unescaped '<', '>', and '&' in
generated xml output for structs. This causes xml parser errors.
Convert these characters to "<", ">", and "&" as needed
to prevent errors.
Most of the conversion was already done; complete it just before
output.
Documentation/DocBook/device-drivers.xml:41883: parser error : StartTag: invalid element name
#define INPUT_KEYMAP_BY_INDEX (1 << 0)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
scripts/kernel-doc | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
--- linux-2.6.37-rc2-git4.orig/scripts/kernel-doc
+++ linux-2.6.37-rc2-git4/scripts/kernel-doc
@@ -5,7 +5,7 @@ use strict;
## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
## Copyright (C) 2001 Simon Huggins ##
-## Copyright (C) 2005-2009 Randy Dunlap ##
+## Copyright (C) 2005-2010 Randy Dunlap ##
## ##
## #define enhancements by Armin Kuster <akuster@mvista.com> ##
## Copyright (c) 2000 MontaVista Software, Inc. ##
@@ -453,7 +453,7 @@ sub output_highlight {
if ($output_mode eq "html" || $output_mode eq "xml") {
$contents = local_unescape($contents);
# convert data read & converted thru xml_escape() into &xyz; format:
- $contents =~ s/\\\\\\/&/g;
+ $contents =~ s/\\\\\\/\&/g;
}
# print STDERR "contents b4:$contents\n";
eval $dohighlight;
@@ -770,7 +770,11 @@ sub output_struct_xml(%) {
print $args{'type'} . " " . $args{'struct'} . " {\n";
foreach $parameter (@{$args{'parameterlist'}}) {
if ($parameter =~ /^#/) {
- print "$parameter\n";
+ my $prm = $parameter;
+ # convert data read & converted thru xml_escape() into &xyz; format:
+ # This allows us to have #define macros interspersed in a struct.
+ $prm =~ s/\\\\\\/\&/g;
+ print "$prm\n";
next;
}
@@ -1701,6 +1705,8 @@ sub push_parameter($$$) {
}
}
+ $param = xml_escape($param);
+
# strip spaces from $param so that it is one continous string
# on @parameterlist;
# this fixes a problem where check_sections() cannot find
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 4/7] Documentation: change email address for Hans Koch
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
` (4 preceding siblings ...)
2010-11-18 20:27 ` [PATCH 3/7] Documentation/gpio.txt: explain poll/select usage Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, Hans J. Koch
From: Hans J. Koch <hjk@hansjkoch.de>
My old mail address doesn't exist anymore. This changes all occurrences
to my new address.
Signed-off-by: Hans J. Koch <hjk@hansjkoch.de>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/DocBook/uio-howto.tmpl | 6 +++---
Documentation/hwmon/lm93 | 2 +-
Documentation/hwmon/max6650 | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
--- linux-2.6.37-rc2-git4.orig/Documentation/DocBook/uio-howto.tmpl
+++ linux-2.6.37-rc2-git4/Documentation/DocBook/uio-howto.tmpl
@@ -16,7 +16,7 @@
</orgname>
<address>
- <email>hjk@linutronix.de</email>
+ <email>hjk@hansjkoch.de</email>
</address>
</affiliation>
</author>
@@ -114,7 +114,7 @@ GPL version 2.
<para>If you know of any translations for this document, or you are
interested in translating it, please email me
-<email>hjk@linutronix.de</email>.
+<email>hjk@hansjkoch.de</email>.
</para>
</sect1>
@@ -171,7 +171,7 @@ interested in translating it, please ema
<title>Feedback</title>
<para>Find something wrong with this document? (Or perhaps something
right?) I would love to hear from you. Please email me at
- <email>hjk@linutronix.de</email>.</para>
+ <email>hjk@hansjkoch.de</email>.</para>
</sect1>
</chapter>
--- linux-2.6.37-rc2-git4.orig/Documentation/hwmon/lm93
+++ linux-2.6.37-rc2-git4/Documentation/hwmon/lm93
@@ -11,7 +11,7 @@ Authors:
Mark M. Hoffman <mhoffman@lightlink.com>
Ported to 2.6 by Eric J. Bowersox <ericb@aspsys.com>
Adapted to 2.6.20 by Carsten Emde <ce@osadl.org>
- Modified for mainline integration by Hans J. Koch <hjk@linutronix.de>
+ Modified for mainline integration by Hans J. Koch <hjk@hansjkoch.de>
Module Parameters
-----------------
--- linux-2.6.37-rc2-git4.orig/Documentation/hwmon/max6650
+++ linux-2.6.37-rc2-git4/Documentation/hwmon/max6650
@@ -8,7 +8,7 @@ Supported chips:
Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf
Authors:
- Hans J. Koch <hjk@linutronix.de>
+ Hans J. Koch <hjk@hansjkoch.de>
John Morris <john.morris@spirentcom.com>
Claus Gindhart <claus.gindhart@kontron.com>
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 5/7] Documentation/development-process: use -next trees instead of staging
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
2010-11-18 20:27 ` [PATCH 2/7] Documentation: make configfs example code simpler, clearer Randy Dunlap
2010-11-18 20:27 ` [PATCH 6/7] Documentation/development-process: more staging info Randy Dunlap
@ 2010-11-18 20:27 ` Randy Dunlap
2010-11-18 20:27 ` [PATCH 7/7] MAINTAINERS: update documentation entries Randy Dunlap
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2010-11-18 20:27 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds, Greg Kroah-Hartman, Andres Salomon
From: Andres Salomon <dilinger@queued.net>
This is confusing, as we have "staging" trees for drivers/staging. Call
them -next trees.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/development-process/2.Process | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.37-rc2-git4.orig/Documentation/development-process/2.Process
+++ linux-2.6.37-rc2-git4/Documentation/development-process/2.Process
@@ -154,7 +154,7 @@ The stages that a patch goes through are
inclusion, it should be accepted by a relevant subsystem maintainer -
though this acceptance is not a guarantee that the patch will make it
all the way to the mainline. The patch will show up in the maintainer's
- subsystem tree and into the staging trees (described below). When the
+ subsystem tree and into the -next trees (described below). When the
process works, this step leads to more extensive review of the patch and
the discovery of any problems resulting from the integration of this
patch with work being done by others.
@@ -236,7 +236,7 @@ finding the right maintainer. Sending p
normally the right way to go.
-2.4: STAGING TREES
+2.4: NEXT TREES
The chain of subsystem trees guides the flow of patches into the kernel,
but it also raises an interesting question: what if somebody wants to look
@@ -250,7 +250,7 @@ changes land in the mainline kernel. On
the interesting subsystem trees, but that would be a big and error-prone
job.
-The answer comes in the form of staging trees, where subsystem trees are
+The answer comes in the form of -next trees, where subsystem trees are
collected for testing and review. The older of these trees, maintained by
Andrew Morton, is called "-mm" (for memory management, which is how it got
started). The -mm tree integrates patches from a long list of subsystem
@@ -275,7 +275,7 @@ directory at:
Use of the MMOTM tree is likely to be a frustrating experience, though;
there is a definite chance that it will not even compile.
-The other staging tree, started more recently, is linux-next, maintained by
+The other -next tree, started more recently, is linux-next, maintained by
Stephen Rothwell. The linux-next tree is, by design, a snapshot of what
the mainline is expected to look like after the next merge window closes.
Linux-next trees are announced on the linux-kernel and linux-next mailing
--
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-18 20:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 20:27 [PATCH 1/7] kernel-doc: escape xml for structs Randy Dunlap
2010-11-18 20:27 ` [PATCH 2/7] Documentation: make configfs example code simpler, clearer Randy Dunlap
2010-11-18 20:27 ` [PATCH 6/7] Documentation/development-process: more staging info Randy Dunlap
2010-11-18 20:27 ` [PATCH 5/7] Documentation/development-process: use -next trees instead of staging Randy Dunlap
2010-11-18 20:27 ` [PATCH 7/7] MAINTAINERS: update documentation entries Randy Dunlap
2010-11-18 20:27 ` [PATCH 3/7] Documentation/gpio.txt: explain poll/select usage Randy Dunlap
2010-11-18 20:27 ` [PATCH 4/7] Documentation: change email address for Hans Koch Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox