Skip to content

Commit 3384fb9

Browse files
committed
Merge branch 'regulator-drivers' into regulator-next
2 parents 8cfc545 + ade7515 commit 3384fb9

415 files changed

Lines changed: 8773 additions & 4598 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.
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
1-
What: /sys/block/rssd*/registers
2-
Date: March 2012
3-
KernelVersion: 3.3
4-
Contact: Asai Thambi S P <asamymuthupa@micron.com>
5-
Description: This is a read-only file. Dumps below driver information and
6-
hardware registers.
7-
- S ACTive
8-
- Command Issue
9-
- Completed
10-
- PORT IRQ STAT
11-
- HOST IRQ STAT
12-
- Allocated
13-
- Commands in Q
14-
151
What: /sys/block/rssd*/status
162
Date: April 2012
173
KernelVersion: 3.4
184
Contact: Asai Thambi S P <asamymuthupa@micron.com>
195
Description: This is a read-only file. Indicates the status of the device.
20-
21-
What: /sys/block/rssd*/flags
22-
Date: May 2012
23-
KernelVersion: 3.5
24-
Contact: Asai Thambi S P <asamymuthupa@micron.com>
25-
Description: This is a read-only file. Dumps the flags in port and driver
26-
data structure

‎Documentation/ABI/testing/sysfs-class-mtd‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,14 @@ KernelVersion: 3.4
142142
Contact: linux-mtd@lists.infradead.org
143143
Description:
144144
This allows the user to examine and adjust the criteria by which
145-
mtd returns -EUCLEAN from mtd_read(). If the maximum number of
146-
bit errors that were corrected on any single region comprising
147-
an ecc step (as reported by the driver) equals or exceeds this
148-
value, -EUCLEAN is returned. Otherwise, absent an error, 0 is
149-
returned. Higher layers (e.g., UBI) use this return code as an
150-
indication that an erase block may be degrading and should be
151-
scrutinized as a candidate for being marked as bad.
145+
mtd returns -EUCLEAN from mtd_read() and mtd_read_oob(). If the
146+
maximum number of bit errors that were corrected on any single
147+
region comprising an ecc step (as reported by the driver) equals
148+
or exceeds this value, -EUCLEAN is returned. Otherwise, absent
149+
an error, 0 is returned. Higher layers (e.g., UBI) use this
150+
return code as an indication that an erase block may be
151+
degrading and should be scrutinized as a candidate for being
152+
marked as bad.
152153

153154
The initial value may be specified by the flash device driver.
154155
If not, then the default value is ecc_strength.
@@ -167,7 +168,7 @@ Description:
167168
block degradation, but high enough to avoid the consequences of
168169
a persistent return value of -EUCLEAN on devices where sticky
169170
bitflips occur. Note that if bitflip_threshold exceeds
170-
ecc_strength, -EUCLEAN is never returned by mtd_read().
171+
ecc_strength, -EUCLEAN is never returned by the read operations.
171172
Conversely, if bitflip_threshold is zero, -EUCLEAN is always
172173
returned, absent a hard error.
173174

‎Documentation/DocBook/media/v4l/controls.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3988,7 +3988,7 @@ interface and may change in the future.</para>
39883988
from RGB to Y'CbCr color space.
39893989
</entry>
39903990
</row>
3991-
<row id = "v4l2-jpeg-chroma-subsampling">
3991+
<row>
39923992
<entrytbl spanname="descr" cols="2">
39933993
<tbody valign="top">
39943994
<row>

‎Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,6 @@ These controls are described in <xref
284284
processing controls. These controls are described in <xref
285285
linkend="image-process-controls" />.</entry>
286286
</row>
287-
<row>
288-
<entry><constant>V4L2_CTRL_CLASS_JPEG</constant></entry>
289-
<entry>0x9d0000</entry>
290-
<entry>The class containing JPEG compression controls.
291-
These controls are described in <xref
292-
linkend="jpeg-controls" />.</entry>
293-
</row>
294287
</tbody>
295288
</tgroup>
296289
</table>

‎Documentation/device-mapper/verity.txt‎

Lines changed: 46 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ This target is read-only.
77

88
Construction Parameters
99
=======================
10-
<version> <dev> <hash_dev> <hash_start>
10+
<version> <dev> <hash_dev>
1111
<data_block_size> <hash_block_size>
1212
<num_data_blocks> <hash_start_block>
1313
<algorithm> <digest> <salt>
1414

