Skip to content

Commit b361311

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2 parents 7505afe + 5983fe2 commit b361311

436 files changed

Lines changed: 5400 additions & 3493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/uio-howto.tmpl‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,11 @@ Here's a description of the fields of <varname>struct uio_mem</varname>:
520520
</para>
521521

522522
<itemizedlist>
523+
<listitem><para>
524+
<varname>const char *name</varname>: Optional. Set this to help identify
525+
the memory region, it will show up in the corresponding sysfs node.
526+
</para></listitem>
527+
523528
<listitem><para>
524529
<varname>int memtype</varname>: Required if the mapping is used. Set this to
525530
<varname>UIO_MEM_PHYS</varname> if you you have physical memory on your
@@ -553,7 +558,7 @@ instead to remember such an address.
553558
</itemizedlist>
554559

555560
<para>
556-
Please do not touch the <varname>kobj</varname> element of
561+
Please do not touch the <varname>map</varname> element of
557562
<varname>struct uio_mem</varname>! It is used by the UIO framework
558563
to set up sysfs files for this mapping. Simply leave it alone.
559564
</para>

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ qcom Qualcomm, Inc.
3333
ramtron Ramtron International
3434
samsung Samsung Semiconductor
3535
schindler Schindler
36+
sil Silicon Image
3637
simtek
3738
sirf SiRF Technology, Inc.
3839
stericsson ST-Ericsson

‎Documentation/filesystems/btrfs.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ IRC network.
6363
Userspace tools for creating and manipulating Btrfs file systems are
6464
available from the git repository at the following location:
6565

66-
http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs-unstable.git
67-
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git
66+
http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs.git
67+
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
6868

6969
These include the following tools:
7070

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
The I2C protocol knows about two kinds of device addresses: normal 7 bit
22
addresses, and an extended set of 10 bit addresses. The sets of addresses
33
do not intersect: the 7 bit address 0x10 is not the same as the 10 bit
4-
address 0x10 (though a single device could respond to both of them). You
5-
select a 10 bit address by adding an extra byte after the address
6-
byte:
7-
S Addr7 Rd/Wr ....
8-
becomes
9-
S 11110 Addr10 Rd/Wr
10-
S is the start bit, Rd/Wr the read/write bit, and if you count the number
11-
of bits, you will see the there are 8 after the S bit for 7 bit addresses,
12-
and 16 after the S bit for 10 bit addresses.
4+
address 0x10 (though a single device could respond to both of them).
135

14-
WARNING! The current 10 bit address support is EXPERIMENTAL. There are
15-
several places in the code that will cause SEVERE PROBLEMS with 10 bit
16-
addresses, even though there is some basic handling and hooks. Also,
17-
almost no supported adapter handles the 10 bit addresses correctly.
6+
I2C messages to and from 10-bit address devices have a different format.
7+
See the I2C specification for the details.
188

