Skip to content

Commit ae1d3b9

Browse files
author
Russell King
committed
Merge branch 'for-rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable
2 parents 586893e + 7a2207a commit ae1d3b9

536 files changed

Lines changed: 17566 additions & 12549 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.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ modules.builtin
5757
include/config
5858
include/linux/version.h
5959
include/generated
60+
arch/*/include/generated
6061

6162
# stgit generated dirs
6263
patches-*

‎Documentation/DocBook/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ installmandocs: mandocs
7373
###
7474
#External programs used
7575
KERNELDOC = $(srctree)/scripts/kernel-doc
76-
DOCPROC = $(objtree)/scripts/basic/docproc
76+
DOCPROC = $(objtree)/scripts/docproc
7777

7878
XMLTOFLAGS = -m $(srctree)/Documentation/DocBook/stylesheet.xsl
7979
XMLTOFLAGS += --skip-validation

‎Documentation/filesystems/ubifs.txt‎

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,8 @@ ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs
115115
Module Parameters for Debugging
116116
===============================
117117

118-
When UBIFS has been compiled with debugging enabled, there are 3 module
118+
When UBIFS has been compiled with debugging enabled, there are 2 module
119119
parameters that are available to control aspects of testing and debugging.
120-
The parameters are unsigned integers where each bit controls an option.
121-
The parameters are:
122-
123-
debug_msgs Selects which debug messages to display, as follows:
124-
125-
Message Type Flag value
126-
127-
General messages 1
128-
Journal messages 2
129-
Mount messages 4
130-
Commit messages 8
131-
LEB search messages 16
132-
Budgeting messages 32
133-
Garbage collection messages 64
134-
Tree Node Cache (TNC) messages 128
135-
LEB properties (lprops) messages 256
136-
Input/output messages 512
137-
Log messages 1024
138-
Scan messages 2048
139-
Recovery messages 4096
140120

141121
debug_chks Selects extra checks that UBIFS can do while running:
142122

@@ -154,11 +134,9 @@ debug_tsts Selects a mode of testing, as follows:
154134

155135
Test mode Flag value
156136

157-
Force in-the-gaps method 2
158137
Failure mode for recovery testing 4
159138

160-
For example, set debug_msgs to 5 to display General messages and Mount
161-
messages.
139+
For example, set debug_chks to 3 to enable general and TNC checks.
162140

163141

164142
References

‎Documentation/i2c/busses/i2c-i801‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Supported adapters:
1919
* Intel 6 Series (PCH)
2020
* Intel Patsburg (PCH)
2121
* Intel DH89xxCC (PCH)
22+
* Intel Panther Point (PCH)
2223
Datasheets: Publicly available at the Intel website
2324

2425
On Intel Patsburg and later chipsets, both the normal host SMBus controller

‎Documentation/i2c/writing-clients‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static struct i2c_driver foo_driver = {
3838
.name = "foo",
3939
},
4040

41-
.id_table = foo_ids,
41+
.id_table = foo_idtable,
4242
.probe = foo_probe,
4343
.remove = foo_remove,
4444
/* if device autodetection is needed: */

‎Documentation/input/elantech.txt‎

Lines changed: 100 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Contents
3434
Currently the Linux Elantech touchpad driver is aware of two different
3535
hardware versions unimaginatively called version 1 and version 2. Version 1
3636
is found in "older" laptops and uses 4 bytes per packet. Version 2 seems to
37-
be introduced with the EeePC and uses 6 bytes per packet.
37+
be introduced with the EeePC and uses 6 bytes per packet, and provides
38+
additional features such as position of two fingers, and width of the touch.
3839

3940
The driver tries to support both hardware versions and should be compatible
4041
with the Xorg Synaptics touchpad driver and its graphical configuration
@@ -94,18 +95,44 @@ Currently the Linux Elantech touchpad driver provides two extra knobs under
9495
can check these bits and reject any packet that appears corrupted. Using
9596
this knob you can bypass that check.
9697

97-
It is not known yet whether hardware version 2 provides the same parity
98-
bits. Hence checking is disabled by default. Currently even turning it on
99-
will do nothing.
100-
98+
Hardware version 2 does not provide the same parity bits. Only some basic
99+
data consistency checking can be done. For now checking is disabled by
100+
default. Currently even turning it on will do nothing.
101101

102102
/////////////////////////////////////////////////////////////////////////////
103103

