Skip to content

Commit 2521129

Browse files
committed
Merge tag 'char-misc-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char / misc driver patches from Greg KH: "Here's the big driver misc / char pull request for 3.17-rc1. Lots of things in here, the thunderbolt support for Apple laptops, some other new drivers, testing fixes, and other good things. All have been in linux-next for a long time" * tag 'char-misc-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (119 commits) misc: bh1780: Introduce the use of devm_kzalloc Lattice ECP3 FPGA: Correct endianness drivers/misc/ti-st: Load firmware from ti-connectivity directory. dt-bindings: extcon: Add support for SM5502 MUIC device extcon: sm5502: Change internal hardware switch according to cable type extcon: sm5502: Detect cable state after completing platform booting extcon: sm5502: Add support new SM5502 extcon device driver extcon: arizona: Get MICVDD against extcon device extcon: Remove unnecessary OOM messages misc: vexpress: Fix sparse non static symbol warnings mei: drop unused hw dependent fw status functions misc: bh1770glc: Use managed functions pcmcia: remove DEFINE_PCI_DEVICE_TABLE usage misc: remove DEFINE_PCI_DEVICE_TABLE usage ipack: Replace DEFINE_PCI_DEVICE_TABLE macro use drivers/char/dsp56k.c: drop check for negativity of unsigned parameter mei: fix return value on disconnect timeout mei: don't schedule suspend in pm idle mei: start disconnect request timer consistently mei: reset client connection state on timeout ...
2 parents 98a96f2 + 16eb2bf commit 2521129

140 files changed

Lines changed: 8646 additions & 1083 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
What: /sys/class/mei/
2+
Date: May 2014
3+
KernelVersion: 3.17
4+
Contact: Tomas Winkler <tomas.winkler@intel.com>
5+
Description:
6+
The mei/ class sub-directory belongs to mei device class
7+
8+
9+
What: /sys/class/mei/meiN/
10+
Date: May 2014
11+
KernelVersion: 3.17
12+
Contact: Tomas Winkler <tomas.winkler@intel.com>
13+
Description:
14+
The /sys/class/mei/meiN directory is created for
15+
each probed mei device
16+

‎Documentation/ABI/testing/sysfs-driver-genwqe‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ Date: Oct 2013
2525
Contact: haver@linux.vnet.ibm.com
2626
Description: Interface to set the next bitstream to be used.
2727

28+
What: /sys/class/genwqe/genwqe<n>_card/reload_bitstream
29+
Date: May 2014
30+
Contact: klebers@linux.vnet.ibm.com
31+
Description: Interface to trigger a PCIe card reset to reload the bitstream.
32+
sudo sh -c 'echo 1 > \
33+
/sys/class/genwqe/genwqe0_card/reload_bitstream'
34+
If successfully, the card will come back with the bitstream set
35+
on 'next_bitstream'.
36+
2837
What: /sys/class/genwqe/genwqe<n>_card/tempsens
2938
Date: Oct 2013
3039
Contact: haver@linux.vnet.ibm.com
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
* SM5502 MUIC (Micro-USB Interface Controller) device
3+
4+
The Silicon Mitus SM5502 is a MUIC (Micro-USB Interface Controller) device
5+
which can detect the state of external accessory when external accessory is
6+
attached or detached and button is pressed or released. It is interfaced to
7+
the host controller using an I2C interface.
8+
9+
Required properties:
10+
- compatible: Should be "siliconmitus,sm5502-muic"
11+
- reg: Specifies the I2C slave address of the MUIC block. It should be 0x25
12+
- interrupt-parent: Specifies the phandle of the interrupt controller to which
13+
the interrupts from sm5502 are delivered to.
14+
- interrupts: Interrupt specifiers for detection interrupt sources.
15+
16+
Example:
17+
18+
sm5502@25 {
19+
compatible = "siliconmitus,sm5502-muic";
20+
interrupt-parent = <&gpx1>;
21+
interrupts = <5 0>;
22+
reg = <0x25>;
23+
};