1515
<version>
16-
This is the version number of the on-disk format.
16+
This is the type of the on-disk hash format.
1717

1818
0 is the original format used in the Chromium OS.
19-
The salt is appended when hashing, digests are stored continuously and
20-
the rest of the block is padded with zeros.
19+
The salt is appended when hashing, digests are stored continuously and
20+
the rest of the block is padded with zeros.
2121

2222
1 is the current format that should be used for new devices.
23-
The salt is prepended when hashing and each digest is
24-
padded with zeros to the power of two.
23+
The salt is prepended when hashing and each digest is
24+
padded with zeros to the power of two.
2525

2626
<dev>
27-
This is the device containing the data the integrity of which needs to be
27+
This is the device containing data, the integrity of which needs to be
2828
checked. It may be specified as a path, like /dev/sdaX, or a device number,
2929
<major>:<minor>.
3030

3131
<hash_dev>
32-
This is the device that that supplies the hash tree data. It may be
32+
This is the device that supplies the hash tree data. It may be
3333
specified similarly to the device path and may be the same device. If the
34-
same device is used, the hash_start should be outside of the dm-verity
35-
configured device size.
34+
same device is used, the hash_start should be outside the configured
35+
dm-verity device.
3636

3737
<data_block_size>
38-
The block size on a data device. Each block corresponds to one digest on
39-
the hash device.
38+
The block size on a data device in bytes.
39+
Each block corresponds to one digest on the hash device.
4040

4141
<hash_block_size>
42-
The size of a hash block.
42+
The size of a hash block in bytes.
4343

4444
<num_data_blocks>
4545
The number of data blocks on the data device. Additional blocks are
@@ -65,28 +65,28 @@ Construction Parameters
6565
Theory of operation
6666
===================
6767

68-
dm-verity is meant to be setup as part of a verified boot path. This
68+
dm-verity is meant to be set up as part of a verified boot path. This
6969
may be anything ranging from a boot using tboot or trustedgrub to just
7070
booting from a known-good device (like a USB drive or CD).
7171

7272
When a dm-verity device is configured, it is expected that the caller
7373
has been authenticated in some way (cryptographic signatures, etc).
7474
After instantiation, all hashes will be verified on-demand during
7575
disk access. If they cannot be verified up to the root node of the
76-
tree, the root hash, then the I/O will fail. This should identify
76+
tree, the root hash, then the I/O will fail. This should detect
7777
tampering with any data on the device and the hash data.
7878

7979
Cryptographic hashes are used to assert the integrity of the device on a
80-
per-block basis. This allows for a lightweight hash computation on first read
81-
into the page cache. Block hashes are stored linearly-aligned to the nearest
82-
block the size of a page.
80+
per-block basis. This allows for a lightweight hash computation on first read
81+
into the page cache. Block hashes are stored linearly, aligned to the nearest
82+
block size.
8383

8484
Hash Tree
8585
---------
8686

8787
Each node in the tree is a cryptographic hash. If it is a leaf node, the hash
88-
is of some block data on disk. If it is an intermediary node, then the hash is
89-
of a number of child nodes.
88+
of some data block on disk is calculated. If it is an intermediary node,
89+
the hash of a number of child nodes is calculated.
9090

9191
Each entry in the tree is a collection of neighboring nodes that fit in one
9292
block. The number is determined based on block_size and the size of the
@@ -110,85 +110,46 @@ alg = sha256, num_blocks = 32768, block_size = 4096
110110
On-disk format
111111
==============
112112

113-
Below is the recommended on-disk format. The verity kernel code does not
114-
read the on-disk header. It only reads the hash blocks which directly
115-
follow the header. It is expected that a user-space tool will verify the
116-
integrity of the verity_header and then call dmsetup with the correct
117-
parameters. Alternatively, the header can be omitted and the dmsetup
118-
parameters can be passed via the kernel command-line in a rooted chain
119-
of trust where the command-line is verified.
113+
The verity kernel code does not read the verity metadata on-disk header.
114+
It only reads the hash blocks which directly follow the header.
115+
It is expected that a user-space tool will verify the integrity of the
116+
verity header.
120117

