diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-14 19:43:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-14 19:43:47 -0500 |
commit | 6ae840e7cc4be0be3aa40d9f67c35c75cfc67d83 (patch) | |
tree | 9c83c87a8670ef678d95f8d6f76a07f24a09a49f /drivers/w1 | |
parent | e6b5be2be4e30037eb551e0ed09dd97bd00d85d3 (diff) | |
parent | 91905b6f4afe51e23a3f58df93e4cdc5e49cf40c (diff) |
Merge tag 'char-misc-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH:
"Here's the big char/misc driver update for 3.19-rc1
Lots of little things all over the place in different drivers, and a
new subsystem, "coresight" has been added. Full details are in the
shortlog"
* tag 'char-misc-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (73 commits)
parport: parport_pc, do not remove parent devices early
spmi: Remove shutdown/suspend/resume kernel-doc
carma-fpga-program: drop videobuf dependency
carma-fpga: drop videobuf dependency
carma-fpga-program.c: fix compile errors
i8k: Fix temperature bug handling in i8k_get_temp()
cxl: Name interrupts in /proc/interrupt
CXL: Return error to PSL if IRQ demultiplexing fails & print clearer warning
coresight-replicator: remove .owner field for driver
coresight: fixed comments in coresight.h
coresight: fix typo in comment in coresight-priv.h
coresight: bindings for coresight drivers
coresight: Adding ABI documentation
w1: support auto-load of w1_bq27000 module.
w1: avoid potential u16 overflow
cn: verify msg->len before making callback
mei: export fw status registers through sysfs
mei: read and print all six FW status registers
mei: txe: add cherrytrail device id
mei: kill cached host and me csr values
...
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/masters/ds2490.c | 2 | ||||
-rw-r--r-- | drivers/w1/slaves/w1_bq27000.c | 4 | ||||
-rw-r--r-- | drivers/w1/w1.c | 2 | ||||
-rw-r--r-- | drivers/w1/w1_family.h | 1 | ||||
-rw-r--r-- | drivers/w1/w1_netlink.c | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index 1de6df87bfa3..049a884a756f 100644 --- a/drivers/w1/masters/ds2490.c +++ b/drivers/w1/masters/ds2490.c | |||
@@ -253,7 +253,7 @@ static int ds_recv_status_nodump(struct ds_device *dev, struct ds_status *st, | |||
253 | 253 | ||
254 | count = 0; | 254 | count = 0; |
255 | err = usb_interrupt_msg(dev->udev, usb_rcvintpipe(dev->udev, | 255 | err = usb_interrupt_msg(dev->udev, usb_rcvintpipe(dev->udev, |
256 | dev->ep[EP_STATUS]), buf, size, &count, 100); | 256 | dev->ep[EP_STATUS]), buf, size, &count, 1000); |
257 | if (err < 0) { | 257 | if (err < 0) { |
258 | pr_err("Failed to read 1-wire data from 0x%x: err=%d.\n", | 258 | pr_err("Failed to read 1-wire data from 0x%x: err=%d.\n", |
259 | dev->ep[EP_STATUS], err); | 259 | dev->ep[EP_STATUS], err); |
diff --git a/drivers/w1/slaves/w1_bq27000.c b/drivers/w1/slaves/w1_bq27000.c index afbefed5f2c9..caafb1722783 100644 --- a/drivers/w1/slaves/w1_bq27000.c +++ b/drivers/w1/slaves/w1_bq27000.c | |||
@@ -88,7 +88,7 @@ static struct w1_family_ops w1_bq27000_fops = { | |||
88 | }; | 88 | }; |
89 | 89 | ||
90 | static struct w1_family w1_bq27000_family = { | 90 | static struct w1_family w1_bq27000_family = { |
91 | .fid = 1, | 91 | .fid = W1_FAMILY_BQ27000, |
92 | .fops = &w1_bq27000_fops, | 92 | .fops = &w1_bq27000_fops, |
93 | }; | 93 | }; |
94 | 94 | ||
@@ -111,7 +111,7 @@ module_exit(w1_bq27000_exit); | |||
111 | 111 | ||
112 | module_param(F_ID, int, S_IRUSR); | 112 | module_param(F_ID, int, S_IRUSR); |
113 | MODULE_PARM_DESC(F_ID, "1-wire slave FID for BQ device"); | 113 | MODULE_PARM_DESC(F_ID, "1-wire slave FID for BQ device"); |
114 | 114 | MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_BQ27000)); | |
115 | MODULE_LICENSE("GPL"); | 115 | MODULE_LICENSE("GPL"); |
116 | MODULE_AUTHOR("Texas Instruments Ltd"); | 116 | MODULE_AUTHOR("Texas Instruments Ltd"); |
117 | MODULE_DESCRIPTION("HDQ/1-wire slave driver bq27000 battery monitor chip"); | 117 | MODULE_DESCRIPTION("HDQ/1-wire slave driver bq27000 battery monitor chip"); |
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 592f7edc671e..181f41cb960b 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c | |||
@@ -727,7 +727,7 @@ int w1_attach_slave_device(struct w1_master *dev, struct w1_reg_num *rn) | |||
727 | 727 | ||
728 | /* slave modules need to be loaded in a context with unlocked mutex */ | 728 | /* slave modules need to be loaded in a context with unlocked mutex */ |
729 | mutex_unlock(&dev->mutex); | 729 | mutex_unlock(&dev->mutex); |
730 | request_module("w1-family-0x%0x", rn->family); | 730 | request_module("w1-family-0x%02x", rn->family); |
731 | mutex_lock(&dev->mutex); | 731 | mutex_lock(&dev->mutex); |
732 | 732 | ||
733 | spin_lock(&w1_flock); | 733 | spin_lock(&w1_flock); |
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h index 0d18365b61ad..ed5dcb80a1f7 100644 --- a/drivers/w1/w1_family.h +++ b/drivers/w1/w1_family.h | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/atomic.h> | 27 | #include <linux/atomic.h> |
28 | 28 | ||
29 | #define W1_FAMILY_DEFAULT 0 | 29 | #define W1_FAMILY_DEFAULT 0 |
30 | #define W1_FAMILY_BQ27000 0x01 | ||
30 | #define W1_FAMILY_SMEM_01 0x01 | 31 | #define W1_FAMILY_SMEM_01 0x01 |
31 | #define W1_FAMILY_SMEM_81 0x81 | 32 | #define W1_FAMILY_SMEM_81 0x81 |
32 | #define W1_THERM_DS18S20 0x10 | 33 | #define W1_THERM_DS18S20 0x10 |
diff --git a/drivers/w1/w1_netlink.c b/drivers/w1/w1_netlink.c index dd9656237274..881597a191b8 100644 --- a/drivers/w1/w1_netlink.c +++ b/drivers/w1/w1_netlink.c | |||
@@ -598,7 +598,7 @@ static void w1_cn_callback(struct cn_msg *cn, struct netlink_skb_parms *nsp) | |||
598 | msg = (struct w1_netlink_msg *)(cn + 1); | 598 | msg = (struct w1_netlink_msg *)(cn + 1); |
599 | if (node_count) { | 599 | if (node_count) { |
600 | int size; | 600 | int size; |
601 | u16 reply_size = sizeof(*cn) + cn->len + slave_len; | 601 | int reply_size = sizeof(*cn) + cn->len + slave_len; |
602 | if (cn->flags & W1_CN_BUNDLE) { | 602 | if (cn->flags & W1_CN_BUNDLE) { |
603 | /* bundling duplicats some of the messages */ | 603 | /* bundling duplicats some of the messages */ |
604 | reply_size += 2 * cmd_count * (sizeof(struct cn_msg) + | 604 | reply_size += 2 * cmd_count * (sizeof(struct cn_msg) + |