forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'arizona-extcon-asoc' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/broonie/misc into char-misc-next Mark writes: ASoC/extcon: arizona: Fix interaction between HPDET and headphone outputs This patch series covers both ASoC and extcon subsystems and fixes an interaction between the HPDET function and the headphone outputs - we really shouldn't run HPDET while the headphone is active. The first patch is a refactoring to make the extcon side easier.
- Loading branch information
Showing
640 changed files
with
5,850 additions
and
3,310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1510,6 +1510,14 @@ D: Natsemi ethernet | |
D: Cobalt Networks (x86) support | ||
D: This-and-That | ||
|
||
N: Mark M. Hoffman | ||
E: [email protected] | ||
D: asb100, lm93 and smsc47b397 hardware monitoring drivers | ||
D: hwmon subsystem core | ||
D: hwmon subsystem maintainer | ||
D: i2c-sis96x and i2c-stub SMBus drivers | ||
S: USA | ||
|
||
N: Dirk Hohndel | ||
E: [email protected] | ||
D: The XFree86[tm] Project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Supported adapters: | |
Documentation: | ||
http://www.diolan.com/i2c/u2c12.html | ||
|
||
Author: Guenter Roeck <[email protected]> | ||
Author: Guenter Roeck <[email protected]> | ||
|
||
Description | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,83 @@ Copyright (C) 1999-2000 Maxim Krasnyansky <[email protected]> | |
Proto [2 bytes] | ||
Raw protocol(IP, IPv6, etc) frame. | ||
|
||
3.3 Multiqueue tuntap interface: | ||
|
||
From version 3.8, Linux supports multiqueue tuntap which can uses multiple | ||
file descriptors (queues) to parallelize packets sending or receiving. The | ||
device allocation is the same as before, and if user wants to create multiple | ||
queues, TUNSETIFF with the same device name must be called many times with | ||
IFF_MULTI_QUEUE flag. | ||
|
||
char *dev should be the name of the device, queues is the number of queues to | ||
be created, fds is used to store and return the file descriptors (queues) | ||
created to the caller. Each file descriptor were served as the interface of a | ||
queue which could be accessed by userspace. | ||
|
||
#include <linux/if.h> | ||
#include <linux/if_tun.h> | ||
|
||
int tun_alloc_mq(char *dev, int queues, int *fds) | ||
{ | ||
struct ifreq ifr; | ||
int fd, err, i; | ||
|
||
if (!dev) | ||
return -1; | ||
|
||
memset(&ifr, 0, sizeof(ifr)); | ||
/* Flags: IFF_TUN - TUN device (no Ethernet headers) | ||
* IFF_TAP - TAP device | ||
* | ||
* IFF_NO_PI - Do not provide packet information | ||
* IFF_MULTI_QUEUE - Create a queue of multiqueue device | ||
*/ | ||
ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_MULTI_QUEUE; | ||
strcpy(ifr.ifr_name, dev); | ||
|
||
for (i = 0; i < queues; i++) { | ||
if ((fd = open("/dev/net/tun", O_RDWR)) < 0) | ||
goto err; | ||
err = ioctl(fd, TUNSETIFF, (void *)&ifr); | ||
if (err) { | ||
close(fd); | ||
goto err; | ||
} | ||
fds[i] = fd; | ||
} | ||
|
||
return 0; | ||
err: | ||
for (--i; i >= 0; i--) | ||
close(fds[i]); | ||
return err; | ||
} | ||
|
||
A new ioctl(TUNSETQUEUE) were introduced to enable or disable a queue. When | ||
calling it with IFF_DETACH_QUEUE flag, the queue were disabled. And when | ||
calling it with IFF_ATTACH_QUEUE flag, the queue were enabled. The queue were | ||
enabled by default after it was created through TUNSETIFF. | ||
|
||
fd is the file descriptor (queue) that we want to enable or disable, when | ||
enable is true we enable it, otherwise we disable it | ||
|
||
#include <linux/if.h> | ||
#include <linux/if_tun.h> | ||
|
||
int tun_set_queue(int fd, int enable) | ||
{ | ||
struct ifreq ifr; | ||
|
||
memset(&ifr, 0, sizeof(ifr)); | ||
|
||
if (enable) | ||
ifr.ifr_flags = IFF_ATTACH_QUEUE; | ||
else | ||
ifr.ifr_flags = IFF_DETACH_QUEUE; | ||
|
||
return ioctl(fd, TUNSETQUEUE, (void *)&ifr); | ||
} | ||
|
||
Universal TUN/TAP device driver Frequently Asked Question. | ||
|
||
1. What platforms are supported by TUN/TAP driver ? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1339,12 +1339,6 @@ S: Maintained | |
F: drivers/platform/x86/asus*.c | ||
F: drivers/platform/x86/eeepc*.c | ||
|
||
ASUS ASB100 HARDWARE MONITOR DRIVER | ||
M: "Mark M. Hoffman" <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/hwmon/asb100.c | ||
|
||
ASYNCHRONOUS TRANSFERS/TRANSFORMS (IOAT) API | ||
M: Dan Williams <[email protected]> | ||
W: http://sourceforge.net/projects/xscaleiop | ||
|
@@ -1468,6 +1462,12 @@ F: drivers/dma/at_hdmac.c | |
F: drivers/dma/at_hdmac_regs.h | ||
F: include/linux/platform_data/dma-atmel.h | ||
|
||
ATMEL I2C DRIVER | ||
M: Ludovic Desroches <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: drivers/i2c/busses/i2c-at91.c | ||
|
||
ATMEL ISI DRIVER | ||
M: Josh Wu <[email protected]> | ||
L: [email protected] | ||
|
@@ -2630,7 +2630,7 @@ F: include/uapi/drm/ | |
|
||
INTEL DRM DRIVERS (excluding Poulsbo, Moorestown and derivative chipsets) | ||
M: Daniel Vetter <[email protected]> | ||
L: [email protected] (subscribers-only) | ||
L: [email protected] | ||
L: [email protected] | ||
T: git git://people.freedesktop.org/~danvet/drm-intel | ||
S: Supported | ||
|
@@ -3852,7 +3852,7 @@ F: drivers/i2c/busses/i2c-ismt.c | |
F: Documentation/i2c/busses/i2c-ismt | ||
|
||
I2C/SMBUS STUB DRIVER | ||
M: "Mark M. Hoffman" <[email protected]> | ||
M: Jean Delvare <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/i2c/i2c-stub.c | ||
|
@@ -4006,6 +4006,22 @@ M: Stanislaw Gruszka <[email protected]> | |
S: Maintained | ||
F: drivers/usb/atm/ueagle-atm.c | ||
|
||
INA209 HARDWARE MONITOR DRIVER | ||
M: Guenter Roeck <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/hwmon/ina209 | ||
F: Documentation/devicetree/bindings/i2c/ina209.txt | ||
F: drivers/hwmon/ina209.c | ||
|
||
INA2XX HARDWARE MONITOR DRIVER | ||
M: Guenter Roeck <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/hwmon/ina2xx | ||
F: drivers/hwmon/ina2xx.c | ||
F: include/linux/platform_data/ina2xx.h | ||
|
||
INDUSTRY PACK SUBSYSTEM (IPACK) | ||
M: Samuel Iglesias Gonsalvez <[email protected]> | ||
M: Jens Taprogge <[email protected]> | ||
|
@@ -5099,6 +5115,15 @@ S: Maintained | |
F: Documentation/hwmon/max6650 | ||
F: drivers/hwmon/max6650.c | ||
|
||
MAX6697 HARDWARE MONITOR DRIVER | ||
M: Guenter Roeck <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/hwmon/max6697 | ||
F: Documentation/devicetree/bindings/i2c/max6697.txt | ||
F: drivers/hwmon/max6697.c | ||
F: include/linux/platform_data/max6697.h | ||
|
||
MAXIRADIO FM RADIO RECEIVER DRIVER | ||
M: Hans Verkuil <[email protected]> | ||
L: [email protected] | ||
|
@@ -5623,6 +5648,14 @@ S: Maintained | |
F: drivers/video/riva/ | ||
F: drivers/video/nvidia/ | ||
|
||
NVM EXPRESS DRIVER | ||
M: Matthew Wilcox <[email protected]> | ||
L: [email protected] | ||
T: git git://git.infradead.org/users/willy/linux-nvme.git | ||
S: Supported | ||
F: drivers/block/nvme.c | ||
F: include/linux/nvme.h | ||
|
||
OMAP SUPPORT | ||
M: Tony Lindgren <[email protected]> | ||
L: [email protected] | ||
|
@@ -6413,6 +6446,8 @@ F: Documentation/networking/LICENSE.qla3xxx | |
F: drivers/net/ethernet/qlogic/qla3xxx.* | ||
|
||
QLOGIC QLCNIC (1/10)Gb ETHERNET DRIVER | ||
M: Rajesh Borundia <[email protected]> | ||
M: Shahed Shaikh <[email protected]> | ||
M: Jitendra Kalsaria <[email protected]> | ||
M: Sony Chacko <[email protected]> | ||
M: [email protected] | ||
|
@@ -7172,13 +7207,6 @@ L: [email protected] | |
S: Maintained | ||
F: drivers/net/ethernet/sis/sis900.* | ||
|
||
SIS 96X I2C/SMBUS DRIVER | ||
M: "Mark M. Hoffman" <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/i2c/busses/i2c-sis96x | ||
F: drivers/i2c/busses/i2c-sis96x.c | ||
|
||
SIS FRAMEBUFFER DRIVER | ||
M: Thomas Winischhofer <[email protected]> | ||
W: http://www.winischhofer.net/linuxsisvga.shtml | ||
|
@@ -7256,7 +7284,7 @@ F: Documentation/hwmon/sch5627 | |
F: drivers/hwmon/sch5627.c | ||
|
||
SMSC47B397 HARDWARE MONITOR DRIVER | ||
M: "Mark M. Hoffman" <[email protected]> | ||
M: Jean Delvare <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/hwmon/smsc47b397 | ||
|
Oops, something went wrong.