104+
3. Differentiating hardware versions
105+
=================================
106+
107+
To detect the hardware version, read the version number as param[0].param[1].param[2]
108+
109+
4 bytes version: (after the arrow is the name given in the Dell-provided driver)
110+
02.00.22 => EF013
111+
02.06.00 => EF019
112+
In the wild, there appear to be more versions, such as 00.01.64, 01.00.21,
113+
02.00.00, 02.00.04, 02.00.06.
114+
115+
6 bytes:
116+
02.00.30 => EF113
117+
02.08.00 => EF023
118+
02.08.XX => EF123
119+
02.0B.00 => EF215
120+
04.01.XX => Scroll_EF051
121+
04.02.XX => EF051
122+
In the wild, there appear to be more versions, such as 04.03.01, 04.04.11. There
123+
appears to be almost no difference, except for EF113, which does not report
124+
pressure/width and has different data consistency checks.
125+
126+
Probably all the versions with param[0] <= 01 can be considered as
127+
4 bytes/firmware 1. The versions < 02.08.00, with the exception of 02.00.30, as
128+
4 bytes/firmware 2. Everything >= 02.08.00 can be considered as 6 bytes.
129+
130+
/////////////////////////////////////////////////////////////////////////////
104131

105-
3. Hardware version 1
132+
4. Hardware version 1
106133
==================
107134

108-
3.1 Registers
135+
4.1 Registers
109136
~~~~~~~~~
110137

111138
By echoing a hexadecimal value to a register it contents can be altered.
@@ -168,7 +195,7 @@ For example:
168195
smart edge activation area width?
169196

170197

171-
3.2 Native relative mode 4 byte packet format
198+
4.2 Native relative mode 4 byte packet format
172199
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173200

174201
byte 0:
@@ -226,9 +253,13 @@ byte 3:
226253
positive = down
227254

228255

229-
3.3 Native absolute mode 4 byte packet format
256+
4.3 Native absolute mode 4 byte packet format
230257
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
231258

259+
EF013 and EF019 have a special behaviour (due to a bug in the firmware?), and
260+
when 1 finger is touching, the first 2 position reports must be discarded.
261+
This counting is reset whenever a different number of fingers is reported.
262+
232263
byte 0:
233264
firmware version 1.x:
234265

@@ -279,11 +310,11 @@ byte 3:
279310
/////////////////////////////////////////////////////////////////////////////
280311

281312

282-
4. Hardware version 2
313+
5. Hardware version 2
283314
==================
284315

285316

286-
4.1 Registers
317+
5.1 Registers
287318
~~~~~~~~~
288319

289320
By echoing a hexadecimal value to a register it contents can be altered.
@@ -316,41 +347,82 @@ For example:
316347
0x7f = never i.e. tap again to release)
317348

318349

319-
4.2 Native absolute mode 6 byte packet format
350+
5.2 Native absolute mode 6 byte packet format
320351
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
321-
322-
4.2.1 One finger touch
352+
5.2.1 Parity checking and packet re-synchronization
353+
There is no parity checking, however some consistency checks can be performed.
354+
355+
For instance for EF113:
356+
SA1= packet[0];
357+
A1 = packet[1];
358+
B1 = packet[2];
359+
SB1= packet[3];
360+
C1 = packet[4];
361+
D1 = packet[5];
362+
if( (((SA1 & 0x3C) != 0x3C) && ((SA1 & 0xC0) != 0x80)) || // check Byte 1
363+
(((SA1 & 0x0C) != 0x0C) && ((SA1 & 0xC0) == 0x80)) || // check Byte 1 (one finger pressed)
364+
(((SA1 & 0xC0) != 0x80) && (( A1 & 0xF0) != 0x00)) || // check Byte 2
365+
(((SB1 & 0x3E) != 0x38) && ((SA1 & 0xC0) != 0x80)) || // check Byte 4
366+
(((SB1 & 0x0E) != 0x08) && ((SA1 & 0xC0) == 0x80)) || // check Byte 4 (one finger pressed)
367+
(((SA1 & 0xC0) != 0x80) && (( C1 & 0xF0) != 0x00)) ) // check Byte 5
368+
// error detected
369+
370+
For all the other ones, there are just a few constant bits:
371+
if( ((packet[0] & 0x0C) != 0x04) ||
372+
((packet[3] & 0x0f) != 0x02) )
373+
// error detected
374+
375+
376+
In case an error is detected, all the packets are shifted by one (and packet[0] is discarded).
377+
378+
5.2.1 One/Three finger touch
323379
~~~~~~~~~~~~~~~~
324380

325381
byte 0:
326382

327383
bit 7 6 5 4 3 2 1 0
328-
n1 n0 . . . . R L
384+
n1 n0 w3 w2 . . R L
329385

330386
L, R = 1 when Left, Right mouse button pressed
331387
n1..n0 = numbers of fingers on touchpad
332388

333389
byte 1:
334390

335391
bit 7 6 5 4 3 2 1 0
336-
. . . . . x10 x9 x8
392+
p7 p6 p5 p4 . x10 x9 x8
337393

338394
byte 2:
339395

340396
bit 7 6 5 4 3 2 1 0
341-
x7 x6 x5 x4 x4 x2 x1 x0
397+
x7 x6 x5 x4 x3 x2 x1 x0
342398

343399
x10..x0 = absolute x value (horizontal)
344400

345401
byte 3:
346402