121-
The on-disk format is especially useful in cases where the hash blocks
122-
are on a separate partition. The magic number allows easy identification
123-
of the partition contents. Alternatively, the hash blocks can be stored
124-
in the same partition as the data to be verified. In such a configuration
125-
the filesystem on the partition would be sized a little smaller than
126-
the full-partition, leaving room for the hash blocks.
127-
128-
struct superblock {
129-
uint8_t signature[8]
130-
"verity\0\0";
131-
132-
uint8_t version;
133-
1 - current format
134-
135-
uint8_t data_block_bits;
136-
log2(data block size)
137-
138-
uint8_t hash_block_bits;
139-
log2(hash block size)
140-
141-
uint8_t pad1[1];
142-
zero padding
143-
144-
uint16_t salt_size;
145-
big-endian salt size
146-
147-
uint8_t pad2[2];
148-
zero padding
149-
150-
uint32_t data_blocks_hi;
151-
big-endian high 32 bits of the 64-bit number of data blocks
152-
153-
uint32_t data_blocks_lo;
154-
big-endian low 32 bits of the 64-bit number of data blocks
155-
156-
uint8_t algorithm[16];
157-
cryptographic algorithm
158-
159-
uint8_t salt[384];
160-
salt (the salt size is specified above)
161-
162-
uint8_t pad3[88];
163-
zero padding to 512-byte boundary
164-
}
118+
Alternatively, the header can be omitted and the dmsetup parameters can
119+
be passed via the kernel command-line in a rooted chain of trust where
120+
the command-line is verified.
165121

166122
Directly following the header (and with sector number padded to the next hash
167123
block boundary) are the hash blocks which are stored a depth at a time
168124
(starting from the root), sorted in order of increasing index.
169125

126+
The full specification of kernel parameters and on-disk metadata format
127+
is available at the cryptsetup project's wiki page
128+
http://code.google.com/p/cryptsetup/wiki/DMVerity
129+
170130
Status
171131
======
172132
V (for Valid) is returned if every check performed so far was valid.
173133
If any check failed, C (for Corruption) is returned.
174134

175135
Example
176136
=======
177-
178-
Setup a device:
179-
dmsetup create vroot --table \
180-
"0 2097152 "\
181-
"verity 1 /dev/sda1 /dev/sda2 4096 4096 2097152 1 "\
137+
Set up a device:
138+
# dmsetup create vroot --readonly --table \
139+
"0 2097152 verity 1 /dev/sda1 /dev/sda2 4096 4096 262144 1 sha256 "\
182140
"4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 "\
183141
"1234000000000000000000000000000000000000000000000000000000000000"
184142

185143
A command line tool veritysetup is available to compute or verify
186-
the hash tree or activate the kernel driver. This is available from
187-
the LVM2 upstream repository and may be supplied as a package called
188-
device-mapper-verity-tools:
189-
git://sources.redhat.com/git/lvm2
190-
http://sourceware.org/git/?p=lvm2.git
191-
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/verity?cvsroot=lvm2
192-
193-
veritysetup -a vroot /dev/sda1 /dev/sda2 \
194-
4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076
144+
the hash tree or activate the kernel device. This is available from
145+
the cryptsetup upstream repository http://code.google.com/p/cryptsetup/
146+
(as a libcryptsetup extension).
147+
148+
Create hash on the device:
149+
# veritysetup format /dev/sda1 /dev/sda2
150+
...
151+
Root hash: 4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076
152+
153+
Activate the device:
154+
# veritysetup create vroot /dev/sda1 /dev/sda2 \
155+
4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076

‎Documentation/devicetree/bindings/input/fsl-mma8450.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Required properties:
44
- compatible : "fsl,mma8450".
5+
- reg: the I2C address of MMA8450
56

67
Example:
78

‎Documentation/devicetree/bindings/mfd/mc13xxx.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Examples:
4646

4747
ecspi@70010000 { /* ECSPI1 */
4848
fsl,spi-num-chipselects = <2>;
49-
cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */
50-
<&gpio3 25 0>; /* GPIO4_25 */
49+
cs-gpios = <&gpio4 24 0>, /* GPIO4_24 */
50+
<&gpio4 25 0>; /* GPIO4_25 */
5151
status = "okay";
5252

5353
pmic: mc13892@0 {

0 commit comments

Comments
 (0)