diff options
| author | Olof Johansson <olof@lixom.net> | 2013-12-26 14:03:29 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-12-26 14:03:29 -0500 |
| commit | 770039fef4887d22b12525b62cc4ade1ca724173 (patch) | |
| tree | 7408ae2a4dbe6a3b36af36976a04a968d951d6af /include/linux | |
| parent | 954e198eac14f6c34157bbf053149f3c2917cbbd (diff) | |
| parent | 8a0a1af30cbf56b41220a02e34835022c4d72f41 (diff) | |
Merge branch 'tegra/dma-reset-rework' into next/dt
Bringing in the tegra dma/reset framework cleanup as a base for the DT changes.
* tegra/dma-reset-rework: (320 commits)
spi: tegra: checking for ERR_PTR instead of NULL
ASoC: tegra: update module reset list for Tegra124
clk: tegra: remove bogus PCIE_XCLK
clk: tegra: remove legacy reset APIs
ARM: tegra: remove legacy DMA entries from DT
ARM: tegra: remove legacy clock entries from DT
USB: EHCI: tegra: use reset framework
Input: tegra-kbc - use reset framework
serial: tegra: convert to standard DMA DT bindings
serial: tegra: use reset framework
spi: tegra: convert to standard DMA DT bindings
spi: tegra: use reset framework
staging: nvec: use reset framework
i2c: tegra: use reset framework
ASoC: tegra: convert to standard DMA DT bindings
ASoC: tegra: allocate AHUB FIFO during probe() not startup()
ASoC: tegra: call pm_runtime APIs around register accesses
ASoC: tegra: use reset framework
dma: tegra: register as an OF DMA controller
dma: tegra: use reset framework
...
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/clk/tegra.h | 7 | ||||
| -rw-r--r-- | include/linux/cpufreq.h | 8 | ||||
| -rw-r--r-- | include/linux/dmaengine.h | 9 | ||||
| -rw-r--r-- | include/linux/efi.h | 4 | ||||
| -rw-r--r-- | include/linux/ftrace_event.h | 16 | ||||
| -rw-r--r-- | include/linux/gpio/driver.h | 3 | ||||
| -rw-r--r-- | include/linux/irqreturn.h | 2 | ||||
| -rw-r--r-- | include/linux/nfs4.h | 10 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 18 | ||||
| -rw-r--r-- | include/linux/sched.h | 2 | ||||
| -rw-r--r-- | include/linux/tegra-powergate.h | 7 | ||||
| -rw-r--r-- | include/linux/tracepoint.h | 4 |
12 files changed, 50 insertions, 40 deletions
diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index 23a0ceee831f..3ca9fca827a2 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h | |||
| @@ -120,13 +120,6 @@ static inline void tegra_cpu_clock_resume(void) | |||
| 120 | } | 120 | } |
| 121 | #endif | 121 | #endif |
| 122 | 122 | ||
| 123 | #ifdef CONFIG_ARCH_TEGRA | ||
| 124 | void tegra_periph_reset_deassert(struct clk *c); | ||
| 125 | void tegra_periph_reset_assert(struct clk *c); | ||
| 126 | #else | ||
| 127 | static inline void tegra_periph_reset_deassert(struct clk *c) {} | ||
| 128 | static inline void tegra_periph_reset_assert(struct clk *c) {} | ||
| 129 | #endif | ||
| 130 | void tegra_clocks_apply_init_table(void); | 123 | void tegra_clocks_apply_init_table(void); |
| 131 | 124 | ||
| 132 | #endif /* __LINUX_CLK_TEGRA_H_ */ | 125 | #endif /* __LINUX_CLK_TEGRA_H_ */ |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index dc196bbcf227..ee5fe9d77ae8 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -280,6 +280,14 @@ cpufreq_verify_within_cpu_limits(struct cpufreq_policy *policy) | |||
| 280 | policy->cpuinfo.max_freq); | 280 | policy->cpuinfo.max_freq); |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | #ifdef CONFIG_CPU_FREQ | ||
| 284 | void cpufreq_suspend(void); | ||
| 285 | void cpufreq_resume(void); | ||
| 286 | #else | ||
| 287 | static inline void cpufreq_suspend(void) {} | ||
| 288 | static inline void cpufreq_resume(void) {} | ||
| 289 | #endif | ||
| 290 | |||
| 283 | /********************************************************************* | 291 | /********************************************************************* |
| 284 | * CPUFREQ NOTIFIER INTERFACE * | 292 | * CPUFREQ NOTIFIER INTERFACE * |
| 285 | *********************************************************************/ | 293 | *********************************************************************/ |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 41cf0c399288..bae1568416f8 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #define LINUX_DMAENGINE_H | 22 | #define LINUX_DMAENGINE_H |
| 23 | 23 | ||
| 24 | #include <linux/device.h> | 24 | #include <linux/device.h> |
| 25 | #include <linux/err.h> | ||
| 25 | #include <linux/uio.h> | 26 | #include <linux/uio.h> |
| 26 | #include <linux/bug.h> | 27 | #include <linux/bug.h> |
| 27 | #include <linux/scatterlist.h> | 28 | #include <linux/scatterlist.h> |
| @@ -1040,6 +1041,8 @@ enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); | |||
| 1040 | void dma_issue_pending_all(void); | 1041 | void dma_issue_pending_all(void); |
| 1041 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | 1042 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, |
| 1042 | dma_filter_fn fn, void *fn_param); | 1043 | dma_filter_fn fn, void *fn_param); |
| 1044 | struct dma_chan *dma_request_slave_channel_reason(struct device *dev, | ||
| 1045 | const char *name); | ||
| 1043 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); | 1046 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); |
| 1044 | void dma_release_channel(struct dma_chan *chan); | 1047 | void dma_release_channel(struct dma_chan *chan); |
| 1045 | #else | 1048 | #else |
| @@ -1063,6 +1066,11 @@ static inline struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | |||
| 1063 | { | 1066 | { |
| 1064 | return NULL; | 1067 | return NULL; |
| 1065 | } | 1068 | } |
| 1069 | static inline struct dma_chan *dma_request_slave_channel_reason( | ||
| 1070 | struct device *dev, const char *name) | ||
| 1071 | { | ||
| 1072 | return ERR_PTR(-ENODEV); | ||
| 1073 | } | ||
| 1066 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, | 1074 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, |
| 1067 | const char *name) | 1075 | const char *name) |
| 1068 | { | 1076 | { |
| @@ -1079,6 +1087,7 @@ int dma_async_device_register(struct dma_device *device); | |||
| 1079 | void dma_async_device_unregister(struct dma_device *device); | 1087 | void dma_async_device_unregister(struct dma_device *device); |
| 1080 | void dma_run_dependencies(struct dma_async_tx_descriptor *tx); | 1088 | void dma_run_dependencies(struct dma_async_tx_descriptor *tx); |
| 1081 | struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); | 1089 | struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); |
| 1090 | struct dma_chan *dma_get_any_slave_channel(struct dma_device *device); | ||
| 1082 | struct dma_chan *net_dma_find_channel(void); | 1091 | struct dma_chan *net_dma_find_channel(void); |
| 1083 | #define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y) | 1092 | #define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y) |
| 1084 | #define dma_request_slave_channel_compat(mask, x, y, dev, name) \ | 1093 | #define dma_request_slave_channel_compat(mask, x, y, dev, name) \ |
diff --git a/include/linux/efi.h b/include/linux/efi.h index bc5687d0f315..11ce6784a196 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -801,6 +801,8 @@ struct efivar_entry { | |||
| 801 | struct efi_variable var; | 801 | struct efi_variable var; |
| 802 | struct list_head list; | 802 | struct list_head list; |
| 803 | struct kobject kobj; | 803 | struct kobject kobj; |
| 804 | bool scanning; | ||
| 805 | bool deleting; | ||
| 804 | }; | 806 | }; |
| 805 | 807 | ||
| 806 | 808 | ||
| @@ -866,6 +868,8 @@ void efivar_run_worker(void); | |||
| 866 | #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) | 868 | #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) |
| 867 | int efivars_sysfs_init(void); | 869 | int efivars_sysfs_init(void); |
| 868 | 870 | ||
| 871 | #define EFIVARS_DATA_SIZE_MAX 1024 | ||
| 872 | |||
| 869 | #endif /* CONFIG_EFI_VARS */ | 873 | #endif /* CONFIG_EFI_VARS */ |
| 870 | 874 | ||
| 871 | #endif /* _LINUX_EFI_H */ | 875 | #endif /* _LINUX_EFI_H */ |
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 9abbe630c456..8c9b7a1c4138 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -248,6 +248,9 @@ struct ftrace_event_call { | |||
| 248 | #ifdef CONFIG_PERF_EVENTS | 248 | #ifdef CONFIG_PERF_EVENTS |
| 249 | int perf_refcount; | 249 | int perf_refcount; |
| 250 | struct hlist_head __percpu *perf_events; | 250 | struct hlist_head __percpu *perf_events; |
| 251 | |||
| 252 | int (*perf_perm)(struct ftrace_event_call *, | ||
| 253 | struct perf_event *); | ||
| 251 | #endif | 254 | #endif |
| 252 | }; | 255 | }; |
| 253 | 256 | ||
| @@ -317,6 +320,19 @@ struct ftrace_event_file { | |||
| 317 | } \ | 320 | } \ |
| 318 | early_initcall(trace_init_flags_##name); | 321 | early_initcall(trace_init_flags_##name); |
| 319 | 322 | ||
| 323 | #define __TRACE_EVENT_PERF_PERM(name, expr...) \ | ||
| 324 | static int perf_perm_##name(struct ftrace_event_call *tp_event, \ | ||
| 325 | struct perf_event *p_event) \ | ||
| 326 | { \ | ||
| 327 | return ({ expr; }); \ | ||
| 328 | } \ | ||
| 329 | static int __init trace_init_perf_perm_##name(void) \ | ||
| 330 | { \ | ||
| 331 | event_##name.perf_perm = &perf_perm_##name; \ | ||
| 332 | return 0; \ | ||
| 333 | } \ | ||
| 334 | early_initcall(trace_init_perf_perm_##name); | ||
| 335 | |||
| 320 | #define PERF_MAX_TRACE_SIZE 2048 | 336 | #define PERF_MAX_TRACE_SIZE 2048 |
| 321 | 337 | ||
| 322 | #define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */ | 338 | #define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */ |
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 82eac610ce1a..3ea2cf6b0e6c 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -2,9 +2,12 @@ | |||
| 2 | #define __LINUX_GPIO_DRIVER_H | 2 | #define __LINUX_GPIO_DRIVER_H |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/module.h> | ||
| 5 | 6 | ||
| 6 | struct device; | 7 | struct device; |
| 7 | struct gpio_desc; | 8 | struct gpio_desc; |
| 9 | struct of_phandle_args; | ||
| 10 | struct device_node; | ||
| 8 | struct seq_file; | 11 | struct seq_file; |
| 9 | 12 | ||
| 10 | /** | 13 | /** |
diff | |||