19-
As soon as a real 10 bit address device is spotted 'in the wild', we
20-
can and will add proper support. Right now, 10 bit address devices
21-
are defined by the I2C protocol, but we have never seen a single device
22-
which supports them.
9+
The current 10 bit address support is minimal. It should work, however
10+
you can expect some problems along the way:
11+
* Not all bus drivers support 10-bit addresses. Some don't because the
12+
hardware doesn't support them (SMBus doesn't require 10-bit address
13+
support for example), some don't because nobody bothered adding the
14+
code (or it's there but not working properly.) Software implementation
15+
(i2c-algo-bit) is known to work.
16+
* Some optional features do not support 10-bit addresses. This is the
17+
case of automatic detection and instantiation of devices by their,
18+
drivers, for example.
19+
* Many user-space packages (for example i2c-tools) lack support for
20+
10-bit addresses.
21+
22+
Note that 10-bit address devices are still pretty rare, so the limitations
23+
listed above could stay for a long time, maybe even forever if nobody
24+
needs them to be fixed.

‎Documentation/power/devices.txt‎

Lines changed: 69 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ please refer directly to the source code for more information about it.
123123
Subsystem-Level Methods
124124
-----------------------
125125
The core methods to suspend and resume devices reside in struct dev_pm_ops
126-
pointed to by the pm member of struct bus_type, struct device_type and
127-
struct class. They are mostly of interest to the people writing infrastructure
128-
for buses, like PCI or USB, or device type and device class drivers.
126+
pointed to by the ops member of struct dev_pm_domain, or by the pm member of
127+
struct bus_type, struct device_type and struct class. They are mostly of
128+
interest to the people writing infrastructure for platforms and buses, like PCI
129+
or USB, or device type and device class drivers.
129130

130131
Bus drivers implement these methods as appropriate for the hardware and the
131132
drivers using it; PCI works differently from USB, and so on. Not many people
@@ -139,41 +140,57 @@ sequencing in the driver model tree.
139140

140141
/sys/devices/.../power/wakeup files
141142
-----------------------------------
142-
All devices in the driver model have two flags to control handling of wakeup
143-
events (hardware signals that can force the device and/or system out of a low
144-
power state). These flags are initialized by bus or device driver code using
143+
All device objects in the driver model contain fields that control the handling
144+
of system wakeup events (hardware signals that can force the system out of a
145+
sleep state). These fields are initialized by bus or device driver code using
145146
device_set_wakeup_capable() and device_set_wakeup_enable(), defined in
146147
include/linux/pm_wakeup.h.
147148

148-
The "can_wakeup" flag just records whether the device (and its driver) can
149+
The "power.can_wakeup" flag just records whether the device (and its driver) can
149150
physically support wakeup events. The device_set_wakeup_capable() routine
150-
affects this flag. The "should_wakeup" flag controls whether the device should
151-
try to use its wakeup mechanism. device_set_wakeup_enable() affects this flag;
152-
for the most part drivers should not change its value. The initial value of
153-
should_wakeup is supposed to be false for the majority of devices; the major
154-
exceptions are power buttons, keyboards, and Ethernet adapters whose WoL
155-
(wake-on-LAN) feature has been set up with ethtool. It should also default
156-
to true for devices that don't generate wakeup requests on their own but merely
157-
forward wakeup requests from one bus to another (like PCI bridges).
151+
affects this flag. The "power.wakeup" field is a pointer to an object of type
152+
struct wakeup_source used for controlling whether or not the device should use
153+
its system wakeup mechanism and for notifying the PM core of system wakeup
154+
events signaled by the device. This object is only present for wakeup-capable
155+
devices (i.e. devices whose "can_wakeup" flags are set) and is created (or
156+
removed) by device_set_wakeup_capable().
158157

159158
Whether or not a device is capable of issuing wakeup events is a hardware
160159
matter, and the kernel is responsible for keeping track of it. By contrast,
161160
whether or not a wakeup-capable device should issue wakeup events is a policy
162161
decision, and it is managed by user space through a sysfs attribute: the
163-
power/wakeup file. User space can write the strings "enabled" or "disabled" to
164-
set or clear the "should_wakeup" flag, respectively. This file is only present
165-
for wakeup-capable devices (i.e. devices whose "can_wakeup" flags are set)
166-
and is created (or removed) by device_set_wakeup_capable(). Reads from the
167-
file will return the corresponding string.
168-
169-
The device_may_wakeup() routine returns true only if both flags are set.
162+
"power/wakeup" file. User space can write the strings "enabled" or "disabled"
163+
to it to indicate whether or not, respectively, the device is supposed to signal
164+
system wakeup. This file is only present if the "power.wakeup" object exists
165+
for the given device and is created (or removed) along with that object, by
166+
device_set_wakeup_capable(). Reads from the file will return the corresponding
167+
string.
168+
169+
The "power/wakeup" file is supposed to contain the "disabled" string initially
170+
for the majority of devices; the major exceptions are power buttons, keyboards,
171+
and Ethernet adapters whose WoL (wake-on-LAN) feature has been set up with
172+
ethtool. It should also default to "enabled" for devices that don't generate
173+
wakeup requests on their own but merely forward wakeup requests from one bus to
174+
another (like PCI Express ports).
175+
176+
The device_may_wakeup() routine returns true only if the "power.wakeup" object
177+
exists and the corresponding "power/wakeup" file contains the string "enabled".
170178
This information is used by subsystems, like the PCI bus type code, to see
171179
whether or not to enable the devices' wakeup mechanisms. If device wakeup
172180
mechanisms are enabled or disabled directly by drivers, they also should use
173181
device_may_wakeup() to decide what to do during a system sleep transition.
174-
However for runtime power management, wakeup events should be enabled whenever
175-
the device and driver both support them, regardless of the should_wakeup flag.
176-
182+
Device drivers, however, are not supposed to call device_set_wakeup_enable()
183+
directly in any case.
184+
185+
It ought to be noted that system wakeup is conceptually different from "remote
186+
wakeup" used by runtime power management, although it may be supported by the
187+
same physical mechanism. Remote wakeup is a feature allowing devices in
188+
low-power states to trigger specific interrupts to signal conditions in which
189+
they should be put into the full-power state. Those interrupts may or may not
190+
be used to signal system wakeup events, depending on the hardware design. On
191+
some systems it is impossible to trigger them from system sleep states. In any
192+
case, remote wakeup should always be enabled for runtime power management for
193+
all devices and drivers that support it.
177194

178195
/sys/devices/.../power/control files
179196
------------------------------------
@@ -249,20 +266,31 @@ for every device before the next phase begins. Not all busses or classes
249266
support all these callbacks and not all drivers use all the callbacks. The
250267
various phases always run after tasks have been frozen and before they are
251268
unfrozen. Furthermore, the *_noirq phases run at a time when IRQ handlers have
252-
been disabled (except for those marked with the IRQ_WAKEUP flag).
253-
254-
All phases use bus, type, or class callbacks (that is, methods defined in
255-
dev->bus->pm, dev->type->pm, or dev->class->pm). These callbacks are mutually
256-
exclusive, so if the device type provides a struct dev_pm_ops object pointed to
257-
by its pm field (i.e. both dev->type and dev->type->pm are defined), the
258-
callbacks included in that object (i.e. dev->type->pm) will be used. Otherwise,
259-
if the class provides a struct dev_pm_ops object pointed to by its pm field
260-
(i.e. both dev->class and dev->class->pm are defined), the PM core will use the
261-
callbacks from that object (i.e. dev->class->pm). Finally, if the pm fields of
262-
both the device type and class objects are NULL (or those objects do not exist),
263-
the callbacks provided by the bus (that is, the callbacks from dev->bus->pm)
264-
will be used (this allows device types to override callbacks provided by bus
265-
types or classes if necessary).
269+
been disabled (except for those marked with the IRQF_NO_SUSPEND flag).
270+
271+
All phases use PM domain, bus, type, or class callbacks (that is, methods
272+
defined in dev->pm_domain->ops, dev->bus->pm, dev->type->pm, or dev->class->pm).
273+
These callbacks are regarded by the PM core as mutually exclusive. Moreover,
274+
PM domain callbacks always take precedence over bus, type and class callbacks,
275+
while type callbacks take precedence over bus and class callbacks, and class
276+
callbacks take precedence over bus callbacks. To be precise, the following
277+
rules are used to determine which callback to execute in the given phase:
278+
279+
1. If dev->pm_domain is present, the PM core will attempt to execute the
280+
callback included in dev->pm_domain->ops. If that callback is not
281+
present, no action will be carried out for the given device.
282+
283+
2. Otherwise, if both dev->type and dev->type->pm are present, the callback
284+
included in dev->type->pm will be executed.
285+
286+
3. Otherwise, if both dev->class and dev->class->pm are present, the
287+
callback included in dev->class->pm will be executed.
288+
289+
4. Otherwise, if both dev->bus and dev->bus->pm are present, the callback
290+
included in dev->bus->pm will be executed.
291+
292+
This allows PM domains and device types to override callbacks provided by bus
293+
types or device classes if necessary.
266294

267295
These callbacks may in turn invoke device- or driver-specific methods stored in
268296
dev->driver->pm, but they don't have to.
@@ -283,9 +311,8 @@ When the system goes into the standby or memory sleep state, the phases are:
283311

284312
After the prepare callback method returns, no new children may be
285313
registered below the device. The method may also prepare the device or
286-
driver in some way for the upcoming system power transition (for
287-
example, by allocating additional memory required for this purpose), but
288-
it should not put the device into a low-power state.
314+
driver in some way for the upcoming system power transition, but it
315+
should not put the device into a low-power state.
289316

290317
2. The suspend methods should quiesce the device to stop it from performing
291318
I/O. They also may save the device registers and put it into the

‎Documentation/power/runtime_pm.txt‎

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,33 @@ struct dev_pm_ops {
4444
};
4545

4646
The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks
47-
are executed by the PM core for either the power domain, or the device type
48-
(if the device power domain's struct dev_pm_ops does not exist), or the class
49-
(if the device power domain's and type's struct dev_pm_ops object does not
50-
exist), or the bus type (if the device power domain's, type's and class'
51-
struct dev_pm_ops objects do not exist) of the given device, so the priority
52-
order of callbacks from high to low is that power domain callbacks, device
53-
type callbacks, class callbacks and bus type callbacks, and the high priority
54-
one will take precedence over low priority one. The bus type, device type and
55-
class callbacks are referred to as subsystem-level callbacks in what follows,
56-
and generally speaking, the power domain callbacks are used for representing
57-
power domains within a SoC.
47+
are executed by the PM core for the device's subsystem that may be either of
48+
the following:
49+
50+
1. PM domain of the device, if the device's PM domain object, dev->pm_domain,
51+
is present.
52+
53+
2. Device type of the device, if both dev->type and dev->type->pm are present.
54+
55+
3. Device class of the device, if both dev->class and dev->class->pm are
56+
present.
57+
58+
4. Bus type of the device, if both dev->bus and dev->bus->pm are present.
59+
60+
The PM core always checks which callback to use in the order given above, so the
61+
priority order of callbacks from high to low is: PM domain, device type, class
62+
and bus type. Moreover, the high-priority one will always take precedence over
63+
a low-priority one. The PM domain, bus type, device type and class callbacks
64+
are referred to as subsystem-level callbacks in what follows.
5865

5966
By default, the callbacks are always invoked in process context with interrupts
6067
enabled. However, subsystems can use the pm_runtime_irq_safe() helper function
61-
to tell the PM core that a device's ->runtime_suspend() and ->runtime_resume()
62-
callbacks should be invoked in atomic context with interrupts disabled.
63-
This implies that these callback routines must not block or sleep, but it also
64-
means that the synchronous helper functions listed at the end of Section 4 can
65-
be used within an interrupt handler or in an atomic context.
68+
to tell the PM core that their ->runtime_suspend(), ->runtime_resume() and
69+
->runtime_idle() callbacks may be invoked in atomic context with interrupts
70+
disabled for a given device. This implies that the callback routines in
71+
question must not block or sleep, but it also means that the synchronous helper
72+
functions listed at the end of Section 4 may be used for that device within an
73+
interrupt handler or generally in an atomic context.
6674

6775
The subsystem-level suspend callback is _entirely_ _responsible_ for handling
6876
the suspend of the device as appropriate, which may, but need not include

‎Documentation/serial/serial-rs485.txt‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,23 @@
9797

9898
struct serial_rs485 rs485conf;
9999

100-
/* Set RS485 mode: */
100+
/* Enable RS485 mode: */
101101
rs485conf.flags |= SER_RS485_ENABLED;
102102

103+
/* Set logical level for RTS pin equal to 1 when sending: */
104+
rs485conf.flags |= SER_RS485_RTS_ON_SEND;
105+
/* or, set logical level for RTS pin equal to 0 when sending: */
106+
rs485conf.flags &= ~(SER_RS485_RTS_ON_SEND);
107+
108+
/* Set logical level for RTS pin equal to 1 after sending: */
109+
rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
110+
/* or, set logical level for RTS pin equal to 0 after sending: */
111+
rs485conf.flags &= ~(SER_RS485_RTS_AFTER_SEND);
112+
103113
/* Set rts delay before send, if needed: */
104-
rs485conf.flags |= SER_RS485_RTS_BEFORE_SEND;
105114
rs485conf.delay_rts_before_send = ...;
106115

107116
/* Set rts delay after send, if needed: */
108-
rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
109117
rs485conf.delay_rts_after_send = ...;
110118

111119
/* Set this flag if you want to receive data even whilst sending data */

‎MAINTAINERS‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
789789
S: Maintained
790790
T: git git://git.pengutronix.de/git/imx/linux-2.6.git
791791
F: arch/arm/mach-mx*/
792+
F: arch/arm/mach-imx/
792793
F: arch/arm/plat-mxc/
793794

794795
ARM/FREESCALE IMX51
@@ -804,6 +805,13 @@ S: Maintained
804805
T: git git://git.linaro.org/people/shawnguo/linux-2.6.git
805806
F: arch/arm/mach-imx/*imx6*
806807

808+
ARM/FREESCALE MXS ARM ARCHITECTURE
809+
M: Shawn Guo <shawn.guo@linaro.org>
810+
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
811+
S: Maintained
812+
T: git git://git.linaro.org/people/shawnguo/linux-2.6.git
813+
F: arch/arm/mach-mxs/
814+
807815
ARM/GLOMATION GESBC9312SX MACHINE SUPPORT
808816
M: Lennert Buytenhek <kernel@wantstofly.org>
809817
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
@@ -1789,6 +1797,14 @@ F: include/net/cfg80211.h
17891797
F: net/wireless/*
17901798
X: net/wireless/wext*
17911799

1800+
CHAR and MISC DRIVERS
1801+
M: Arnd Bergmann <arnd@arndb.de>
1802+
M: Greg Kroah-Hartman <greg@kroah.com>
1803+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
1804+
S: Maintained
1805+
F: drivers/char/*
1806+
F: drivers/misc/*
1807+
17921808
CHECKPATCH
17931809
M: Andy Whitcroft <apw@canonical.com>
17941810
S: Supported
@@ -3720,7 +3736,7 @@ F: fs/jbd2/
37203736
F: include/linux/jbd2.h
37213737

37223738
JSM Neo PCI based serial card
3723-
M: Breno Leitao <leitao@linux.vnet.ibm.com>
3739+
M: Lucas Tavares <lucaskt@linux.vnet.ibm.com>
37243740
L: linux-serial@vger.kernel.org
37253741
S: Maintained
37263742
F: drivers/tty/serial/jsm/
@@ -5659,7 +5675,6 @@ F: drivers/media/video/*7146*
56595675
F: include/media/*7146*
56605676

56615677
SAMSUNG AUDIO (ASoC) DRIVERS
5662-
M: Jassi Brar <jassisinghbrar@gmail.com>
56635678
M: Sangbeom Kim <sbkim73@samsung.com>
56645679
L: alsa-devel@alsa-project.org (moderated for non-subscribers)
56655680
S: Supported

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 3
22
PATCHLEVEL = 2
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc2
4+
EXTRAVERSION = -rc4
55
NAME = Saber-toothed Squirrel
66

77
# *DOCUMENTATION*

0 commit comments

Comments
 (0)