347403
bit 7 6 5 4 3 2 1 0
348-
. . . . . . . .
404+
n4 vf w1 w0 . . . b2
405+
406+
n4 = set if more than 3 fingers (only in 3 fingers mode)
407+
vf = a kind of flag ? (only on EF123, 0 when finger is over one
408+
of the buttons, 1 otherwise)
409+
w3..w0 = width of the finger touch (not EF113)
410+
b2 (on EF113 only, 0 otherwise), b2.R.L indicates one button pressed:
411+
0 = none
412+
1 = Left
413+
2 = Right
414+
3 = Middle (Left and Right)
415+
4 = Forward
416+
5 = Back
417+
6 = Another one
418+
7 = Another one
349419

350420
byte 4:
351421

352422
bit 7 6 5 4 3 2 1 0
353-
. . . . . . y9 y8
423+
p3 p1 p2 p0 . . y9 y8
424+
425+
p7..p0 = pressure (not EF113)
354426

355427
byte 5:
356428

@@ -363,6 +435,11 @@ byte 5:
363435
4.2.2 Two finger touch
364436
~~~~~~~~~~~~~~~~
365437

438+
Note that the two pairs of coordinates are not exactly the coordinates of the
439+
two fingers, but only the pair of the lower-left and upper-right coordinates.
440+
So the actual fingers might be situated on the other diagonal of the square
441+
defined by these two points.
442+
366443
byte 0:
367444

368445
bit 7 6 5 4 3 2 1 0
@@ -376,14 +453,14 @@ byte 1:
376453
bit 7 6 5 4 3 2 1 0
377454
ax7 ax6 ax5 ax4 ax3 ax2 ax1 ax0
378455

379-
ax8..ax0 = first finger absolute x value
456+
ax8..ax0 = lower-left finger absolute x value
380457

381458
byte 2:
382459

383460
bit 7 6 5 4 3 2 1 0
384461
ay7 ay6 ay5 ay4 ay3 ay2 ay1 ay0
385462

386-
ay8..ay0 = first finger absolute y value
463+
ay8..ay0 = lower-left finger absolute y value
387464

388465
byte 3:
389466

@@ -395,11 +472,11 @@ byte 4:
395472
bit 7 6 5 4 3 2 1 0
396473
bx7 bx6 bx5 bx4 bx3 bx2 bx1 bx0
397474

398-
bx8..bx0 = second finger absolute x value
475+
bx8..bx0 = upper-right finger absolute x value
399476

400477
byte 5:
401478

402479
bit 7 6 5 4 3 2 1 0
403480
by7 by8 by5 by4 by3 by2 by1 by0
404481

405-
by8..by0 = second finger absolute y value
482+
by8..by0 = upper-right finger absolute y value

‎Documentation/input/rotary-encoder.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ peripherals with two wires. The outputs are phase-shifted by 90 degrees
99
and by triggering on falling and rising edges, the turn direction can
1010
be determined.
1111

12+
Some encoders have both outputs low in stable states, whereas others also have
13+
a stable state with both outputs high (half-period mode).
14+
1215
The phase diagram of these two outputs look like this:
1316

1417
_____ _____ _____
@@ -26,6 +29,8 @@ The phase diagram of these two outputs look like this:
2629
|<-------->|
2730
one step
2831

32+
|<-->|
33+
one step (half-period mode)
2934

3035
For more information, please see
3136
http://en.wikipedia.org/wiki/Rotary_encoder
@@ -34,6 +39,13 @@ For more information, please see
3439
1. Events / state machine
3540
-------------------------
3641

42+
In half-period mode, state a) and c) above are used to determine the
43+
rotational direction based on the last stable state. Events are reported in
44+
states b) and d) given that the new stable state is different from the last
45+
(i.e. the rotation was not reversed half-way).
46+
47+
Otherwise, the following apply:
48+
3749
a) Rising edge on channel A, channel B in low state
3850
This state is used to recognize a clockwise turn
3951

@@ -96,6 +108,7 @@ static struct rotary_encoder_platform_data my_rotary_encoder_info = {
96108
.gpio_b = GPIO_ROTARY_B,
97109
.inverted_a = 0,
98110
.inverted_b = 0,
111+
.half_period = false,
99112
};
100113

101114
static struct platform_device rotary_encoder_device = {

‎Documentation/kbuild/kbuild.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,16 @@ KBUILD_ENABLE_EXTRA_GCC_CHECKS
201201
--------------------------------------------------
202202
If enabled over the make command line with "W=1", it turns on additional
203203
gcc -W... options for more extensive build-time checking.
204+
205+
KBUILD_BUILD_TIMESTAMP
206+
--------------------------------------------------
207+
Setting this to a date string overrides the timestamp used in the
208+
UTS_VERSION definition (uname -v in the running kernel). The value has to
209+
be a string that can be passed to date -d. The default value
210+
is the output of the date command at one point during build.
211+
212+
KBUILD_BUILD_USER, KBUILD_BUILD_HOST
213+
--------------------------------------------------
214+
These two variables allow to override the user@host string displayed during
215+
boot and in /proc/version. The default value is the output of the commands
216+
whoami and host, respectively.

0 commit comments

Comments
 (0)