From: Luis Henriques <luis.henriques@canonical.com>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
kernel-team@lists.ubuntu.com
Cc: Philipp Zabel <p.zabel@pengutronix.de>,
Mark Brown <broonie@kernel.org>,
Luis Henriques <luis.henriques@canonical.com>
Subject: [PATCH 3.16.y-ckt 090/144] regmap: introduce regmap_name to fix syscon regmap trace events
Date: Tue, 21 Apr 2015 16:31:15 +0100 [thread overview]
Message-ID: <1429630329-21748-91-git-send-email-luis.henriques@canonical.com> (raw)
In-Reply-To: <1429630329-21748-1-git-send-email-luis.henriques@canonical.com>
3.16.7-ckt10 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Philipp Zabel <p.zabel@pengutronix.de>
commit c6b570d97c0e77f570bb6b2ed30d372b2b1e9aae upstream.
This patch fixes a NULL pointer dereference when enabling regmap event
tracing in the presence of a syscon regmap, introduced by commit bdb0066df96e
("mfd: syscon: Decouple syscon interface from platform devices").
That patch introduced syscon regmaps that have their dev field set to NULL.
The regmap trace events expect it to point to a valid struct device and feed
it to dev_name():
$ echo 1 > /sys/kernel/debug/tracing/events/regmap/enable
Unable to handle kernel NULL pointer dereference at virtual address 0000002c
pgd = 80004000
[0000002c] *pgd=00000000
Internal error: Oops: 17 [#1] SMP ARM
Modules linked in: coda videobuf2_vmalloc
CPU: 0 PID: 304 Comm: kworker/0:2 Not tainted 4.0.0-rc2+ #9197
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
Workqueue: events_freezable thermal_zone_device_check
task: 9f25a200 ti: 9f1ee000 task.ti: 9f1ee000
PC is at ftrace_raw_event_regmap_block+0x3c/0xe4
LR is at _regmap_raw_read+0x1bc/0x1cc
pc : [<803636e8>] lr : [<80365f2c>] psr: 600f0093
sp : 9f1efd78 ip : 9f1efdb8 fp : 9f1efdb4
r10: 00000004 r9 : 00000001 r8 : 00000001
r7 : 00000180 r6 : 00000000 r5 : 9f00e3c0 r4 : 00000003
r3 : 00000001 r2 : 00000180 r1 : 00000000 r0 : 9f00e3c0
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 2d91004a DAC: 00000015
Process kworker/0:2 (pid: 304, stack limit = 0x9f1ee210)
Stack: (0x9f1efd78 to 0x9f1f0000)
fd60: 9f1efda4 9f1efd88
fd80: 800708c0 805f9510 80927140 800f0013 9f1fc800 9eb2f490 00000000 00000180
fda0: 808e3840 00000001 9f1efdfc 9f1efdb8 80365f2c 803636b8 805f8958 800708e0
fdc0: a00f0013 803636ac 9f16de00 00000180 80927140 9f1fc800 9f1fc800 9f1efe6c
fde0: 9f1efe6c 9f732400 00000000 00000000 9f1efe1c 9f1efe00 80365f70 80365d7c
fe00: 80365f3c 9f1fc800 9f1fc800 00000180 9f1efe44 9f1efe20 803656a4 80365f48
fe20: 9f1fc800 00000180 9f1efe6c 9f1efe6c 9f732400 00000000 9f1efe64 9f1efe48
fe40: 803657bc 80365634 00000001 9e95f910 9f1fc800 9f1efeb4 9f1efe8c 9f1efe68
fe60: 80452ac0 80365778 9f1efe8c 9f1efe78 9e93d400 9e93d5e8 9f1efeb4 9f72ef40
fe80: 9f1efeac 9f1efe90 8044e11c 80452998 8045298c 9e93d608 9e93d400 808e1978
fea0: 9f1efecc 9f1efeb0 8044fd14 8044e0d0 ffffffff 9f25a200 9e93d608 9e481380
fec0: 9f1efedc 9f1efed0 8044fde8 8044fcec 9f1eff1c 9f1efee0 80038d50 8044fdd8
fee0: 9f1ee020 9f72ef40 9e481398 00000000 00000008 9f72ef54 9f1ee020 9f72ef40
ff00: 9e481398 9e481380 00000008 9f72ef40 9f1eff5c 9f1eff20 80039754 80038bfc
ff20: 00000000 9e481380 80894100 808e1662 00000000 9e4f2ec0 00000000 9e481380
ff40: 800396f8 00000000 00000000 00000000 9f1effac 9f1eff60 8003e020 80039704
ff60: ffffffff 00000000 ffffffff 9e481380 00000000 00000000 9f1eff78 9f1eff78
ff80: 00000000 00000000 9f1eff88 9f1eff88 9e4f2ec0 8003df30 00000000 00000000
ffa0: 00000000 9f1effb0 8000eb60 8003df3c 00000000 00000000 00000000 00000000
ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
Backtrace:
[<803636ac>] (ftrace_raw_event_regmap_block) from [<80365f2c>] (_regmap_raw_read+0x1bc/0x1cc)
r9:00000001 r8:808e3840 r7:00000180 r6:00000000 r5:9eb2f490 r4:9f1fc800
[<80365d70>] (_regmap_raw_read) from [<80365f70>] (_regmap_bus_read+0x34/0x6c)
r10:00000000 r9:00000000 r8:9f732400 r7:9f1efe6c r6:9f1efe6c r5:9f1fc800
r4:9f1fc800
[<80365f3c>] (_regmap_bus_read) from [<803656a4>] (_regmap_read+0x7c/0x144)
r6:00000180 r5:9f1fc800 r4:9f1fc800 r3:80365f3c
[<80365628>] (_regmap_read) from [<803657bc>] (regmap_read+0x50/0x70)
r9:00000000 r8:9f732400 r7:9f1efe6c r6:9f1efe6c r5:00000180 r4:9f1fc800
[<8036576c>] (regmap_read) from [<80452ac0>] (imx_get_temp+0x134/0x1a4)
r6:9f1efeb4 r5:9f1fc800 r4:9e95f910 r3:00000001
[<8045298c>] (imx_get_temp) from [<8044e11c>] (thermal_zone_get_temp+0x58/0x74)
r7:9f72ef40 r6:9f1efeb4 r5:9e93d5e8 r4:9e93d400
[<8044e0c4>] (thermal_zone_get_temp) from [<8044fd14>] (thermal_zone_device_update+0x34/0xec)
r6:808e1978 r5:9e93d400 r4:9e93d608 r3:8045298c
[<8044fce0>] (thermal_zone_device_update) from [<8044fde8>] (thermal_zone_device_check+0x1c/0x20)
r5:9e481380 r4:9e93d608
[<8044fdcc>] (thermal_zone_device_check) from [<80038d50>] (process_one_work+0x160/0x3d4)
[<80038bf0>] (process_one_work) from [<80039754>] (worker_thread+0x5c/0x4f4)
r10:9f72ef40 r9:00000008 r8:9e481380 r7:9e481398 r6:9f72ef40 r5:9f1ee020
r4:9f72ef54
[<800396f8>] (worker_thread) from [<8003e020>] (kthread+0xf0/0x108)
r10:00000000 r9:00000000 r8:00000000 r7:800396f8 r6:9e481380 r5:00000000
r4:9e4f2ec0
[<8003df30>] (kthread) from [<8000eb60>] (ret_from_fork+0x14/0x34)
r7:00000000 r6:00000000 r5:8003df30 r4:9e4f2ec0
Code: e3140040 1a00001a e3140020 1a000016 (e596002c)
---[ end trace 193c15c2494ec960 ]---
Fixes: bdb0066df96e (mfd: syscon: Decouple syscon interface from platform devices)
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
drivers/base/regmap/internal.h | 8 +++
drivers/base/regmap/regcache.c | 16 +++---
drivers/base/regmap/regmap.c | 32 +++++------
include/trace/events/regmap.h | 123 ++++++++++++++++++++---------------------
4 files changed, 91 insertions(+), 88 deletions(-)
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index bfc90b8547f2..3259810b4718 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -235,4 +235,12 @@ extern struct regcache_ops regcache_rbtree_ops;
extern struct regcache_ops regcache_lzo_ops;
extern struct regcache_ops regcache_flat_ops;
+static inline const char *regmap_name(const struct regmap *map)
+{
+ if (map->dev)
+ return dev_name(map->dev);
+
+ return map->name;
+}
+
#endif
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 5617da6dc898..5c1cc008af9e 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -213,7 +213,7 @@ int regcache_read(struct regmap *map,
ret = map->cache_ops->read(map, reg, value);
if (ret == 0)
- trace_regmap_reg_read_cache(map->dev, reg, *value);
+ trace_regmap_reg_read_cache(map, reg, *value);
return ret;
}
@@ -303,7 +303,7 @@ int regcache_sync(struct regmap *map)
dev_dbg(map->dev, "Syncing %s cache\n",
map->cache_ops->name);
name = map->cache_ops->name;
- trace_regcache_sync(map->dev, name, "start");
+ trace_regcache_sync(map, name, "start");
if (!map->cache_dirty)
goto out;
@@ -338,7 +338,7 @@ out:
regmap_async_complete(map);
- trace_regcache_sync(map->dev, name, "stop");
+ trace_regcache_sync(map, name, "stop");
return ret;
}
@@ -373,7 +373,7 @@ int regcache_sync_region(struct regmap *map, unsigned int min,
name = map->cache_ops->name;
dev_dbg(map->dev, "Syncing %s cache from %d-%d\n", name, min, max);
- trace_regcache_sync(map->dev, name, "start region");
+ trace_regcache_sync(map, name, "start region");
if (!map->cache_dirty)
goto out;
@@ -393,7 +393,7 @@ out:
regmap_async_complete(map);
- trace_regcache_sync(map->dev, name, "stop region");
+ trace_regcache_sync(map, name, "stop region");
return ret;
}
@@ -420,7 +420,7 @@ int regcache_drop_region(struct regmap *map, unsigned int min,
map->lock(map->lock_arg);
- trace_regcache_drop_region(map->dev, min, max);
+ trace_regcache_drop_region(map, min, max);
ret = map->cache_ops->drop(map, min, max);
@@ -447,7 +447,7 @@ void regcache_cache_only(struct regmap *map, bool enable)
map->lock(map->lock_arg);
WARN_ON(map->cache_bypass && enable);
map->cache_only = enable;
- trace_regmap_cache_only(map->dev, enable);
+ trace_regmap_cache_only(map, enable);
map->unlock(map->lock_arg);
}
EXPORT_SYMBOL_GPL(regcache_cache_only);
@@ -485,7 +485,7 @@ void regcache_cache_bypass(struct regmap *map, bool enable)
map->lock(map->lock_arg);
WARN_ON(map->cache_only && enable);
map->cache_bypass = enable;
- trace_regmap_cache_bypass(map->dev, enable);
+ trace_regmap_cache_bypass(map, enable);
map->unlock(map->lock_arg);
}
EXPORT_SYMBOL_GPL(regcache_cache_bypass);
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 8cda01590ed2..457d335f8495 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -1210,7 +1210,7 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,
if (map->async && map->bus->async_write) {
struct regmap_async *async;
- trace_regmap_async_write_start(map->dev, reg, val_len);
+ trace_regmap_async_write_start(map, reg, val_len);
spin_lock_irqsave(&map->async_lock, flags);
async = list_first_entry_or_null(&map->async_free,
@@ -1268,8 +1268,7 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,
return ret;
}
- trace_regmap_hw_write_start(map->dev, reg,
- val_len / map->format.val_bytes);
+ trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes);
/* If we're doing a single register write we can probably just
* send the work_buf directly, otherwise try to do a gather
@@ -1301,8 +1300,7 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,
kfree(buf);
}
- trace_regmap_hw_write_done(map->dev, reg,
- val_len / map->format.val_bytes);
+ trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes);
return ret;
}
@@ -1336,12 +1334,12 @@ static int _regmap_bus_formatted_write(void *context, unsigned int reg,
map->format.format_write(map, reg, val);
- trace_regmap_hw_write_start(map->dev, reg, 1);
+ trace_regmap_hw_write_start(map, reg, 1);
ret = map->bus->write(map->bus_context, map->work_buf,
map->format.buf_size);
- trace_regmap_hw_write_done(map->dev, reg, 1);
+ trace_regmap_hw_write_done(map, reg, 1);
return ret;
}
@@ -1399,7 +1397,7 @@ int _regmap_write(struct regmap *map, unsigned int reg,
dev_info(map->dev, "%x <= %x\n", reg, val);
#endif
- trace_regmap_reg_write(map->dev, reg, val);
+ trace_regmap_reg_write(map, reg, val);
return map->reg_write(context, reg, val);
}
@@ -1702,7 +1700,7 @@ static int _regmap_raw_multi_reg_write(struct regmap *map,
for (i = 0; i < num_regs; i++) {
int reg = regs[i].reg;
int val = regs[i].def;
- trace_regmap_hw_write_start(map->dev, reg, 1);
+ trace_regmap_hw_write_start(map, reg, 1);
map->format.format_reg(u8, reg, map->reg_shift);
u8 += reg_bytes + pad_bytes;
map->format.format_val(u8, val, 0);
@@ -1717,7 +1715,7 @@ static int _regmap_raw_multi_reg_write(struct regmap *map,
for (i = 0; i < num_regs; i++) {
int reg = regs[i].reg;
- trace_regmap_hw_write_done(map->dev, reg, 1);
+ trace_regmap_hw_write_done(map, reg, 1);
}
return ret;
}
@@ -1988,15 +1986,13 @@ static int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
*/
u8[0] |= map->read_flag_mask;
- trace_regmap_hw_read_start(map->dev, reg,
- val_len / map->format.val_bytes);
+ trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes);
ret = map->bus->read(map->bus_context, map->work_buf,
map->format.reg_bytes + map->format.pad_bytes,
val, val_len);
- trace_regmap_hw_read_done(map->dev, reg,
- val_len / map->format.val_bytes);
+ trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes);
return ret;
}
@@ -2052,7 +2048,7 @@ static int _regmap_read(struct regmap *map, unsigned int reg,
dev_info(map->dev, "%x => %x\n", reg, *val);
#endif
- trace_regmap_reg_read(map->dev, reg, *val);
+ trace_regmap_reg_read(map, reg, *val);
if (!map->cache_bypass)
regcache_write(map, reg, *val);
@@ -2409,7 +2405,7 @@ void regmap_async_complete_cb(struct regmap_async *async, int ret)
struct regmap *map = async->map;
bool wake;
- trace_regmap_async_io_complete(map->dev);
+ trace_regmap_async_io_complete(map);
spin_lock(&map->async_lock);
list_move(&async->list, &map->async_free);
@@ -2454,7 +2450,7 @@ int regmap_async_complete(struct regmap *map)
if (!map->bus || !map->bus->async_write)
return 0;
- trace_regmap_async_complete_start(map->dev);
+ trace_regmap_async_complete_start(map);
wait_event(map->async_waitq, regmap_async_is_done(map));
@@ -2463,7 +2459,7 @@ int regmap_async_complete(struct regmap *map)
map->async_ret = 0;
spin_unlock_irqrestore(&map->async_lock, flags);
- trace_regmap_async_complete_done(map->dev);
+ trace_regmap_async_complete_done(map);
return ret;
}
diff --git a/include/trace/events/regmap.h b/include/trace/events/regmap.h
index 23d561512f64..22317d2b52ab 100644
--- a/include/trace/events/regmap.h
+++ b/include/trace/events/regmap.h
@@ -7,27 +7,26 @@
#include <linux/ktime.h>
#include <linux/tracepoint.h>
-struct device;
-struct regmap;
+#include "../../../drivers/base/regmap/internal.h"
/*
* Log register events
*/
DECLARE_EVENT_CLASS(regmap_reg,
- TP_PROTO(struct device *dev, unsigned int reg,
+ TP_PROTO(struct regmap *map, unsigned int reg,
unsigned int val),
- TP_ARGS(dev, reg, val),
+ TP_ARGS(map, reg, val),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
- __field( unsigned int, reg )
- __field( unsigned int, val )
+ __string( name, regmap_name(map) )
+ __field( unsigned int, reg )
+ __field( unsigned int, val )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
__entry->reg = reg;
__entry->val = val;
),
@@ -39,45 +38,45 @@ DECLARE_EVENT_CLASS(regmap_reg,
DEFINE_EVENT(regmap_reg, regmap_reg_write,
- TP_PROTO(struct device *dev, unsigned int reg,
+ TP_PROTO(struct regmap *map, unsigned int reg,
unsigned int val),
- TP_ARGS(dev, reg, val)
+ TP_ARGS(map, reg, val)
);
DEFINE_EVENT(regmap_reg, regmap_reg_read,
- TP_PROTO(struct device *dev, unsigned int reg,
+ TP_PROTO(struct regmap *map, unsigned int reg,
unsigned int val),
- TP_ARGS(dev, reg, val)
+ TP_ARGS(map, reg, val)
);
DEFINE_EVENT(regmap_reg, regmap_reg_read_cache,
- TP_PROTO(struct device *dev, unsigned int reg,
+ TP_PROTO(struct regmap *map, unsigned int reg,
unsigned int val),
- TP_ARGS(dev, reg, val)
+ TP_ARGS(map, reg, val)
);
DECLARE_EVENT_CLASS(regmap_block,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count),
+ TP_ARGS(map, reg, count),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
- __field( unsigned int, reg )
- __field( int, count )
+ __string( name, regmap_name(map) )
+ __field( unsigned int, reg )
+ __field( int, count )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
__entry->reg = reg;
__entry->count = count;
),
@@ -89,48 +88,48 @@ DECLARE_EVENT_CLASS(regmap_block,
DEFINE_EVENT(regmap_block, regmap_hw_read_start,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count)
+ TP_ARGS(map, reg, count)
);
DEFINE_EVENT(regmap_block, regmap_hw_read_done,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count)
+ TP_ARGS(map, reg, count)
);
DEFINE_EVENT(regmap_block, regmap_hw_write_start,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count)
+ TP_ARGS(map, reg, count)
);
DEFINE_EVENT(regmap_block, regmap_hw_write_done,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count)
+ TP_ARGS(map, reg, count)
);
TRACE_EVENT(regcache_sync,
- TP_PROTO(struct device *dev, const char *type,
+ TP_PROTO(struct regmap *map, const char *type,
const char *status),
- TP_ARGS(dev, type, status),
+ TP_ARGS(map, type, status),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
- __string( status, status )
- __string( type, type )
- __field( int, type )
+ __string( name, regmap_name(map) )
+ __string( status, status )
+ __string( type, type )
+ __field( int, type )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
__assign_str(status, status);
__assign_str(type, type);
),
@@ -141,17 +140,17 @@ TRACE_EVENT(regcache_sync,
DECLARE_EVENT_CLASS(regmap_bool,
- TP_PROTO(struct device *dev, bool flag),
+ TP_PROTO(struct regmap *map, bool flag),
- TP_ARGS(dev, flag),
+ TP_ARGS(map, flag),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
- __field( int, flag )
+ __string( name, regmap_name(map) )
+ __field( int, flag )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
__entry->flag = flag;
),
@@ -161,32 +160,32 @@ DECLARE_EVENT_CLASS(regmap_bool,
DEFINE_EVENT(regmap_bool, regmap_cache_only,
- TP_PROTO(struct device *dev, bool flag),
+ TP_PROTO(struct regmap *map, bool flag),
- TP_ARGS(dev, flag)
+ TP_ARGS(map, flag)
);
DEFINE_EVENT(regmap_bool, regmap_cache_bypass,
- TP_PROTO(struct device *dev, bool flag),
+ TP_PROTO(struct regmap *map, bool flag),
- TP_ARGS(dev, flag)
+ TP_ARGS(map, flag)
);
DECLARE_EVENT_CLASS(regmap_async,
- TP_PROTO(struct device *dev),
+ TP_PROTO(struct regmap *map),
- TP_ARGS(dev),
+ TP_ARGS(map),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
+ __string( name, regmap_name(map) )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
),
TP_printk("%s", __get_str(name))
@@ -194,50 +193,50 @@ DECLARE_EVENT_CLASS(regmap_async,
DEFINE_EVENT(regmap_block, regmap_async_write_start,
- TP_PROTO(struct device *dev, unsigned int reg, int count),
+ TP_PROTO(struct regmap *map, unsigned int reg, int count),
- TP_ARGS(dev, reg, count)
+ TP_ARGS(map, reg, count)
);
DEFINE_EVENT(regmap_async, regmap_async_io_complete,
- TP_PROTO(struct device *dev),
+ TP_PROTO(struct regmap *map),
- TP_ARGS(dev)
+ TP_ARGS(map)
);
DEFINE_EVENT(regmap_async, regmap_async_complete_start,
- TP_PROTO(struct device *dev),
+ TP_PROTO(struct regmap *map),
- TP_ARGS(dev)
+ TP_ARGS(map)
);
DEFINE_EVENT(regmap_async, regmap_async_complete_done,
- TP_PROTO(struct device *dev),
+ TP_PROTO(struct regmap *map),
- TP_ARGS(dev)
+ TP_ARGS(map)
);
TRACE_EVENT(regcache_drop_region,
- TP_PROTO(struct device *dev, unsigned int from,
+ TP_PROTO(struct regmap *map, unsigned int from,
unsigned int to),
- TP_ARGS(dev, from, to),
+ TP_ARGS(map, from, to),
TP_STRUCT__entry(
- __string( name, dev_name(dev) )
- __field( unsigned int, from )
- __field( unsigned int, to )
+ __string( name, regmap_name(map) )
+ __field( unsigned int, from )
+ __field( unsigned int, to )
),
TP_fast_assign(
- __assign_str(name, dev_name(dev));
+ __assign_str(name, regmap_name(map));
__entry->from = from;
__entry->to = to;
),
next prev parent reply other threads:[~2015-04-21 16:05 UTC|newest]
Thread overview: 145+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 15:29 [3.16.y-ckt stable] Linux 3.16.7-ckt10 stable review Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 001/144] fuse: notify: don't move pages Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 002/144] fuse: set stolen page uptodate Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 003/144] dm thin: fix to consistently zero-fill reads to unprovisioned blocks Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 004/144] dm: hold suspend_lock while suspending device during device deletion Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 005/144] dm snapshot: suspend origin when doing exception handover Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 006/144] dm snapshot: suspend merging snapshot " Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 007/144] dm io: deal with wandering queue limits when handling REQ_DISCARD and REQ_WRITE_SAME Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 008/144] crypto: arm/aes update NEON AES module to latest OpenSSL version Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 009/144] mac80211: drop unencrypted frames in mesh fwding Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 010/144] mac80211: disable u-APSD queues by default Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 011/144] ASoC: ak4671: Fix control-less DAPM routes Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 012/144] ASoC: da732x: " Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 013/144] ASoC: sn95031: " Luis Henriques
2015-04-21 15:29 ` [PATCH 3.16.y-ckt 014/144] virtio_console: init work unconditionally Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 015/144] virtio_console: avoid config access from irq Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 016/144] clocksource: efm32: Fix a NULL pointer dereference Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 017/144] clockevents: sun5i: Fix setup_irq init sequence Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 018/144] x86/vdso: Fix the build on GCC5 Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 019/144] ASoC: sgtl5000: remove useless register write clearing CHRGPUMP_POWERUP Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 020/144] regmap: regcache-rbtree: Fix present bitmap resize Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 021/144] regulator: Only enable disabled regulators on resume Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 022/144] regulator: core: Fix enable GPIO reference counting Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 023/144] Input: psmouse - add psmouse_matches_pnp_id helper function Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 024/144] Input: synaptics - split synaptics_resolution(), query first Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 025/144] Input: synaptics - log queried and quirked dimension values Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 026/144] Input: synaptics - query min dimensions for fw v8.1 Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 027/144] Input: synaptics - remove obsolete min/max quirk for X240 Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 028/144] Input: synaptics - support min/max board id in min_max_pnpid_table Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 029/144] Input: synaptics - skip quirks when post-2013 dimensions Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 030/144] Input: synaptics - fix middle button on Lenovo 2015 products Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 031/144] Input: synaptics - handle spurious release of trackstick buttons Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 032/144] Input: synaptics - do not retrieve the board id on old firmwares Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 033/144] vt6655: RFbSetPower fix missing rate RATE_12M Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 034/144] x86/asm/entry/32: Fix user_mode() misuses Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 035/144] ASoC: adav80x: Fix wrong value references for boolean kctl Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 036/144] ASoC: ak4641: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 037/144] ASoC: cs4271: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 038/144] ASoC: pcm1681: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 039/144] ASoC: tas5086: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 040/144] ASoC: wm2000: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 041/144] ASoC: wm8731: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 042/144] ASoC: wm8903: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 043/144] ASoC: wm8904: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 044/144] ASoC: wm8955: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 045/144] ASoC: wm8960: " Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 046/144] usb: phy: am335x-control: check return value of bus_find_device Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 047/144] crypto: aesni - fix memory usage in GCM decryption Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 048/144] phy: Find the right match in devm_phy_destroy() Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 049/144] x86/fpu: Avoid math_state_restore() without used_math() in __restore_xstate_sig() Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 050/144] x86/fpu: Drop_fpu() should not assume that tsk equals current Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 051/144] cpuidle: mvebu: Fix the CPU PM notifier usage Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 052/144] can: kvaser_usb: Fix tx queue start/stop race conditions Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 053/144] usb: chipidea: otg: add a_alt_hnp_support response for B device Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 054/144] mac80211: count interfaces correctly for combination checks Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 055/144] nl80211: ignore HT/VHT capabilities without QoS/WMM Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 056/144] ALSA: hda - Treat stereo-to-mono mix properly Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 057/144] pagemap: do not leak physical addresses to non-privileged userspace Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 058/144] uas: Add US_FL_NO_ATA_1X for Initio Corporation controllers / devices Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 059/144] usb: common: otg-fsm: only signal connect after switching to peripheral Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 060/144] of/irq: Fix of_irq_parse_one() returned error codes Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 061/144] iscsi-target: Avoid early conn_logout_comp for iser connections Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 062/144] tcm_qla2xxx: Fix incorrect use of __transport_register_session Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 063/144] target: Fix reference leak in target_get_sess_cmd() error path Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 064/144] tcm_fc: missing curly braces in ft_invl_hw_context() Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 065/144] target/pscsi: Fix NULL pointer dereference in get_device_type Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 066/144] target: Fix virtual LUN=0 target_configure_device failure OOPs Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 067/144] arm64: Honor __GFP_ZERO in dma allocations Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 068/144] IB/mlx4: Saturate RoCE port PMA counters in case of overflow Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 069/144] dmaengine: dw: append MODULE_ALIAS for platform driver Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 070/144] xfrm: release dst_orig in case of error in xfrm_lookup() Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 071/144] staging: vt6656: vnt_rf_setpower: fix missing rate RATE_12M Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 072/144] Btrfs: make xattr replace operations atomic Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 073/144] x86/microcode/intel: Guard against stack overflow in the loader Luis Henriques
2015-04-21 15:30 ` [PATCH 3.16.y-ckt 074/144] powerpc/smp: Wait until secondaries are active & online Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 075/144] powerpc/iommu: Remove IOMMU device references via bus notifier Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 076/144] powerpc/mpc85xx: Add ranges to etsec2 nodes Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 077/144] IB/core: Avoid leakage from kernel to user space Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 078/144] timers/tick/broadcast-hrtimer: Fix suspicious RCU usage in idle loop Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 079/144] ALSA: hda - Add one more node in the EAPD supporting candidate list Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 080/144] serial: 8250_dw: Fix deadlock in LCR workaround Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 081/144] drm/i915/bdw: PCI IDs ending in 0xb are ULT Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 082/144] btrfs: simplify insert_orphan_item Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 083/144] ARM: sunxi: Have ARCH_SUNXI select RESET_CONTROLLER for clock driver usage Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 084/144] writeback: add missing INITIAL_JIFFIES init in global_update_bandwidth() Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 085/144] nbd: fix possible memory leak Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 086/144] spi: qup: Fix cs-num DT property parsing Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 087/144] mfd: kempld-core: Fix callback return value check Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 088/144] KVM: nVMX: mask unrestricted_guest if disabled on L0 Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 089/144] spi: trigger trace event for message-done before mesg->complete Luis Henriques
2015-04-21 15:31 ` Luis Henriques [this message]
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 091/144] powerpc/pseries: Little endian fixes for post mobility device tree update Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 092/144] Fix bug in blk_rq_merge_ok Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 093/144] net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5} Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 094/144] powerpc/book3s: Fix the MCE code to use CONFIG_KVM_BOOK3S_64_HANDLER Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 095/144] perf: Fix irq_work 'tail' recursion Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 096/144] sched: Fix RLIMIT_RTTIME when PI-boosting to RT Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 097/144] ALSA: hda - Add dock support for Thinkpad T450s (17aa:5036) Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 098/144] arm64: Use the reserved TTBR0 if context switching to the init_mm Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 099/144] selinux: fix sel_write_enforce broken return value Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 100/144] mm: fix anon_vma->degree underflow in anon_vma endless growing prevention Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 101/144] mm/memory hotplug: postpone the reset of obsolete pgdat Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 102/144] hfsplus: fix B-tree corruption after insertion at position 0 Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 103/144] ARC: SA_SIGINFO ucontext regs off-by-one Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 104/144] writeback: fix possible underflow in write bandwidth calculation Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 105/144] ipv6: Don't reduce hop limit for an interface Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 106/144] iio: fix drivers that check buffer->scan_mask Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 107/144] iio: inv_mpu6050: Clear timestamps fifo while resetting hardware fifo Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 108/144] iio: core: Fix double free Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 109/144] USB: ftdi_sio: Added custom PID for Synapse Wireless product Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 110/144] iwlwifi: dvm: run INIT firmware again upon .start() Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 111/144] USB: serial: keyspan_pda: fix Entrega company name spelling Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 112/144] USB: keyspan_pda: add new device id Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 113/144] cifs: smb2_clone_range() - exit on unhandled error Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 114/144] cifs: fix use-after-free bug in find_writable_file Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 115/144] can: flexcan: Deferred on Regulator return EPROBE_DEFER Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 116/144] xen/balloon: before adding hotplugged memory, set frames to invalid Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 117/144] usb: xhci: handle Config Error Change (CEC) in xhci driver Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 118/144] usb: xhci: apply XHCI_AVOID_BEI quirk to all Intel xHCI controllers Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 119/144] USB: ftdi_sio: Use jtag quirk for SNAP Connect E10 Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 120/144] tty: serial: fsl_lpuart: clear receive flag on FIFO flush Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 121/144] drm/radeon/dpm: fix 120hz handling harder Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 122/144] radeon: Do not directly dereference pointers to BIOS area Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 123/144] iio: adc: vf610: use ADC clock within specification Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 124/144] iio: imu: Use iio_trigger_get for indio_dev->trig assignment Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 125/144] dmaengine: edma: fix memory leak when terminating running transfers Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 126/144] dmaengine: omap-dma: Fix memory leak when terminating running transfer Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 127/144] x86/reboot: Add ASRock Q1900DC-ITX mainboard reboot quirk Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 128/144] mac80211: fix RX A-MPDU session reorder timer deletion Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 129/144] IB/uverbs: Prevent integer overflow in ib_umem_get address arithmetic Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 130/144] net: use for_each_netdev_safe() in rtnl_group_changelink() Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 131/144] net/mlx4_en: Call register_netdevice in the proper location Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 132/144] xen-netfront: transmit fully GSO-sized packets Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 133/144] tcp: fix FRTO undo on cumulative ACK of SACKed range Luis Henriques
2015-04-21 15:31 ` [PATCH 3.16.y-ckt 134/144] KVM: remove redundant assignments in __kvm_set_memory_region Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 135/144] kvm: commonize allocation of the new memory slots Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 136/144] kvm: avoid page allocation failure in kvm_set_memory_region() Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 137/144] hpsa: refine the pci enable/disable handling Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 138/144] hpsa: add missing pci_set_master in kdump path Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 139/144] hpsa: fix memory leak in kdump hard reset Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 140/144] hpsa: turn off interrupts when kdump starts Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 141/144] sb_edac: Fix erroneous bytes->gigabytes conversion Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 142/144] sb_edac: avoid INTERNAL ERROR message in EDAC with unspecified channel Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 143/144] NFS: fix BUG() crash in notify_change() with patch to chown_common() Luis Henriques
2015-04-21 15:32 ` [PATCH 3.16.y-ckt 144/144] tcp: Fix crash in TCP Fast Open Luis Henriques
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429630329-21748-91-git-send-email-luis.henriques@canonical.com \
--to=luis.henriques@canonical.com \
--cc=broonie@kernel.org \
--cc=kernel-team@lists.ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®