‎Documentation/mic/mic_overview.txt‎

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,50 @@ for applications. A key benefit of our solution is that it leverages
1717
the standard virtio framework for network, disk and console devices,
1818
though in our case the virtio framework is used across a PCIe bus.
1919

20+
MIC PCIe card has a dma controller with 8 channels. These channels are
21+
shared between the host s/w and the card s/w. 0 to 3 are used by host
22+
and 4 to 7 by card. As the dma device doesn't show up as PCIe device,
23+
a virtual bus called mic bus is created and virtual dma devices are
24+
created on it by the host/card drivers. On host the channels are private
25+
and used only by the host driver to transfer data for the virtio devices.
26+
2027
Here is a block diagram of the various components described above. The
2128
virtio backends are situated on the host rather than the card given better
2229
single threaded performance for the host compared to MIC, the ability of
2330
the host to initiate DMA's to/from the card using the MIC DMA engine and
2431
the fact that the virtio block storage backend can only be on the host.
2532

26-
|
27-
+----------+ | +----------+
28-
| Card OS | | | Host OS |
29-
+----------+ | +----------+
30-
|
31-
+-------+ +--------+ +------+ | +---------+ +--------+ +--------+
32-
| Virtio| |Virtio | |Virtio| | |Virtio | |Virtio | |Virtio |
33-
| Net | |Console | |Block | | |Net | |Console | |Block |
34-
| Driver| |Driver | |Driver| | |backend | |backend | |backend |
35-
+-------+ +--------+ +------+ | +---------+ +--------+ +--------+
36-
| | | | | | |
37-
| | | |User | | |
38-
| | | |------|------------|---------|-------
39-
+-------------------+ |Kernel +--------------------------+
40-
| | | Virtio over PCIe IOCTLs |
41-
| | +--------------------------+
42-
+--------------+ | |
43-
|Intel MIC | | +---------------+
44-
|Card Driver | | |Intel MIC |
45-
+--------------+ | |Host Driver |
46-
| | +---------------+
47-
| | |
48-
+-------------------------------------------------------------+
49-
| |
50-
| PCIe Bus |
51-
+-------------------------------------------------------------+
33+
|
34+
+----------+ | +----------+
35+
| Card OS | | | Host OS |
36+
+----------+ | +----------+
37+
|
38+
+-------+ +--------+ +------+ | +---------+ +--------+ +--------+
39+
| Virtio| |Virtio | |Virtio| | |Virtio | |Virtio | |Virtio |
40+
| Net | |Console | |Block | | |Net | |Console | |Block |
41+
| Driver| |Driver | |Driver| | |backend | |backend | |backend |
42+
+-------+ +--------+ +------+ | +---------+ +--------+ +--------+
43+
| | | | | | |
44+
| | | |User | | |
45+
| | | |------|------------|---------|-------
46+
+-------------------+ |Kernel +--------------------------+
47+
| | | Virtio over PCIe IOCTLs |
48+
| | +--------------------------+
49+
+-----------+ | | | +-----------+
50+
| MIC DMA | | | | | MIC DMA |
51+
| Driver | | | | | Driver |
52+
+-----------+ | | | +-----------+
53+
| | | | |
54+
+---------------+ | | | +----------------+
55+
|MIC virtual Bus| | | | |MIC virtual Bus |
56+
+---------------+ | | | +----------------+
57+
| | | | |
58+
| +--------------+ | +---------------+ |
59+
| |Intel MIC | | |Intel MIC | |
60+
+---|Card Driver | | |Host Driver | |
61+
+--------------+ | +---------------+-----+
62+
| | |
63+
+-------------------------------------------------------------+
64+
| |
65+
| PCIe Bus |
66+
+-------------------------------------------------------------+

‎Documentation/mic/mpssd/mpss‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ start()
4848
fi
4949

