diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-03 14:36:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-03 14:36:27 -0400 |
commit | 1d1fdd95df681f0c065d90ffaafa215a0e8825e2 (patch) | |
tree | 19016e131bb5c7eb280a4cc8dff864ba36e53be4 /include | |
parent | b3b49114c80e799af8b08c0c6d1ff886ea843f03 (diff) | |
parent | 3cc1f95283a125cf54ccf1e25065321d4385133b (diff) |
Merge tag 'char-misc-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc patches from Greg KH:
"Here is the big char/misc driver pull request for 3.12-rc1
Lots of driver updates all over the char/misc tree, full details in
the shortlog"
* tag 'char-misc-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (62 commits)
drivers: uio: Kconfig: add MMU dependancy for UIO
drivers: uio: Add driver for Humusoft MF624 DAQ PCI card
drivers: uio_pdrv_genirq: use dev_get_platdata()
drivers: uio_pruss: use dev_get_platdata()
drivers: uio_dmem_genirq: use dev_get_platdata()
drivers: parport: Kconfig: exclude h8300 for PARPORT_PC
drivers: misc: ti-st: fix potential race if st_kim_start fails
Drivers: hv: vmbus: Do not attempt to negoatiate a new version prematurely
misc: vmw_balloon: Remove braces to fix build for clang.
Drivers: hv: vmbus: Fix a bug in the handling of channel offers
vme: vme_ca91cx42.c: fix to pass correct device identity to free_irq()
VMCI: Add support for virtual IOMMU
VMCI: Remove non-blocking/pinned queuepair support
uio: uio_pruss: remove unnecessary platform_set_drvdata()
parport: amiga: remove unnecessary platform_set_drvdata()
vme: vme_vmivme7805.c: add missing __iomem annotation
vme: vme_ca91cx42.c: add missing __iomem annotation
vme: vme_tsi148.c: add missing __iomem annotation
drivers/misc/hpilo: Correct panic when an AUX iLO is detected
uio: drop unused vma_count member in uio_device struct
...
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/extcon/of_extcon.h | 31 | ||||
-rw-r--r-- | include/linux/hyperv.h | 31 | ||||
-rw-r--r-- | include/linux/mfd/palmas.h | 8 | ||||
-rw-r--r-- | include/linux/usb/dwc3-omap.h | 30 |
4 files changed, 43 insertions, 57 deletions
diff --git a/include/linux/extcon/of_extcon.h b/include/linux/extcon/of_extcon.h new file mode 100644 index 000000000000..0ebfeff1b55d --- /dev/null +++ b/include/linux/extcon/of_extcon.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * OF helpers for External connector (extcon) framework | ||
3 | * | ||
4 | * Copyright (C) 2013 Texas Instruments, Inc. | ||
5 | * Kishon Vijay Abraham I <kishon@ti.com> | ||
6 | * | ||
7 | * Copyright (C) 2013 Samsung Electronics | ||
8 | * Chanwoo Choi <cw00.choi@samsung.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | */ | ||
15 | |||
16 | #ifndef __LINUX_OF_EXTCON_H | ||
17 | #define __LINUX_OF_EXTCON_H | ||
18 | |||
19 | #include <linux/err.h> | ||
20 | |||
21 | #if IS_ENABLED(CONFIG_OF_EXTCON) | ||
22 | extern struct extcon_dev | ||
23 | *of_extcon_get_extcon_dev(struct device *dev, int index); | ||
24 | #else | ||
25 | static inline struct extcon_dev | ||
26 | *of_extcon_get_extcon_dev(struct device *dev, int index) | ||
27 | { | ||
28 | return ERR_PTR(-ENOSYS); | ||
29 | } | ||
30 | #endif /* CONFIG_OF_EXTCON */ | ||
31 | #endif /* __LINUX_OF_EXTCON_H */ | ||
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index fae8bac907ef..a3b8b2e2d244 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
@@ -27,6 +27,14 @@ | |||
27 | 27 | ||
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | 29 | ||
30 | /* | ||
31 | * Framework version for util services. | ||
32 | */ | ||
33 | |||
34 | #define UTIL_FW_MAJOR 3 | ||
35 | #define UTIL_FW_MINOR 0 | ||
36 | #define UTIL_FW_MAJOR_MINOR (UTIL_FW_MAJOR << 16 | UTIL_FW_MINOR) | ||
37 | |||
30 | 38 | ||
31 | /* | 39 | /* |
32 | * Implementation of host controlled snapshot of the guest. | 40 | * Implementation of host controlled snapshot of the guest. |
@@ -455,27 +463,6 @@ hv_get_ringbuffer_availbytes(struct hv_ring_buffer_info *rbi, | |||
455 | *read = dsize - *write; | 463 | *read = dsize - *write; |
456 | } | 464 | } |
457 | 465 | ||
458 | |||
459 | /* | ||
460 | * We use the same version numbering for all Hyper-V modules. | ||
461 | * | ||
462 | * Definition of versioning is as follows; | ||
463 | * | ||
464 | * Major Number Changes for these scenarios; | ||
465 | * 1. When a new version of Windows Hyper-V | ||
466 | * is released. | ||
467 | * 2. A Major change has occurred in the | ||
468 | * Linux IC's. | ||
469 | * (For example the merge for the first time | ||
470 | * into the kernel) Every time the Major Number | ||
471 | * changes, the Revision number is reset to 0. | ||
472 | * Minor Number Changes when new functionality is added | ||
473 | * to the Linux IC's that is not a bug fix. | ||
474 | * | ||
475 | * 3.1 - Added completed hv_utils driver. Shutdown/Heartbeat/Timesync | ||
476 | */ | ||
477 | #define HV_DRV_VERSION "3.1" | ||
478 | |||
479 | /* | 466 | /* |
480 | * VMBUS version is 32 bit entity broken up into | 467 | * VMBUS version is 32 bit entity broken up into |
481 | * two 16 bit quantities: major_number. minor_number. | 468 | * two 16 bit quantities: major_number. minor_number. |
@@ -1494,7 +1481,7 @@ struct hyperv_service_callback { | |||
1494 | }; | 1481 | }; |
1495 | 1482 | ||
1496 | #define MAX_SRV_VER 0x7ffffff | 1483 | #define MAX_SRV_VER 0x7ffffff |
1497 | extern void vmbus_prep_negotiate_resp(struct icmsg_hdr *, | 1484 | extern bool vmbus_prep_negotiate_resp(struct icmsg_hdr *, |
1498 | struct icmsg_negotiate *, u8 *, int, | 1485 | struct icmsg_negotiate *, u8 *, int, |
1499 | int); | 1486 | int); |
1500 | 1487 | ||
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index c06d78af3342..e6090d88e91d 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
@@ -372,17 +372,15 @@ struct palmas_usb { | |||
372 | 372 | ||
373 | struct extcon_dev edev; | 373 | struct extcon_dev edev; |
374 | 374 | ||
375 | /* used to set vbus, in atomic path */ | ||
376 | struct work_struct set_vbus_work; | ||
377 | |||
378 | int id_otg_irq; | 375 | int id_otg_irq; |
379 | int id_irq; | 376 | int id_irq; |
380 | int vbus_otg_irq; | 377 | int vbus_otg_irq; |
381 | int vbus_irq; | 378 | int vbus_irq; |
382 | 379 | ||
383 | int vbus_enable; | ||
384 | |||
385 | enum palmas_usb_state linkstat; | 380 | enum palmas_usb_state linkstat; |
381 | int wakeup; | ||
382 | bool enable_vbus_detection; | ||
383 | bool enable_id_detection; | ||
386 | }; | 384 | }; |
387 | 385 | ||
388 | #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator) | 386 | #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator) |
diff --git a/include/linux/usb/dwc3-omap.h b/include/linux/usb/dwc3-omap.h deleted file mode 100644 index 5615f4d82724..000000000000 --- a/include/linux/usb/dwc3-omap.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013 by Texas Instruments | ||
3 | * | ||
4 | * The Inventra Controller Driver for Linux is free software; you | ||
5 | * can redistribute it and/or modify it under the terms of the GNU | ||
6 | * General Public License version 2 as published by the Free Software | ||
7 | * Foundation. | ||
8 | */ | ||
9 | |||
10 | #ifndef __DWC3_OMAP_H__ | ||
11 | #define __DWC3_OMAP_H__ | ||
12 | |||
13 | enum omap_dwc3_vbus_id_status { | ||
14 | OMAP_DWC3_UNKNOWN = 0, | ||
15 | OMAP_DWC3_ID_GROUND, | ||
16 | OMAP_DWC3_ID_FLOAT, | ||
17 | OMAP_DWC3_VBUS_VALID, | ||
18 | OMAP_DWC3_VBUS_OFF, | ||
19 | }; | ||
20 | |||
21 | #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) | ||
22 | extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); | ||
23 | #else | ||
24 | static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) | ||
25 | { | ||
26 | return -ENODEV; | ||
27 | } | ||
28 | #endif | ||
29 | |||
30 | #endif /* __DWC3_OMAP_H__ */ | ||