5050
echo -e $"Starting MPSS Stack"
51-
echo -e $"Loading MIC_HOST Module"
51+
echo -e $"Loading MIC_X100_DMA & MIC_HOST Modules"
5252

53-
# Ensure the driver is loaded
54-
if [ ! -d "$sysfs" ]; then
55-
modprobe mic_host
53+
for f in "mic_host" "mic_x100_dma"
54+
do
55+
modprobe $f
5656
RETVAL=$?
5757
if [ $RETVAL -ne 0 ]; then
5858
failure
5959
echo
6060
return $RETVAL
6161
fi
62-
fi
62+
done
6363

6464
# Start the daemon
6565
echo -n $"Starting MPSSD "
@@ -170,8 +170,8 @@ unload()
170170
stop
171171

172172
sleep 5
173-
echo -n $"Removing MIC_HOST Module: "
174-
modprobe -r mic_host
173+
echo -n $"Removing MIC_HOST & MIC_X100_DMA Modules: "
174+
modprobe -r mic_host mic_x100_dma
175175
RETVAL=$?
176176
[ $RETVAL -ne 0 ] && failure || success
177177
echo

‎Documentation/w1/slaves/w1_ds2406‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
w1_ds2406 kernel driver
2+
=======================
3+
4+
Supported chips:
5+
* Maxim DS2406 (and other family 0x12) addressable switches
6+
7+
Author: Scott Alfter <scott@alfter.us>
8+
9+
Description
10+
-----------
11+
12+
The w1_ds2406 driver allows connected devices to be switched on and off.
13+
These chips also provide 128 bytes of OTP EPROM, but reading/writing it is
14+
not supported. In TSOC-6 form, the DS2406 provides two switch outputs and
15+
can be provided with power on a dedicated input. In TO-92 form, it provides
16+
one output and uses parasitic power only.
17+
18+
The driver provides two sysfs files. state is readable; it gives the
19+
current state of each switch, with PIO A in bit 0 and PIO B in bit 1. The
20+
driver ORs this state with 0x30, so shell scripts get an ASCII 0/1/2/3 to
21+
work with. output is writable; bits 0 and 1 control PIO A and B,
22+
respectively. Bits 2-7 are ignored, so it's safe to write ASCII data.
23+
24+
CRCs are checked on read and write. Failed checks cause an I/O error to be
25+
returned. On a failed write, the switch status is not changed.

‎MAINTAINERS‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7844,6 +7844,11 @@ S: Maintained
78447844
F: include/linux/mmc/dw_mmc.h
78457845
F: drivers/mmc/host/dw_mmc*
78467846

7847+
THUNDERBOLT DRIVER
7848+
M: Andreas Noever <andreas.noever@gmail.com>
7849+
S: Maintained
7850+
F: drivers/thunderbolt/
7851+
78477852
TIMEKEEPING, CLOCKSOURCE CORE, NTP
78487853
M: John Stultz <john.stultz@linaro.org>
78497854
M: Thomas Gleixner <tglx@linutronix.de>

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,6 @@ source "drivers/mcb/Kconfig"
178178

179179
source "drivers/ras/Kconfig"
180180

181+
source "drivers/thunderbolt/Kconfig"
182+
181183
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ obj-$(CONFIG_FMC) += fmc/
159159
obj-$(CONFIG_POWERCAP) += powercap/
160160
obj-$(CONFIG_MCB) += mcb/
161161
obj-$(CONFIG_RAS) += ras/
162+
obj-$(CONFIG_THUNDERBOLT) += thunderbolt/

‎drivers/char/bsr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static int bsr_add_node(struct device_node *bn)
259259
}
260260

261261
cur->bsr_device = device_create(bsr_class, NULL, cur->bsr_dev,
262-
cur, cur->bsr_name);
262+
cur, "%s", cur->bsr_name);
263263
if (IS_ERR(cur->bsr_device)) {
264264
printk(KERN_ERR "device_create failed for %s\n",
265265
cur->bsr_name);

0 commit comments

Comments
 (0)